Skip to content

Commit

Permalink
Remove boards on node cleanup (#35)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9cbdaa7)
  • Loading branch information
bjsowa authored and mergify[bot] committed May 7, 2024
1 parent 1c70876 commit 74cd1d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aruco_opencv/src/aruco_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 74cd1d3

Please sign in to comment.