Skip to content

Commit

Permalink
Added map_vis_z into test
Browse files Browse the repository at this point in the history
  • Loading branch information
VladyslavHrynchak200204 committed Jul 30, 2024
1 parent 1053ff9 commit 3d137f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nav2_costmap_2d/test/integration/test_costmap_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::vector<std::uint8_t>> expectedCostmaps;
std::vector<std::vector<std::uint8_t>> recievedCostmaps;

auto costmapPublisher = std::make_shared<nav2_costmap_2d::Costmap2DPublisher>(
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) {
Expand Down

0 comments on commit 3d137f9

Please sign in to comment.