Skip to content
Snippets Groups Projects
Commit 0912b9f8 authored by José Enrique Domínguez Vidal's avatar José Enrique Domínguez Vidal
Browse files

Fixed error within scaleTwist

parent 357a0043
No related branches found
No related tags found
No related merge requests found
...@@ -85,9 +85,9 @@ namespace rotational_recovery ...@@ -85,9 +85,9 @@ namespace rotational_recovery
geometry_msgs::Twist scaleTwist (const geometry_msgs::Twist& twist, const double scale) geometry_msgs::Twist scaleTwist (const geometry_msgs::Twist& twist, const double scale)
{ {
geometry_msgs::Twist t; geometry_msgs::Twist t;
t.linear.x = twist.linear.x * scale; t.linear.x = twist.linear.x / scale;
t.linear.y = twist.linear.y * scale; t.linear.y = twist.linear.y / scale;
t.angular.z = twist.angular.z * scale; t.angular.z = twist.angular.z / scale;
return t; return t;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment