@@ -350,12 +350,12 @@ def is_successfully_parked(self, final_state: List[float], goal_pose: ObjectPose
350350 # Create a polygon from the parking spot vertices
351351 # The vertices should be ordered in a way that forms a proper rectangle
352352 # [bottom-left, top-left, top-right, bottom-right]
353- ordered_vertices = [
354- parking_spot_vertices [0 ], # bottom-left
355- parking_spot_vertices [2 ], # top-left
356- parking_spot_vertices [3 ], # top-right
357- parking_spot_vertices [1 ], # bottom-right
358- ]
353+ # ordered_vertices = [
354+ # parking_spot_vertices[0], # bottom-left
355+ # parking_spot_vertices[2], # top-left
356+ # parking_spot_vertices[3], # top-right
357+ # parking_spot_vertices[1], # bottom-right
358+ # ]
359359
360360 # First check if vehicle collides with any cone
361361 for cone_object in cone_objects :
@@ -416,12 +416,12 @@ def is_final_pose_inside(self, final_state: List[float], obstacles: Dict[str, Ob
416416 # Create a polygon from the parking spot vertices
417417 # The vertices should be ordered in a way that forms a proper rectangle
418418 # [bottom-left, top-left, top-right, bottom-right]
419- ordered_vertices = [
420- parking_spot_vertices [0 ], # bottom-left
421- parking_spot_vertices [2 ], # top-left
422- parking_spot_vertices [3 ], # top-right
423- parking_spot_vertices [1 ], # bottom-right
424- ]
419+ # ordered_vertices = [
420+ # parking_spot_vertices[0], # bottom-left
421+ # parking_spot_vertices[2], # top-left
422+ # parking_spot_vertices[3], # top-right
423+ # parking_spot_vertices[1], # bottom-right
424+ # ]
425425
426426 # Check if final position is within parking spot
427427 if collisions .point_in_polygon_2d (final_pos_point , cone_vertices ):
0 commit comments