Skip to content

Commit

Permalink
earlier executor_thread_.reset() in nav2_costmap_ros (ros-navigatio…
Browse files Browse the repository at this point in the history
…n#4385)

* 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
2 people authored and Marc-Morcos committed Jul 4, 2024
1 parent a169386 commit efab56b
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 efab56b

Please sign in to comment.