Remap client name for dynamic reconfigure
For setting up a dynamic reconfigure client I need to specify the name of the node I like to reconfigure, e.g. in Python:
self._client = dynamic_reconfigure.client.Client(some_node_name)
Now, I'd like to remap some_node_name
in my roslaunch file to make it easy to use in different contexts, e.g.
<launch>
<node pkg="my_package" type="my_node.py" name="my_node" >
<remap from="some_node_name" to="special_node_name"/>
</node>
</launch>
However, this doesn't work. So far I only managed to modify some_node_name
via parameters.
Is there a way to remap the node name of the dynamic reconfigure client?
Asked by bit-pirate on 2014-01-04 22:58:52 UTC
Answers
I had to do this via a param not a remap.
Here is how I did it.
launch file
<launch>
<node name="pickable_object_detector" pkg="tensorflow_ros_tanooki" type="pickable_objects_detector_service.py" output="screen">
<param name="recfg_name" value="$(arg recfg_remap)"/>
</node>
</launch>
python node
recfg_name = rospy.get_param('~recfg_name')
client = dynamic_reconfigure.client.Client(recfg_name, timeout=30)
Asked by jonlwowski012 on 2018-09-19 12:10:52 UTC
Comments