ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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
1

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

Comments

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

Question Tools

1 follower

Stats

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

Seen: 9,425 times

Last updated: Feb 25 '16