ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
![]() | 1 | initial version |
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?
![]() | 2 | update answer |
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.