Ask Your Question
0

How can I change a map while ROS is running?

asked 2011-12-21 05:16:16 -0500

madmax gravatar image

Hi,

right now I am navigating through a map.
But I want to change this map while ROS is running due to a floor change. Is there a way, for example in C++, to change the map in code?

regards max

edit retag flag offensive close delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2011-12-21 06:52:10 -0500

DimitriProsser gravatar image

updated 2011-12-21 06:56:51 -0500

If you're using Electric, the navigation stack supports dynamic_reconfigure. That's probably the easiest way to do what you want to do.

If you're using Diamondback, you might have a lot more difficulty. Most of the parameters of move_base in Diamondback are a one-time read, and thus require a restart of the node to re-initialize.

edit flag offensive delete publish link more

Comments

If using a C++ node is there a way to use dynamic_reconfigure to change the map? So far I have only been able to do that from Python. Thomas D ( 2011-12-22 08:44:27 -0500 )edit
Dynamic reconfigure can be done with C++. costmap_2d is a good example if you're looking to see some code implemented. DimitriProsser ( 2011-12-22 09:20:19 -0500 )edit
0

answered 2012-05-13 04:29:29 -0500

madmax gravatar image

Well, our best solution was to move 2 maps in 1. So the map.png has 2 maps in it and when you want to change the map you simply set a new position to the other map.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Stats

Asked: 2011-12-21 05:16:16 -0500

Seen: 296 times

Last updated: May 13 '12