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 <GoesM@buaa.edu.cn>
Co-authored-by: GoesM <GoesM@buaa.edu.cn>
  • Loading branch information
2 people authored and SteveMacenski committed Apr 4, 2024
1 parent 6c7c748 commit f0aea10
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();
laser_scan_filter_.reset();
Expand Down

0 comments on commit f0aea10

Please sign in to comment.