Skip to content

Reusing same instance of node across tree #986

Closed
@jk-mile

Description

@jk-mile

Is there a way to reuse the same instance of a behavior in multiple places of the tree?
I have a behavior that contains a service server and I want to re-use this exact behavior including the same instance of a ROS2 service server and callbacks in multiple places.
Basically telling the tree instead of creating another copy of a behavior, that it should use a reference to another (previously instantiated) behavior that it should tick?
Kind of like creating a portal for teleporting behaviors between different locations of the tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions