Skip to content

Commit

Permalink
Added map_vis_z into tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VladyslavHrynchak200204 committed Jul 29, 2024
1 parent 1053ff9 commit 510066d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 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;
float 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 Expand Up @@ -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<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 510066d

Please sign in to comment.