Skip to content

Commit

Permalink
Added map_vis_z into handleCostmapUpdateMsgs test
Browse files Browse the repository at this point in the history
Signed-off-by: Vladyslav Hrynchak <[email protected]>
  • Loading branch information
VladyslavHrynchak200204 committed Jul 30, 2024
1 parent 8b2ba75 commit 68464d9
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 @@ -160,12 +160,13 @@ TEST_F(TestCostmapSubscriberShould, handleFullCostmapMsgs)
TEST_F(TestCostmapSubscriberShould, handleCostmapUpdateMsgs)
{
bool always_send_full_costmap = false;
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 68464d9

Please sign in to comment.