From 900a6e8623005b536af764cee74cb8be7b5a1ee9 Mon Sep 17 00:00:00 2001 From: JF Dalbosco Date: Sun, 20 Dec 2020 21:34:51 +0100 Subject: [PATCH] costmap_2d: remove useless and buggy testing helper function (#2130) (#2131) Co-authored-by: JF Dalbosco --- nav2_costmap_2d/test/testing_helper.hpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nav2_costmap_2d/test/testing_helper.hpp b/nav2_costmap_2d/test/testing_helper.hpp index 82c7d53ec2b..06cdbe625f3 100644 --- a/nav2_costmap_2d/test/testing_helper.hpp +++ b/nav2_costmap_2d/test/testing_helper.hpp @@ -30,16 +30,6 @@ const double MAX_Z(1.0); -void setValues(nav2_costmap_2d::Costmap2D & costmap, const unsigned char * map) -{ - int index = 0; - for (unsigned int i = 0; i < costmap.getSizeInCellsY(); i++) { - for (unsigned int j = 0; j < costmap.getSizeInCellsX(); j++) { - costmap.setCost(j, i, map[index]); - } - } -} - char printableCost(unsigned char cost) { switch (cost) {