diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index a9c00636b82..b173e743eef 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -778,7 +778,7 @@ void GridMap::_update_octants_callback() { while (to_delete.front()) { octant_map.erase(to_delete.front()->get()); - to_delete.pop_back(); + to_delete.pop_front(); } _update_visibility();