Skip to content

Commit

Permalink
Remove boards on node cleanup (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa authored May 7, 2024
1 parent d40a490 commit 9cbdaa7
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 @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 9cbdaa7

Please sign in to comment.