Skip to content

Commit a67f218

Browse files
nav2_costmap_2d: fix unit tests following change
Signed-off-by: Dylan De Coeyer <[email protected]>
1 parent b78df28 commit a67f218

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nav2_costmap_2d/test/integration/plugin_container_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ TEST_F(TestNode, testDifferentInflationLayers) {
268268
nav2_costmap_2d::Costmap2D * costmap = layers.getCostmap();
269269

270270
ASSERT_EQ(countValues(*costmap, nav2_costmap_2d::LETHAL_OBSTACLE), 21);
271-
ASSERT_EQ(countValues(*costmap, nav2_costmap_2d::INSCRIBED_INFLATED_OBSTACLE), 4);
271+
ASSERT_EQ(countValues(*costmap, nav2_costmap_2d::INSCRIBED_INFLATED_OBSTACLE), 77);
272272
}
273273

274274
TEST_F(TestNode, testDifferentInflationLayers2) {
@@ -317,7 +317,7 @@ TEST_F(TestNode, testDifferentInflationLayers2) {
317317
nav2_costmap_2d::Costmap2D * costmap = layers.getCostmap();
318318

319319
ASSERT_EQ(countValues(*costmap, nav2_costmap_2d::LETHAL_OBSTACLE), 21);
320-
ASSERT_EQ(countValues(*costmap, nav2_costmap_2d::INSCRIBED_INFLATED_OBSTACLE), 28);
320+
ASSERT_EQ(countValues(*costmap, nav2_costmap_2d::INSCRIBED_INFLATED_OBSTACLE), 77);
321321
}
322322

323323
TEST_F(TestNode, testResetting) {
@@ -447,7 +447,7 @@ TEST_F(TestNode, testClearing) {
447447
nav2_costmap_2d::Costmap2D * costmap = layers.getCostmap();
448448

449449
ASSERT_EQ(countValues(*costmap, nav2_costmap_2d::LETHAL_OBSTACLE), 21);
450-
ASSERT_EQ(countValues(*costmap, nav2_costmap_2d::INSCRIBED_INFLATED_OBSTACLE), 29);
450+
ASSERT_EQ(countValues(*costmap, nav2_costmap_2d::INSCRIBED_INFLATED_OBSTACLE), 77);
451451
ASSERT_EQ(olayer_b->getCost(9, 9), nav2_costmap_2d::LETHAL_OBSTACLE);
452452

453453
pclayer_a->clearArea(-1, -1, 10, 10, false);

0 commit comments

Comments
 (0)