Skip to content

LifecycleNode publishes a null timestamp in transition_event topics #564

Closed

Description

@Myzhar

Required Info:

  • Operating System:
    • Ubuntu 16.04
  • Installation type:
    • Source
  • Version or commit hash:
  • DDS implementation:
    • Fast-RTPS
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

  1. start a lifecycle talker node:
    $ ros2 run lifecycle lifecycle_talker
  2. subscribe to the transition_event topic:
    $ ros2 topic echo /lc_talker/transition_event
  3. require some transitions:
    $ ros2 lifecycle set /lc_talker configure
    $ ros2 lifecycle set /lc_talker activate

I noticed the issue with my own lifecycle node and I tested it with the provided example to be sure that the issue is generic.

Expected behavior

current timestamp for the messages

Actual behavior

The timestamp is null as you can see in the following screenshoot

image

Activity

  1. Myzhar commented on Oct 8, 2018

    @Myzhar
    Author

    I noticed that also the transition field is empty.
    Only the ßtart-state and the goal-state fields are filled

  2. clalancette commented on Oct 8, 2018

    @clalancette
    Contributor

    Yeah, this is because the low-level publisher only fills in start-state and goal-state here: https://github.com/ros2/rcl/blob/master/rcl_lifecycle/src/com_interface.c#L229 . This could probably be improved, so I'm going to mark this as an enhancement.

  3. added
    enhancement
    on Oct 8, 2018
  4. added a commit that references this issue on Jul 9, 2022
  5. added a commit that references this issue on Aug 5, 2022
  6. SuperJappie08 commented on Oct 9, 2025

    @SuperJappie08
    Contributor

    This is still the case in Jazzy. Related (ros2/rcl#1019, ros2/rcl#1140)

  7. LastStarDust commented on Oct 21, 2025

    @LastStarDust

    I just came here to say that this

    I noticed that also the transition field is empty.
    Only the ßtart-state and the goal-state fields are filled

    is still the case in Jazzy but @SuperJappie08 beat me to it

  8. SuperJappie08 commented on Feb 4, 2026

    @SuperJappie08
    Contributor

    is still the case in Jazzy but @SuperJappie08 beat me to it

    @LastStarDust, I wanted to let you know that this will stay broken in Jazzy and Kilted, as the required changes are ABI breaking.
    Which makes them not backportable.

    It should be fixed in Lyrical (upcoming ROS 2 L-Turtle) and in the next Rolling sync.

  9. LastStarDust commented on Feb 4, 2026

    @LastStarDust

    Thank you for letting me know. Our code logic does not depend on it, so not a big deal for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions