From 49d8a961ee7b6300f256969fa2b627ae6979b6d1 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 15:21:09 +0200 Subject: [PATCH] Remove boards on node cleanup (#35) (#37) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 9cbdaa7a310c7c6e4094b85f3392a0ef3cb15a66) Co-authored-by: Błażej Sowa --- aruco_opencv/src/aruco_tracker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aruco_opencv/src/aruco_tracker.cpp b/aruco_opencv/src/aruco_tracker.cpp index 157c4c7..041a7d2 100644 --- a/aruco_opencv/src/aruco_tracker.cpp +++ b/aruco_opencv/src/aruco_tracker.cpp @@ -225,6 +225,7 @@ class ArucoTracker : public rclcpp_lifecycle::LifecycleNode detector_parameters_.reset(); detection_pub_.reset(); debug_pub_.reset(); + boards_.clear(); return LifecycleNodeInterface::CallbackReturn::SUCCESS; } @@ -244,6 +245,7 @@ class ArucoTracker : public rclcpp_lifecycle::LifecycleNode detector_parameters_.reset(); detection_pub_.reset(); debug_pub_.reset(); + boards_.clear(); return LifecycleNodeInterface::CallbackReturn::SUCCESS; }