fix for #1363 - use clearMap instead of reset to clear costmaps (#1412)
* -fix for #1363. -created clearMap function for each layer. -use clearMap instead of reset to clear the costmaps * -function name change -infilation layer clearMap change -make resetMap a pure virtual function * Changing clearMaps back to reset * Fix uncrustify error * Fixing lifecycle transitions and tests now that reset doesn't act as a cleanup function * Updating this based on the approach taken in PR #1431 * Moving voxel_grid reset to the resetMaps function. * Missed adding resetMaps back to header. * Adding some comments to help navigate the inheritance hierarchy
Showing
- nav2_costmap_2d/include/nav2_costmap_2d/inflation_layer.hpp 1 addition, 2 deletionsnav2_costmap_2d/include/nav2_costmap_2d/inflation_layer.hpp
- nav2_costmap_2d/include/nav2_costmap_2d/layer.hpp 1 addition, 1 deletionnav2_costmap_2d/include/nav2_costmap_2d/layer.hpp
- nav2_costmap_2d/include/nav2_costmap_2d/obstacle_layer.hpp 4 additions, 0 deletionsnav2_costmap_2d/include/nav2_costmap_2d/obstacle_layer.hpp
- nav2_costmap_2d/plugins/obstacle_layer.cpp 13 additions, 9 deletionsnav2_costmap_2d/plugins/obstacle_layer.cpp
- nav2_costmap_2d/plugins/static_layer.cpp 1 addition, 5 deletionsnav2_costmap_2d/plugins/static_layer.cpp
- nav2_costmap_2d/plugins/voxel_layer.cpp 7 additions, 6 deletionsnav2_costmap_2d/plugins/voxel_layer.cpp
- nav2_costmap_2d/src/costmap_2d_ros.cpp 0 additions, 1 deletionnav2_costmap_2d/src/costmap_2d_ros.cpp
- nav2_costmap_2d/test/integration/obstacle_tests.cpp 1 addition, 12 deletionsnav2_costmap_2d/test/integration/obstacle_tests.cpp
Please register or sign in to comment