From dbbe5960ff9ad23299191c1cbe59b5b7391c1918 Mon Sep 17 00:00:00 2001 From: Vladyslav Hrynchak Date: Mon, 29 Jul 2024 14:50:54 +0300 Subject: [PATCH] Added map_vis_z into tests Signed-off-by: Vladyslav Hrynchak --- .../test/integration/test_costmap_subscriber.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nav2_costmap_2d/test/integration/test_costmap_subscriber.cpp b/nav2_costmap_2d/test/integration/test_costmap_subscriber.cpp index 849edf282c7..30e6bb2b4c2 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; + float 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) { @@ -159,12 +160,13 @@ TEST_F(TestCostmapSubscriberShould, handleFullCostmapMsgs) TEST_F(TestCostmapSubscriberShould, handleCostmapUpdateMsgs) { bool always_send_full_costmap = false; + float 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) {