Robotics StackExchange | Archived questions

Controlling a Mobile Robot with its Range Sensor

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.

Asked by Prashant on 2013-07-15 14:42:22 UTC

Comments

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

Asked by iche033 on 2013-07-15 20:06:55 UTC

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

Asked by Prashant on 2013-07-15 22:46:15 UTC

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

Asked by iche033 on 2013-07-23 19:32:50 UTC

@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.

Asked by Prashant on 2013-07-26 13:12:14 UTC

Answers