0
$\begingroup$

Rosanswers logo

hi, I tried to rotate the pioneer robot using cmd_vel / geometry/Twist with angular.z value. the robot turns but not nice, sometimes slow, then fast :( I searched the internet to solve that task, but it hasn't helped. can anyone help me to rotate the robot lets say 30degree. a c++ code snippet would be awesome, but I'm thankful for any help...


Originally posted by berni_ka on ROS Answers with karma: 1 on 2012-03-21

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Normally publishing on cmd_vel with an angular.z value should be fine. If it it doesn't behave, I would actually blame the node that provides cmd_vel. Did you try with higher rotational values? Does it get more stable then? Maybe there is a minimal velocity on your motors and the driver runs a controller to reach lower rotational values as good as possible.

If you want to move the robot to a specific coordinate in odometry, e.g. 30 degrees rotated from the current position, check out this tutorial.

For path planning and collision avoidance, check out move_base.


Originally posted by Lorenz with karma: 22731 on 2012-03-21

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.