Robotics StackExchange | Archived questions

Nested parameters - Is it worth using a parameter server?

ROS allows to declare and use nested parameters. However, it looks to me that the ROS parameter server mainly supports single-value parameters.

I can have something like

node
    calibration
          x
          y
          ts

What's the best way for storing/retrieving a nested structure like this?

Asked by alsora on 2019-08-09 10:14:41 UTC

Comments

I guess I can not help you with your decision. But you can also use the parameter server for nested structures. See: https://docs.ros.org/lunar/api/roscpp/html/classros_1_1NodeHandle.html#abc94604759c310c72e1b2d34b656755c <- with this you can retrieve any parameter as XmlRpcValue (https://docs.ros.org/lunar/api/xmlrpcpp/html/classXmlRpc_1_1XmlRpcValue.html). The XmlRpcValue can then contain more XmlRpcValue within it and so on .. (turtles all the way down!)

Asked by ct2034 on 2019-08-09 10:25:53 UTC

Answers