Skip to content

Add lifecycle_subscriber #488

Open
Open
@Kaju-Bubanja

Description

@Kaju-Bubanja

Feature request

Feature description

Currently there is no lifecycle subscriber only a lifecycle_publisher. If this question and my import discovery is to be believed: https://answers.ros.org/question/302216/ros2-subscriber-listens-to-messages-while-lifecyclenode-is-unconfigured-or-inactive/
Now it would be good to have this and not to have to resort to custom flags, because they defeat the whole purpose of a lifecycle node. If using bools is an option, I could just do away with the concept of a lifecycle node and just implement my own custom logic based on bools. Thus I think it makes sense to have an equivalent to the lifecycle_publishers on_activate on_deactivate for subscribers
EDIT: I wrote publishers twice in the end. Should be subscribers

Implementation considerations

I guess the same way it's done for the publisher. Not exactly sure, but some internal bool which gets checked periodically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions