osrf / ros2_test_cases

Tracking of tests to be performed on a ROS 2 release
16 stars 4 forks source link

Check Lifecyle node py #1225

Closed marcoag closed 6 months ago

marcoag commented 6 months ago

Configuration

Links

Process

Check listener and talker

Actions

# StdIn - terminal 1
ros2 run lifecycle_py lifecycle_talker
# StdIn - terminal 2
ros2 lifecycle nodes
# StdIn - terminal 2
ros2 lifecycle set /lc_talker 1
# StdIn - terminal 2
ros2 lifecycle set /lc_talker 3

Expected Results

# StdOut - terminal 1
[INFO] [1680583079.479073069] [lc_talker]: on_configure() is called.
[INFO] [1680583080.439717509] [lc_talker]: Lifecycle publisher is inactive. Messages are not published.
# StdOut - terminal 2
/lc_talker
# StdOut - terminal 2
Transitioning successful
# StdOut - terminal 2
[INFO] [1680583403.113550155] [lc_talker]: on_activate() is called.
[INFO] [1680583403.439875193] [lc_talker]: Lifecycle publisher is active. Publishing: [Lifecycle HelloWorld #323]
mikaelarguedas commented 6 months ago

Got the expected outputs :+1:

Tests passed :heavy_check_mark: