ros2 / ros2/rclcpp

Lifecycle node should publish a transition event when instantiated

Open
#1,812 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

more-information-needed
Dominant language
C++
Stars
805
Forks
564
Avg merge
1d 17h
Merged PRs (30d)
27

Description

  • Operating System:
    Ubuntu 20.04
  • Installation type:
    Binaries
  • Version or commit hash:
    Galactic
  • DDS implementation:
    Cyclone DDS
Steps to reproduce issue
  1. Launch a lifecycle node using a launch file in a terminal
  2. Subscribe to the transition event topic of the node in an other terminal
  3. Close the first terminal (the one with the launch file)
  4. Launch again the same lifecycle node
  5. Look at the transition event that were received
Expected behavior

When the node is instantiated it may be interesting to receive a transition event for the transition from 'nothing' to 'unconfigured' this way we could have a 'RegisterEventHandler' in a launch file to detect when a lifecycle node is instantiated.

Actual behavior

No transition event is received for the node reaching goal state "unconfigured" when the node is instantiated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the lifecycle-node launch and transition-topic steps described in the issue, then trace the C++ lifecycle transition-event publication path. Confirm the current behavior when the node reaches "unconfigured" during instantiation. Done means a newly instantiated lifecycle node publishes the requested transition event and the behavior is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
robotics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.