Ask Your Question

move a robot to a point goal

asked 2016-02-21 08:00:34 -0500

ragnard gravatar image

I want to order a robot to moves towards a goal Point and simulation in stageros. For this I created a node to publish Vitess lineare and angular about cmd_vel, then what I want to know is how to adjust the angular.z Vitess to rotate the robot at an angle of 45 ° for exmple

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-02-25 03:59:39 -0500

Procópio gravatar image

to rotate the robot by a certain angle, you have to choose a rotational velocity and compute for how long you should send it. for example, to rotate 45 degrees you can publish an angular velocity of 4.5 degrees/s during 10 seconds.

bear in mind that in this way, you are commanding the robot in an open loop, so due to accelerations and other errors you will not get exactly the orientation or the position that you expected.

edit flag offensive delete link more


thank you, it looks interesting idea, but I managed to make the angle of the shot I want, is recovering the rotation of the robot odometry and put a condition when the rotation equal to the angle I want, I'm doing the robot stoper

ragnard gravatar image ragnard  ( 2016-02-25 07:08:30 -0500 )edit

yes, that is the way to go. by doing that, you are effectively commanding the robot in a closed loop.

Procópio gravatar image Procópio  ( 2016-02-25 08:05:38 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-02-21 08:00:34 -0500

Seen: 674 times

Last updated: Feb 25 '16