Skip to content

Commit

Permalink
Updated composition figure and text
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
caguero committed Oct 30, 2024
1 parent 2644b65 commit e83899c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions harmonic/ros2_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,17 @@ ROS nodes will be intraprocess.

This figure illustrates the concept of composition. The left diagram captures
the idea of not using composition. All the three example nodes are standalone
nodes, and they can talk via interprocess communication. The center diagram
represents the scenario where we use composition and we start our own container
from our own launch file. All communication is intraprocess here. The right
diagram is still using composition but the launch file doesn't start the
container directly. This setup by itself will not work until you start an
external ROS container (manually or via a separate launch file).
nodes, and they can talk via interprocess communication using the bridge.
The center diagram represents the scenario where we can use composition and our
own ROS container between Gazebo and the bridge, but there's an additional
consumer node outside that we cannot control. All communication between Gazebo
and the bridge is intraprocess and interprocess between the external consumer
node and the bridge.
The diagram on the right side is using composition across all nodes but the
launch file doesn't start our own container directly. This setup by itself will
not work until you start an external ROS container (manually or via a separate launch file). In this diagram, the external ROS consumer node starts the
container. We're using the Nav2 logo as an example of external ROS 2 consumer
node.

You can learn more about ROS composition in [this tutorial](https://docs.ros.org/en/galactic/Tutorials/Intermediate/Composition.html).

Expand Down
Binary file modified images/composition_options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e83899c

Please sign in to comment.