From 9cbdaa7a310c7c6e4094b85f3392a0ef3cb15a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Sowa?= Date: Tue, 7 May 2024 15:09:45 +0200 Subject: [PATCH] Remove boards on node cleanup (#35) --- 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 5ba6049..9eee459 100644 --- a/aruco_opencv/src/aruco_tracker.cpp +++ b/aruco_opencv/src/aruco_tracker.cpp @@ -224,6 +224,7 @@ class ArucoTracker : public rclcpp_lifecycle::LifecycleNode detector_parameters_.reset(); detection_pub_.reset(); debug_pub_.reset(); + boards_.clear(); return LifecycleNodeInterface::CallbackReturn::SUCCESS; } @@ -243,6 +244,7 @@ class ArucoTracker : public rclcpp_lifecycle::LifecycleNode detector_parameters_.reset(); detection_pub_.reset(); debug_pub_.reset(); + boards_.clear(); return LifecycleNodeInterface::CallbackReturn::SUCCESS; }