grid_map icon indicating copy to clipboard operation
grid_map copied to clipboard

Grid Map to Gazebo

Open jcnorby opened this issue 4 years ago • 3 comments

As far as I can tell there isn't a straightforward way to export a grid map for use in Gazebo. Is this correct, and if so is there a recommended workaround such as a way to load a grid map from a stl file? My best guess is to convert an stl to an image file then load from there, but that would involve setting some extra parameters to make sure the heights were correctly preserved.

jcnorby avatar Dec 28 '20 15:12 jcnorby

Hi @jcnorby, yes, you are right. This functionality is not supported at the moment. Feel free to submit a PR if you found a good solution.

One pointer I could give is the 3D visualization for RVIZ. In there we iterate through the grid map and create an ogre object. Maybe there are converters between ogre and stl. Check out this function.

maximilianwulf avatar Jan 04 '21 10:01 maximilianwulf

I was looking for a solution a few months ago and I've just learned about https://github.com/fmrico/gazebo_gridmap_plugin. Maybe it could be a nice starting point.

micco00x avatar Feb 17 '22 09:02 micco00x

@micco00x wow, I was not aware of it. Thank you.

maximilianwulf avatar May 03 '22 19:05 maximilianwulf