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

costmap creation

asked 2012-10-31 04:07:59 -0500

camilla gravatar image

I would like to create a map of my environment.
I don't want to use gmap because I have yet a plan of the environment. How can I convert my jgpeg in a ros map that I can see in rviz?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-10-31 04:15:38 -0500

Lorenz gravatar image

You need to run map_server with your map. For that, it's best to write a yaml file with your map's metadata and convert your jpeg to something the map server can handle, for instance pnm. Have a look at the map_server wiki page. Note that since jpeg is not a lossless compression format, your map might not be perfect anymore, i.e. the colors at the edges of obstacles might be wrong.

edit flag offensive delete link more

Question Tools


Asked: 2012-10-31 04:07:59 -0500

Seen: 239 times

Last updated: Oct 31 '12