From 425d951b68553b5f6934721c006228fc629818ee 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) (cherry picked from commit 9cbdaa7a310c7c6e4094b85f3392a0ef3cb15a66) --- 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 878dd12..cbf0b94 100644 --- a/aruco_opencv/src/aruco_tracker.cpp +++ b/aruco_opencv/src/aruco_tracker.cpp @@ -226,6 +226,7 @@ class ArucoTracker : public rclcpp_lifecycle::LifecycleNode detector_parameters_.reset(); detection_pub_.reset(); debug_pub_.reset(); + boards_.clear(); return LifecycleNodeInterface::CallbackReturn::SUCCESS; } @@ -245,6 +246,7 @@ class ArucoTracker : public rclcpp_lifecycle::LifecycleNode detector_parameters_.reset(); detection_pub_.reset(); debug_pub_.reset(); + boards_.clear(); return LifecycleNodeInterface::CallbackReturn::SUCCESS; }