This commit is contained in:
Max 2021-09-21 14:43:01 +01:00
parent 8087ef2e53
commit 44ce112458

View File

@ -147,7 +147,7 @@ class VisionCargoApproacher:
self.no_detects = 0 # for how many frames did we not detect an apriltag (stops forklift) self.no_detects = 0 # for how many frames did we not detect an apriltag (stops forklift)
self.no_detect_limit = 3 # how many no detect frames are allowed to pass before we stop the forklift self.no_detect_limit = 3 # how many no detect frames are allowed to pass before we stop the forklift
# self.max_approach_area_thresh = 3000 # How much area should the Apriltag take up (pixels) before we send the stop comand (how close to the cargo do we stop) # self.max_approach_area_thresh = 3000 # How much area should the Apriltag take up (pixels) before we send the stop comand (how close to the cargo do we stop)
self.max_approach_area_thresh = 5500 # How much area should the Apriltag take up (pixels) before we send the stop comand (how close to the cargo do we stop) self.max_approach_area_thresh = 3500 # How much area should the Apriltag take up (pixels) before we send the stop comand (how close to the cargo do we stop)
self.centre_distance_thresh = (-0.2, 0.2) # horizontal tolerance for pallet alignment pre fork alignment self.centre_distance_thresh = (-0.2, 0.2) # horizontal tolerance for pallet alignment pre fork alignment
self.centre_angle_thresh = (-0.2, 0.2) # angular tolerance for pallet alignment pre fork alignment self.centre_angle_thresh = (-0.2, 0.2) # angular tolerance for pallet alignment pre fork alignment
self.horizontal_camera_offset = 0 # In case the camera isn't perfectly straight, we can compansate for that in code self.horizontal_camera_offset = 0 # In case the camera isn't perfectly straight, we can compansate for that in code