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

How to run segbot in Rviz and Gazebo

asked 2013-11-28 18:42:44 -0600

updated 2014-01-28 17:18:40 -0600

ngrennan gravatar image


Does anyone know how to run segbot in Rviz and Gazebo from this segbot package(

I have tried the:

$rosrun xacro segbot.urdf.xacro > segbot.urdf

But it turned out that the segbot.urdf is blank.

Thank you in advance!

Cheers, Lili

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-11-29 19:41:39 -0600

Hi Lili,

To run something like gmapping inside simulation, you generally don't need to run the robot description directly. Try running the segbot code with autonomous navigation:

roslaunch segbot_gazebo segbot_navigation.launch --screen

Take a look at the launch file (and how it pulls in other launch files), and you'll figure out how all the nodes are loaded up. You should make a copy of appropriate launch files, and you need to replace the map_server and amcl nodes with gmapping.

Please note 2 other things: 1) gmapping rarely works well in simulation. There are not enough features in the environment, and gmapping messes up when you don't see corners. 2) Try running gmapping with more popular robots like the turtlebot and pr2, as you'll find more help for those robots. Once you have it figured out, try with the segbot code.

In response to your original question about loading the robot model, take a look at this thread:

edit flag offensive delete link more


Hi Piyushk, Thank you for your kind and detailed reply. However, I didn't find the segbot_navigation.launch file in the folder of segbot_gazebo link:

Lili Meng gravatar image Lili Meng  ( 2013-11-30 10:40:23 -0600 )edit

See here: Note that this will only work out of the box for Hydro, and you will have to do some work in Groovy to get it to work.

piyushk gravatar image piyushk  ( 2013-11-30 13:14:45 -0600 )edit

Question Tools


Asked: 2013-11-28 18:42:44 -0600

Seen: 146 times

Last updated: Nov 29 '13