Skip to content

BT Tick takes too long for some condition nodes #4881

@redvinaa

Description

@redvinaa

Bug report

Required Info:

  • Version or commit hash:

Expected behavior

For all BT nodes, tick should return quickly.

Actual behavior

IsPathValid has spin_until_future_complete, which can take several ms to complete (that's a lot for a BT to be ticked at 100 Hz).

if (rclcpp::spin_until_future_complete(node_, result, server_timeout_) ==

Because this calls an action, its behavior should be equivalent to the action nodes inheriting from BtActionNode, returning RUNNING while the action is calculating. I've checked, I didn't see such spinning in a tick function in other condition nodes. Should this be transformed into an action node to prevent code duplication?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions