ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can define your own key-pair message/s and a corresponding service with a key in the request and the value in the response. The simplest thing would be to store initially non-string values into a string and have the msg and srv be each two strings, the 12 from your example would be a "12".
The node would subscribe to the StringString message type and be a String service provider, it could have a python dict or C++ std::map<std::string, std::string>
for the data structure.
2 | No.2 Revision |
You can define your own key-pair message/s and a corresponding service with a key in the request and the value in the response. The simplest thing would be to store initially non-string values into a string and have the msg and srv be each two strings, the 12 from your example would be a "12".
The node would subscribe to the StringString message type and be a String service provider, it could have a python dict or C++ std::map<std::string, std::string>
for the data structure.
Or just use rosparams?