Skip to content

Commit

Permalink
completely shutdown inital_pose_sub_ (#4176)
Browse files Browse the repository at this point in the history
Signed-off-by: GoesM <[email protected]>
Co-authored-by: GoesM <[email protected]>
  • Loading branch information
GoesM and GoesM authored Mar 11, 2024
1 parent 4737462 commit 0897da9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nav2_amcl/src/amcl_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ AmclNode::on_cleanup(const rclcpp_lifecycle::State & /*state*/)
// don't continue to process incoming messages
global_loc_srv_.reset();
nomotion_update_srv_.reset();
executor_thread_.reset(); // to make sure initial_pose_sub_ completely exit
initial_pose_sub_.reset();
laser_scan_connection_.disconnect();
tf_listener_.reset(); // listener may access lase_scan_filter_, so it should be reset earlier
Expand Down

0 comments on commit 0897da9

Please sign in to comment.