ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In the case of using a launch file for the node specifically, could you not just pack the pkg name into an arg for the launch file, plug in the arg in the pkg field, and perhaps set a param with the value of the same arg? Something along the lines of ...

<arg name="pname" default="pkg_name" />
<node pkg="$(arg pname)" type="node" name="my_node output="screen" />
<param name="pname" type="string" value="$(arg pname)" />

And then read the value off of the param server?

I could very well be way off in understanding the question as well!