Skip to content

Commit c84349f

Browse files
committed
fix bug
1 parent 21d5bb8 commit c84349f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Fusion/FindParkingLot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,13 @@ def scoreAndSortCandidates(candidates, cornerPts):
178178
return scoredCandidates
179179

180180

181+
BASE_VEHICLE_DIST = 1.10
182+
181183
def cvtCenter2VehiclePos(center, cornerPts):
182184
pt1, pt2 = findMaxLenEdgePoints(cornerPts)
183185
near, far = (pt1, pt2) if np.linalg.norm(pt1) < np.linalg.norm(pt2) else (pt2, pt1)
184186
directionNorm = (near - far) / np.linalg.norm(near - far)
185-
vehicle = center + directionNorm * (GEM_E4_LENGTH / 2)
187+
vehicle = center + directionNorm * BASE_VEHICLE_DIST
186188
return vehicle
187189

188190

0 commit comments

Comments
 (0)