Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Theta* test failures #3380

Merged
merged 4 commits into from
Jan 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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