ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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

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

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: 2015-08-03 17:35:55 -0500

Seen: 843 times

Last updated: Aug 04 '15