ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
After an analysis of the various solutions, also thanks to @delb and @gvdhoorn for some suggestions, here are what I think to be the best suited:
rosnode list
, parse the output and do some string comparison to find the recurring substrings at the start of each line. It needs an extra node dedicated.<rosparam ns="/namespaces" param="$(arg robot_name)" subst_value="true" > $(arg robot_name) </rosparam>
In my case, name and value were the same, but it is in fact arbitrary.
2 | No.2 Revision |
After an analysis of the various solutions, also thanks to @delb and @gvdhoorn for some suggestions, here are what I think to be the best suited:
rosnode list
, parse the output and do some string comparison to find the recurring substrings at the start of each line. It needs an extra node dedicated.rosparam get /namespaces
. The .launch syntax is pretty straight-forward: <rosparam ns="/namespaces" param="$(arg robot_name)" subst_value="true" > $(arg robot_name) </rosparam>
In my case, name and value were the same, but it is in fact arbitrary. arbitrary.
3 | No.3 Revision |
After an analysis of the various solutions, also thanks to @delb and @gvdhoorn for some suggestions, here are what I think to be the best suited:
rosnode list
, parse the output and do some string comparison to find the recurring substrings at the start of each line. It needs an extra node dedicated.rosparam get /namespaces
. The .launch syntax is pretty straight-forward: <rosparam ns="/namespaces" param="$(arg robot_name)" subst_value="true" > $(arg robot_name) </rosparam>
In my case, name and value were the same, but it is in fact arbitrary.