<!-- For general questions, please ask on ROS answers: https://answers.ros.org, make sure to include at least the `ros2` tag and the rosdistro version you are running, e.g. `ardent`. For general design discussions, please post on discourse: https://discourse.ros.org/c/ng-ros Not sure if this is the right repository? Open an issue on https://github.com/ros-planning/navigation2 For Bug report or feature requests, please fill out the relevant category below --> ## Bug report **Required Info:** - Operating System: Ubuntu 20.04 - ROS2 Version: Galactic - Version or commit hash: last galactic sync - DDS implementation: Cyclone #### Steps to reproduce issue <!-- Detailed instructions on how to reliably reproduce this issue http://sscce.org/ ``` code that can be copy-pasted is preferred ``` --> Call `CostmapLayer::clearArea` https://github.com/ros-planning/navigation2/blob/b201d058a7b15f1786c57afe69d079ac5d502018/nav2_costmap_2d/src/costmap_layer.cpp#L64-L81 #### Expected behavior https://github.com/ros-planning/navigation2/blob/b201d058a7b15f1786c57afe69d079ac5d502018/nav2_costmap_2d/include/nav2_costmap_2d/costmap_layer.hpp#L78-L81 #### Actual behavior The opposite! #### Additional information Propably this line should have `==` instead of `!=` https://github.com/ros-planning/navigation2/blob/b201d058a7b15f1786c57afe69d079ac5d502018/nav2_costmap_2d/src/costmap_layer.cpp#L72 <!-- If you are reporting a bug delete everything below If you are requesting a feature deleted everything above this line --> ----
Bug report
Required Info:
Steps to reproduce issue
Call
CostmapLayer::clearAreahttps://github.com/ros-planning/navigation2/blob/b201d058a7b15f1786c57afe69d079ac5d502018/nav2_costmap_2d/src/costmap_layer.cpp#L64-L81
Expected behavior
https://github.com/ros-planning/navigation2/blob/b201d058a7b15f1786c57afe69d079ac5d502018/nav2_costmap_2d/include/nav2_costmap_2d/costmap_layer.hpp#L78-L81
Actual behavior
The opposite!
Additional information
Propably this line should have
==instead of!=https://github.com/ros-planning/navigation2/blob/b201d058a7b15f1786c57afe69d079ac5d502018/nav2_costmap_2d/src/costmap_layer.cpp#L72