Skip to content

Commit

Permalink
earlier executor_thread_.reset() in nav2_costmap_ros (#4385)
Browse files Browse the repository at this point in the history
* reorder cleanup_queue

Signed-off-by: goes <[email protected]>

* codestyle

Signed-off-by: goes <[email protected]>

* codestyle

Signed-off-by: goes <[email protected]>

---------

Signed-off-by: goes <[email protected]>
Co-authored-by: goes <[email protected]>
  • Loading branch information
GoesM and goes authored May 31, 2024
1 parent 30e2cde commit d302f1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nav2_costmap_2d/src/costmap_2d_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ nav2_util::CallbackReturn
Costmap2DROS::on_cleanup(const rclcpp_lifecycle::State & /*state*/)
{
RCLCPP_INFO(get_logger(), "Cleaning up");
executor_thread_.reset();

costmap_publisher_.reset();
clear_costmap_service_.reset();
Expand All @@ -368,8 +369,6 @@ Costmap2DROS::on_cleanup(const rclcpp_lifecycle::State & /*state*/)
footprint_sub_.reset();
footprint_pub_.reset();


executor_thread_.reset();
return nav2_util::CallbackReturn::SUCCESS;
}

Expand Down

0 comments on commit d302f1a

Please sign in to comment.