Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2012-04-14 06:51:15 -0600

joq gravatar image

You can use yaml-cpp to read the dump file yourself, but I don't recommend it. For most ROS applications, <rosparam load ...> will be cleaner and more flexible.

Why do you prefer handling it yourself?

You can use yaml-cpp to read the dump file yourself, but I don't recommend it. For most ROS applications, <rosparam load ...> will be cleaner and more flexible.

Why do you prefer handling it yourself?

ANSWER: to provide parameter persistence.

UPDATE: I think the usual solution is to run "rosparam dump" before shutting down the parameter server.

There should be an automatic way to do that, but I don't know how. Maybe someone else can suggest a good technique. I guess you could run system("rosparam dump ...") yourself before exiting.