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

Loading generated maps into Gazebo

asked 2014-12-09 17:21:42 -0600

genericsoup gravatar image

I've got some maps that I've generated using the gmapping/slam packages with a turtle bot. However I would prefer to be working within the simulated environment provided by Gazebo.

Is there a way I can get the pgm/yaml files generated by ROS packages such as gmapping into Gazebo? Ideally it would be loaded in as a heightmap, but even if I could just get the image in as a ground plane sort of thing that would be good.

Any ideas on how to go about doing this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2014-12-09 17:31:05 -0600

I'm not aware of a tool that can automate this (maybe the building editor for gazebo could help: http://wiki.gazebosim.org/wiki/Buildi... ). I previously used Blender to achieve what you describe. If you know how to use it, it's a few minutes of work to load the map image, trace the walls in 2D and then extrude walls from the 2D footprint, resulting in a mesh you can load in gazebo. How practical this is also depends on how often you have to do it and how complex the maps are, of course.

edit flag offensive delete link more

Comments

Cheers, I think I'm going to have to do this unless I find an alternate method over the next couple of days. Since it is pretty much a one off in this case, it shouldn't be too bad.

genericsoup gravatar image genericsoup  ( 2014-12-10 00:15:32 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-12-09 17:21:42 -0600

Seen: 2,803 times

Last updated: Dec 09 '14