Ask Your Question

Loading generated maps into Gazebo

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

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

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

I'm not aware of a tool that can automate this (maybe the building editor for gazebo could help: ). 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


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

1 follower


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

Seen: 1,954 times

Last updated: Dec 09 '14