Skip to content

Commit

Permalink
Set node status to idle on halt (ros-navigation#1622)
Browse files Browse the repository at this point in the history
Signed-off-by: Aitor Miguel Blanco <aitormibl@gmail.com>
  • Loading branch information
gimait committed Apr 20, 2020
1 parent 93866cf commit 492d80a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nav2_behavior_tree/plugins/control/recovery_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class RecoveryNode : public BT::ControlNode
void halt() override
{
ControlNode::haltChildren(1);
setStatus(BT::NodeStatus::IDLE);
current_child_idx_ = 0;
retry_count_ = 0;
}
Expand Down

0 comments on commit 492d80a

Please sign in to comment.