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

Yes, launching nodelets from different packages is possible. You must not even have them in the same launch file.

For instance, looking at the example launch file given here:

http://wiki.ros.org/nodelet/Tutorials/Running%20a%20nodelet

You can place the part for the manager

 <node pkg="nodelet" type="nodelet" name="standalone_nodelet"  args="manager"/>

and multiple nodelets

  <node pkg="nodelet" type="nodelet" name="Plus"
        args="load nodelet_tutorial_math/Plus standalone_nodelet">
    <remap from="/Plus/out" to="remapped_output"/>
  </node>

into different launch files in different packages. All they have to share is the name of the nodelet manager ("standalone_nodelet") in the above example. Only you have to launch the launchfile with the manager first.

Have in mind, that nodelets will run in the same process, i.e., you have to launch all of the separable launches on the same (virtual) machine.