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
When running a Behavior Tree with a Loop with a static queue twice, the first run works fine, but in the second run the static queue is already empty. The loop does not start and directly returns SUCCESS.
When running a Behavior Tree with a Loop with a static queue twice, the first run works fine, but in the second run the static queue is already empty. The loop does not start and directly returns SUCCESS.
In line 63 of the loop_node.h file (https://github.com/BehaviorTree/BehaviorTree.CPP/blob/master/include/behaviortree_cpp/decorators/loop_node.h) the shared pointer
static_queue_
is assigned to thecurrent_queue_
. When thecurrent_queue_
is emptied in the first run, also thestatic_queue_
is emptied. Since thestatic_queue_
is only overwritten in the constructor, it remains empty before the next run.Is this intended behavior?
Example:
The text was updated successfully, but these errors were encountered: