Ask Your Question

How to run segbot in Rviz and Gazebo

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

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

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 -0500

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 -0500 )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 -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


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

Seen: 100 times

Last updated: Nov 29 '13