Skip to content

Commit

Permalink
More Lint and build
Browse files Browse the repository at this point in the history
Signed-off-by: MarcM0 <[email protected]>
  • Loading branch information
Marc-Morcos committed Jul 4, 2024
1 parent 6ad053c commit 84aae9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ inline BT::NodeStatus GetPoseFromPath::tick()
}

// Account for negative indices
if(pose_index < 0){
pose_index = input_path.poses.size()+pose_index;
if(pose_index < 0) {
pose_index = input_path.poses.size() + pose_index;
}

// out of bounds index
if(pose_index < 0 || static_cast<unsigned>(pose_index) >= input_path.poses.size()){
if(pose_index < 0 || static_cast<unsigned>(pose_index) >= input_path.poses.size()) {
return BT::NodeStatus::FAILURE;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ TEST_F(GetPoseFromPathTestFixture, test_tick)
EXPECT_EQ(pose.pose.position.x, 1.0);

// halt node so another goal can be sent
tree_->rootNode()->halt();
tree_->haltTree();
EXPECT_EQ(tree_->rootNode()->status(), BT::NodeStatus::IDLE);

// try last element
Expand Down

0 comments on commit 84aae9e

Please sign in to comment.