Skip to content

How to handle spinning on the client node in BT nodes #1698

@maxlein

Description

@maxlein

I am wondering if there is a potential bug and how to handle topic subscriptions in behavior tree nodes.

I was working on my own nodes and cross checking with nav2 how it's done here.
And basically there is one client node created and written to the blackboard. This node gets spinned only when an action client is present with an active request.

For example the is_stuck_condition's odom subscription is updated only when the spin of one of the action client's gets called. Do I see this right?

And my solution would be calling spin_some on the node which I think is missing in is_stuck_condition. But then again, this could lead to problems if we have nodes in parallel which both spin.

Is there some design pattern / rule on how such situations should be handled?

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