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

Importing a costmap layer from a pgm.

asked 2015-08-03 17:35:55 -0500

mattc_vec gravatar image

I've got a costmap that uses a static, obstacle, inflation, and another custom layer that I wrote. Is there an easy way to load an additional layer drawn on a PGM grayscale image? If not, I could probably manage to analyze the image with python or C++ and add values to a new costmap layer from there. Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2015-08-04 01:01:27 -0500

mgruhler gravatar image

This is actually what the map_server is for. See the documentation for more details.

It takes a grayscale image (.pgm should work), where whiter pixels are free and darker pixels are occupied. Remember to also configure the respective yaml file correctly, as described in the documentation.

This map can then be loaded in another static map layer, as described here.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-08-03 17:35:55 -0500

Seen: 982 times

Last updated: Aug 04 '15