Skip to content

Commit

Permalink
Light testing changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav-Hariani committed May 17, 2024
1 parent 5a8ff7b commit 94f183c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion ros2/src/lanefollowingtest/LaneDetection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 94f183c

Please sign in to comment.