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

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

Hi,

Does anyone know how to run segbot in Rviz and Gazebo from this segbot package(https://github.com/utexas-bwi/segbot)?

I have tried the:

$rosrun xacro xacro.py 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
0

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: http://answers.ros.org/question/62646/please-help-converting-urdfxacro-to-sdf/

edit flag offensive delete link more

Comments

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: https://github.com/bwi-spring-2013/segbot_simulator/tree/master/segbot_gazebo

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

See here: https://github.com/utexas-bwi/segbot_simulator/tree/devel/segbot_gazebo 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

Stats

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

Seen: 183 times

Last updated: Nov 29 '13