Skip to content

Commit

Permalink
Remove boards on node cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed May 7, 2024
1 parent d40a490 commit ce1824b
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 ce1824b

Please sign in to comment.