Skip to content

[rclcpp_lifecycle] The get_available_transitions method and get_available_transitions service produce different results #1460

@brawner

Description

@brawner

I noticed this while writing up the benchmarks, but calling rclcpp_lifecycle::LifecycleNode::get_available_transitions() will return all 25 transitions, but calling the get_available_transitions service will only return the available transitions for the current state. In order to get all 25 transitions from a service, you need to call the get_transition_graph service.

Perhaps it would make sense to add a get_transition_graph method to the lifecycle node and update get_available_transitions to only return the available transitions of the current state so that it matches the similarly named services?

Thoughts maintainers/author? @wjwwood @ivanpauno @mabelzhang @Karsten1987

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions