Closed marcoag closed 4 months ago
@marcoag @clalancette this needs to be checked.
seems lifecycle_py
package is missing.
root@51cdd59e1f3e:~# ros2 run lifecycle_py lifecycle_talker
Package 'lifecycle_py' not found
root@51cdd59e1f3e:~# apt-cache search lifecycle_py
root@51cdd59e1f3e:~#
@marcoag @clalancette this needs to be checked.
seems
lifecycle_py
package is missing.
So the issue here is that lifecycle_py
isn't part of ros-jazzy-desktop
, which is why it isn't available. I have to take a look to see if that was the case in earlier versions as well, or if we should just update the test-case here to say to install that package first.
root@51cdd59e1f3e:~# apt-cache search lifecycle_py
By the way, this didn't work because it would need to be:
# apt-cache search '.*lifecycle-py.*'
Can you confirm that returns at least ros-jazzy-lifecycle-py
? Also, can you confirm that after installing the package that this test case works?
@clalancette ah, okay that is lifecycle-py
not lifecycle_py
(underscore).
root@51cdd59e1f3e:~# apt-cache search lifecycle-py
ros-jazzy-lifecycle-py - Package containing demos for rclpy lifecycle implementation
ros-rolling-lifecycle-py - Package containing demos for rclpy lifecycle implementation
then, after installation, that works without problem.
root@51cdd59e1f3e:~# ros2 run lifecycle_py lifecycle_talker
[INFO] [1714753669.684178197] [lc_talker]: on_configure() is called.
[INFO] [1714753670.664414702] [lc_talker]: Lifecycle publisher is inactive. Messages are not published.
[INFO] [1714753671.664318830] [lc_talker]: Lifecycle publisher is inactive. Messages are not published.
[INFO] [1714753672.664355767] [lc_talker]: Lifecycle publisher is inactive. Messages are not published.
[INFO] [1714753673.664300851] [lc_talker]: Lifecycle publisher is inactive. Messages are not published.
[INFO] [1714753674.664355375] [lc_talker]: Lifecycle publisher is inactive. Messages are not published.
[INFO] [1714753675.663649163] [lc_talker]: Lifecycle publisher is inactive. Messages are not published.
[INFO] [1714753676.664353769] [lc_talker]: Lifecycle publisher is inactive. Messages are not published.
[INFO] [1714753677.083596721] [lc_talker]: on_activate() is called.
[INFO] [1714753677.664418808] [lc_talker]: Lifecycle publisher is active. Publishing: [Lifecycle HelloWorld #7]
[INFO] [1714753678.664417664] [lc_talker]: Lifecycle publisher is active. Publishing: [Lifecycle HelloWorld #8]
[INFO] [1714753679.664394218] [lc_talker]: Lifecycle publisher is active. Publishing: [Lifecycle HelloWorld #9]
[INFO] [1714753680.664336255] [lc_talker]: Lifecycle publisher is active. Publishing: [Lifecycle HelloWorld #10]
root@51cdd59e1f3e:~# ros2 lifecycle nodes
/lc_talker
root@51cdd59e1f3e:~# ros2 lifecycle set /lc_talker 1
Transitioning successful
root@51cdd59e1f3e:~# ros2 lifecycle set /lc_talker 3
Transitioning successful
we can close this one.
Thanks for testing!
Configuration
Links
Process
Check
listener
andtalker
Actions
Expected Results