Skip to content

Commit

Permalink
Fixing Theta* test failures (#3380)
Browse files Browse the repository at this point in the history
* adding printouts since can't see locally

* one more to isolate

* request in bounds

* remove prints
  • Loading branch information
SteveMacenski authored Jan 21, 2023
1 parent d74ee90 commit a94047a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nav2_theta_star_planner/test/test_theta_star.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ TEST(ThetaStarTest, test_theta_star) {
planner_->setStartAndGoal(start, goal);
EXPECT_TRUE(planner_->src_.x == s.x && planner_->src_.y == s.y);
EXPECT_TRUE(planner_->dst_.x == g.x && planner_->dst_.y == g.y);

/// Check if the initializePosn function works properly
planner_->uinitializePosn(size_x * size_y);
EXPECT_EQ(planner_->getSizeOfNodePosition(), (size_x * size_y));
Expand All @@ -121,7 +120,7 @@ TEST(ThetaStarTest, test_theta_star) {
EXPECT_FALSE(planner_->isSafe(10, 10)); // cost at this point is 253 (>LETHAL_COST)

/// Check if the functions addIndex & getIndex work properly
coordsM c = {20, 30};
coordsM c = {18, 18};
planner_->uaddToNodesData(0);
planner_->uaddIndex(c.x, c.y);
tree_node * c_node = planner_->ugetIndex(c.x, c.y);
Expand Down

0 comments on commit a94047a

Please sign in to comment.