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

Draw an OccupancyGrid?

asked 2018-08-22 12:08:50 -0600

seanarm gravatar image

Are there any ROS tools, or recommended third-party tools, for drawing a 2D grid that's output as a nav_msgs/OccupancyGrid? I could find an online grid editor that outputs to coordinates, then convert them, but I'm hoping there's an already-made tool.

edit retag flag offensive close merge delete

Comments

I haven't used it myself, but if you have access to matlab, it would appear it has some infrastructure that could be helpful with this. See here.

gvdhoorn gravatar image gvdhoorn  ( 2018-08-22 13:57:25 -0600 )edit

There is a grid_map library. I'm using it to edit existing grid maps or creating new from scratch.

luk.mitka gravatar image luk.mitka  ( 2018-08-23 09:33:13 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-08-23 16:06:29 -0600

fergs gravatar image

The map_server loads an image + YAML file to publish a nav_msgs/OccupancyGrid. You can edit the image file in any image editor (e.g. GIMP, Photoshop, etc). The wiki page for map_server has details of how to setup the YAML file that tells map_server how to interpret the image.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2018-08-22 12:08:50 -0600

Seen: 934 times

Last updated: Aug 23 '18