Skip to content

Commit

Permalink
Fix costmap 2D test failures (#3611)
Browse files Browse the repository at this point in the history
* costmap test without action

* test2

* try just printing first thing

* Update test_costmap_2d_publisher.cpp
  • Loading branch information
SteveMacenski committed Jun 9, 2023
1 parent eb4a87a commit bbc3458
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,14 @@ TEST_F(CostmapRosTestFixture, costmap_pub_test)
EXPECT_EQ(costmap_raw->data[i], nav2_costmap_2d::FREE_SPACE);
}
for (; i < 10; ++i) {
EXPECT_EQ(costmap_raw->data[i++], nav2_costmap_2d::LETHAL_OBSTACLE);
EXPECT_EQ(costmap_raw->data[i], nav2_costmap_2d::LETHAL_OBSTACLE);
}
for (; i < 17; ++i) {
EXPECT_EQ(costmap_raw->data[i], nav2_costmap_2d::FREE_SPACE);
}
for (; i < 20; ++i) {
EXPECT_EQ(costmap_raw->data[i++], nav2_costmap_2d::LETHAL_OBSTACLE);
EXPECT_EQ(costmap_raw->data[i], nav2_costmap_2d::LETHAL_OBSTACLE);
}

SUCCEED();
}

0 comments on commit bbc3458

Please sign in to comment.