Controlling a Mobile Robot with its Range Sensor

asked 2013-07-15 14:42:22 -0600

Prashant gravatar image

updated 2013-07-15 22:43:19 -0600

Hi all,

I am following the tutorial in this link: http://gazebosim.org/wiki/Tutorials/1.3/control_robot/mobile_base_laser. The robot and the sensor are working properly as mentioned in the Prerequisites. I have copied the code exactly mentioned in the tutorial.However When I spawned the robot into the world it does not stop when it reaches 2 meters in front of obstacle and keeps moving on until it hits the obstacle. I cant figure out what's going wrong over here. I am using gazebo 1.8.6 for this. Any help would be highly appreciated.

Thank you.

edit retag flag offensive close merge delete

Comments

do you mean this tutorial? http://gazebosim.org/wiki/Tutorials/1.3/control_robot/mobile_base_laser

iche033 gravatar imageiche033 ( 2013-07-15 20:06:55 -0600 )edit

@iche033 Hi thanks for the comment. I noticed my mistake and have updated the question accordingly.

Prashant gravatar imagePrashant ( 2013-07-15 22:46:15 -0600 )edit

What gazebo version are you using? is there an error/warning message printed in the terminal? I just went through the tutorial and the robot does stop

iche033 gravatar imageiche033 ( 2013-07-23 19:32:50 -0600 )edit

@iche033 I am using gazebo 1.8.7 now. I am using SDF 1.4. No there are not error/warning message in the terminal.

Prashant gravatar imagePrashant ( 2013-07-26 13:12:14 -0600 )edit