Skip to content

Commit 34d29db

Browse files
[composition] add launch action console output in the verify section (#677)
Signed-off-by: Mikael Arguedas <[email protected]>
1 parent 957ddbb commit 34d29db

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

composition/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,33 @@ When executed correctly, strings should be printed to terminal similar to what i
144144
:warning:
145145
> Note that linktime-composed components **will not be reflected in the `ros2 component list`** command line tool output.
146146
147+
### Composition Using Launch Actions
148+
149+
When executed correctly, strings should be printed to terminal similar to what is shown below:
150+
151+
```bash
152+
[INFO] [launch]: All log files can be found below /root/.ros/log/2024-05-04-23-37-06-363020-d8ff93e471d7-9387
153+
[INFO] [launch]: Default logging verbosity is set to INFO
154+
[INFO] [component_container-1]: process started with pid [9402]
155+
[component_container-1] [INFO] [1714865826.695090046] [my_container]: Load Library: /opt/ros/jazzy/lib/libtalker_component.so
156+
[component_container-1] [INFO] [1714865826.696388047] [my_container]: Found class: rclcpp_components::NodeFactoryTemplate<composition::Talker>
157+
[component_container-1] [INFO] [1714865826.696435882] [my_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<composition::Talker>
158+
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/talker' in container '/my_container'
159+
[component_container-1] [INFO] [1714865826.702958710] [my_container]: Load Library: /opt/ros/jazzy/lib/liblistener_component.so
160+
[component_container-1] [INFO] [1714865826.703401061] [my_container]: Found class: rclcpp_components::NodeFactoryTemplate<composition::Listener>
161+
[component_container-1] [INFO] [1714865826.703414344] [my_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<composition::Listener>
162+
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/listener' in container '/my_container'
163+
[component_container-1] [INFO] [1714865827.701941449] [talker]: Publishing: 'Hello World: 1'
164+
[component_container-1] [INFO] [1714865827.702047599] [listener]: I heard: [Hello World: 1]
165+
[component_container-1] [INFO] [1714865828.701984118] [talker]: Publishing: 'Hello World: 2'
166+
[component_container-1] [INFO] [1714865828.702154523] [listener]: I heard: [Hello World: 2]
167+
[component_container-1] [INFO] [1714865829.702004471] [talker]: Publishing: 'Hello World: 3'
168+
[component_container-1] [INFO] [1714865829.702176059] [listener]: I heard: [Hello World: 3]
169+
[component_container-1] [INFO] [1714865830.701876733] [talker]: Publishing: 'Hello World: 4'
170+
[component_container-1] [INFO] [1714865830.701965546] [listener]: I heard: [Hello World: 4]
171+
[component_container-1] [INFO] [1714865831.701885355] [talker]: Publishing: 'Hello World: 5'
172+
[component_container-1] [INFO] [1714865831.701984823] [listener]: I heard: [Hello World: 5]
173+
```
147174

148175
## FAQ
149176

0 commit comments

Comments
 (0)