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

Revision history [back]

The code linked is an example of how to load given nodelets in a runtime executable. The code that is probably most directly applicable to port is located in the nodelets directory. Each of those objects would have to be ported to take advantage of the new component interface.

As far as the loading section of the code, one could either use the tooling that is described in the Composition tutorial, which are forms of runtime compositions. In the tutorial, loading components via the ROS2 API as well as loading components via a launch file are detailed.

To reproduce the behavior in the referenced source code, you may want to use a manual composition approach. An example of how to perform manual composition at link-time is outlined in the [ROS2 Demos Package].(https://github.com/ros2/demos/blob/master/composition/src/manual_composition.cpp)

The code linked is an example of how to load given nodelets in a runtime executable. The code that is probably most directly applicable to port is located in the nodelets directory. Each of those objects would have to be ported to take advantage of the new component interface.

As far as the loading section of the code, one could either use the tooling that is described in the Composition tutorial, which are forms of runtime compositions. In the tutorial, loading components via the ROS2 API as well as loading components via a launch file are detailed.

To reproduce the behavior in the referenced source code, you may want to use a manual composition approach. An example of how to perform manual composition at link-time is outlined in the [ROS2 ROS2 Demos Package].(https://github.com/ros2/demos/blob/master/composition/src/manual_composition.cpp)Package