dumping parameters from c++ node
Hi all,
I have a simple question but I can't seem to find a nice solution.
My problem is the following:
I have a YAML file that stores some parameters. These parameters are loaded into the parameter server at execution time. For some reason I want to change some parameters and store them permanently in the YAML file.
That is, I retrieve a certain field of the parameter:
XmlRpc::XmlRpcValue param;
nh.getParam("param_name", param);
ROS_ASSERT(param.getType() == XmlRpc::XmlRpcValue::TypeStruct);
std::string field = static_cast<std::string>(param["field]);
and then, after modifying it, I'd like not only to set the new value in the parameter server but also to permanently store this change.
I have seen that rosparam has the dump
option and I was wondering if there is an analogous function in roscpp. I'd be very glad if someone could show me how it can be done.
Thanks.
I do not believe there is a C++ equivalent to
rosparam dump