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

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

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

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
3

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

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

Comments

Thanks! Just what I need!

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

Question Tools

1 follower

Stats

Asked: 2016-02-29 00:38:18 -0600

Seen: 1,967 times

Last updated: Feb 29 '16