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

update the map_server

asked 2014-04-19 06:25:40 -0600

TimboInSpace gravatar image

Does anyone know a way to update the map that map_server uses? AFAIK, the map is set to the contents of an image file as soon as the node is launched, then remains static for the life of the node. My situation is as follows: I have two nodes this job mapper and map_server. Mapper records ultrasonic range measurements into a png file, and has a service for saving updated versions of the map. How can I push updates of the map to my map_server node?? Will I have to relaunch the map_server node every time? Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-19 07:44:22 -0600

dornhege gravatar image

I think you're doing it too complicated. If your Mapper node already has a map there is no need to send that to the map server. Just publish it from the Mapper node at the /map topic.

edit flag offensive delete link more

Comments

You're right. I changed the Mapper node to publish its own OccupancyGrid, and this was a lot simpler. It's working quite well now.

TimboInSpace gravatar image TimboInSpace  ( 2014-04-19 14:10:24 -0600 )edit

But what if I need to publish an occupancy grid only after some editing, can I have map_server continuously publishing?

Avonic gravatar image Avonic  ( 2016-03-05 10:01:42 -0600 )edit

Yes...............

dornhege gravatar image dornhege  ( 2016-03-07 11:25:58 -0600 )edit

In fact, it just publish the same occupancygrid without updating it even if the grid has changed

Avonic gravatar image Avonic  ( 2016-03-08 05:41:10 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-19 06:25:40 -0600

Seen: 1,058 times

Last updated: Apr 19 '14