Skip to content

Commit

Permalink
Remove boards on node cleanup (#35) (#36)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9cbdaa7)

Co-authored-by: Błażej Sowa <bsowa123@gmail.com>
  • Loading branch information
mergify[bot] and bjsowa committed May 7, 2024
1 parent 35c47ac commit 4eb10f4
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 @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 4eb10f4

Please sign in to comment.