diff --git a/ros2/Yolo-World-Detection/dist_to_obj_ws/src/dist_to_obj_package/dist_to_obj_package/object_detection_submodule/object_detection.py b/ros2/Yolo-World-Detection/dist_to_obj_ws/src/dist_to_obj_package/dist_to_obj_package/object_detection_submodule/object_detection.py index df69c4fd8..29eacc764 100644 --- a/ros2/Yolo-World-Detection/dist_to_obj_ws/src/dist_to_obj_package/dist_to_obj_package/object_detection_submodule/object_detection.py +++ b/ros2/Yolo-World-Detection/dist_to_obj_ws/src/dist_to_obj_package/dist_to_obj_package/object_detection_submodule/object_detection.py @@ -104,6 +104,7 @@ def objectDetection(self): self.detections = sv.Detections.from_ultralytics(results[0]) lane_bounds = self.determine_in_lane() obj_center_pos = self.distance_to_objects() + #TODO:Confirm this won't break anything. if(lane_bounds[0] < obj_center_pos < lane_bounds[1]): return obj_center_pos[1] return -1 diff --git a/ros2/src/lanefollowingtest/LaneDetection.py b/ros2/src/lanefollowingtest/LaneDetection.py index 2583d229f..c4f995d6a 100644 --- a/ros2/src/lanefollowingtest/LaneDetection.py +++ b/ros2/src/lanefollowingtest/LaneDetection.py @@ -307,7 +307,6 @@ def timer_callback(self): if (self._tolerance > TOLERANCE): crosstrack.data = 1000.0 self.crosstrack_pub.publish(crosstrack) - if cv2.waitKey(10) == 27: return