Skip to content

Commit

Permalink
Update costmap_2d_ros.cpp (ros-navigation#3687)
Browse files Browse the repository at this point in the history
Signed-off-by: enricosutera <enricosutera@outlook.com>
  • Loading branch information
SteveMacenski authored and enricosutera committed May 19, 2024
1 parent 7e1ff0a commit 85f8d5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nav2_costmap_2d/src/costmap_2d_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ Costmap2DROS::on_cleanup(const rclcpp_lifecycle::State & /*state*/)
costmap_publisher_.reset();
clear_costmap_service_.reset();

for (auto & layer_pub : layer_publishers_) {
layer_pub.reset();
}
layer_publishers_.clear();

layered_costmap_.reset();

Expand Down

0 comments on commit 85f8d5a

Please sign in to comment.