diff --git a/nav2_costmap_2d/test/integration/test_costmap_subscriber.cpp b/nav2_costmap_2d/test/integration/test_costmap_subscriber.cpp index 849edf282c7..618511c2a19 100644 --- a/nav2_costmap_2d/test/integration/test_costmap_subscriber.cpp +++ b/nav2_costmap_2d/test/integration/test_costmap_subscriber.cpp @@ -125,12 +125,13 @@ class TestCostmapSubscriberShould : public ::testing::Test TEST_F(TestCostmapSubscriberShould, handleFullCostmapMsgs) { bool always_send_full_costmap = true; + bool map_vis_z = 0.0; std::vector> expectedCostmaps; std::vector> recievedCostmaps; auto costmapPublisher = std::make_shared( - node, costmapToSend.get(), "", topicName, always_send_full_costmap); + node, costmapToSend.get(), "", topicName, always_send_full_costmap, map_vis_z); costmapPublisher->on_activate(); for (const auto & mapChange : mapChanges) {