You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using ReactiveSequence/ReactiveFallback with multiple async children can cause race conditions #1031
BehaviorTree.CPP allows to implement backchaining patterns (as described e.g. in #755 ), but there is a challenge with the current implementation: As described in #83 (comment), which also provides a good minimal example, a previously RUNNING child is halted only after another child is started (its onStart is executed). So for a short amount of time, there are two children in RUNNING state.
In a scenario, where the async children start ROS actions in the onStart function, and cancel the actions in the onHalted, this can lead to race conditions in the system, as multiple actions are running simultaneously.
There was a PR to address this problem, #93, but sadly, it was never merged. Is there a better solution to address this problem? If the solution proposed in that PR is still the way to go, I can also spend some time to update it to the most recent version of the library (as the PR is quite old).
Activity
facontidavide commentedon Oct 30, 2025
you or anyone else is welcome to work on creating a new PR or to rebase and simplify #93
Halt the running branch before starting another asynchronous action
test: a reactive node must not restart its RUNNING child (#1258)