Skip to content

Commit

Permalink
costmap_2d: remove useless and buggy testing helper function (#2130) (#…
Browse files Browse the repository at this point in the history
…2131)

Co-authored-by: JF Dalbosco <jean-francois.dalbosco@safrangroup.com>
  • Loading branch information
jdalbosc and JF Dalbosco authored Dec 20, 2020
1 parent 6a0c92c commit e7432f1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions nav2_costmap_2d/test/testing_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e7432f1

Please sign in to comment.