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

How to change the topic name for publishing occupancy grid using map_server?

asked 2016-02-29 00:38:18 -0500

Avonic gravatar image

Intent : Using mapstitch_hector to get the position of the bot as well as stitching maps.

Problem : Two sets of data are required for mapstitch_hector - /world and /align - in OccupancyGrid format

Data in hand : two sets of .pgm and .yaml files for /world and /align. Acquired via map_saver

Current target : wanted to publish the OccupancyGrids using map_server by the topic /world and /align.

Question : How can I modify the topic for map_server publish? or are there any better idea?

Thank you viewers

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-02-29 01:15:09 -0500

mgruhler gravatar image

You need to remap the map and map_metadata topics from map_server to what you need, i.e. to world and world_metadata.

Depending on whether you are using roslaunch or rosrun, there are different ways. Use the <remap ...> tag for roslaunch. If you use rosrun, add the following: rosrun map_server map_server mymap.yaml /map:=/world /map_metadata:=/world_metadata.

edit flag offensive delete link more


Thanks! Just what I need!

Avonic gravatar image Avonic  ( 2016-02-29 03:13:19 -0500 )edit

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: 2016-02-29 00:38:18 -0500

Seen: 1,775 times

Last updated: Feb 29 '16