From f192a3080f9b36d508a6c3dd424e6bf3a30ad475 Mon Sep 17 00:00:00 2001 From: GoesM <130988564+GoesM@users.noreply.github.com> Date: Tue, 11 Jun 2024 23:43:02 +0800 Subject: [PATCH] [amcl] check the recieved initialpose in the size of map (#4416) * reorder pointers-reset & remove rebundant code Signed-off-by: GoesM * check the initialpose in map Signed-off-by: GoesM * back Signed-off-by: GoesM * remove the redunbant code Signed-off-by: GoesM * code style Signed-off-by: GoesM * code style Signed-off-by: GoesM * code style Signed-off-by: GoesM * codestyle Signed-off-by: GoesM * Update nav2_amcl/src/amcl_node.cpp Signed-off-by: Steve Macenski * Update nav2_amcl/src/amcl_node.cpp Signed-off-by: Steve Macenski --------- Signed-off-by: GoesM Signed-off-by: Steve Macenski Co-authored-by: GoesM Co-authored-by: Steve Macenski --- nav2_amcl/src/amcl_node.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/nav2_amcl/src/amcl_node.cpp b/nav2_amcl/src/amcl_node.cpp index b6492cb4ef..1a10c7aa41 100644 --- a/nav2_amcl/src/amcl_node.cpp +++ b/nav2_amcl/src/amcl_node.cpp @@ -333,7 +333,6 @@ AmclNode::on_cleanup(const rclcpp_lifecycle::State & /*state*/) global_loc_srv_.reset(); initial_guess_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