Skip to content

Commit

Permalink
fix linter issues for header methods in recovery node
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski committed Nov 14, 2019
1 parent 3793a0d commit 399241a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nav2_behavior_tree/plugins/control/recovery_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class RecoveryNode : public BT::ControlNode
: BT::ControlNode::ControlNode(name, conf), current_child_idx_(0), retry_count_(0)
{
getInput("number_of_retries", number_of_retries_);
};
}

~RecoveryNode() override = default;

Expand All @@ -50,7 +50,7 @@ class RecoveryNode : public BT::ControlNode
{
return {
BT::InputPort<int>("number_of_retries", 1, "Number of retries")
};
}
}

private:
Expand Down Expand Up @@ -139,14 +139,14 @@ class RecoveryNode : public BT::ControlNode
retry_count_ = 0;
halt();
return BT::NodeStatus::FAILURE;
};
}

void RecoveryNode::halt() override
{
ControlNode::halt();
current_child_idx_ = 0;
retry_count_ = 0;
};
}
};

} // namespace nav2_behavior_tree
Expand Down

0 comments on commit 399241a

Please sign in to comment.