Commit 336ec5d
committed
Refactor parking planner: add maneuver-aware spot selection and geometric collision checking
- Introduced a maneuver-complexity-aware strategy in `pick_parking_spot` to prioritize easier-to-enter parking slots.
- Rewrote `available_parking_spots` to use polygon intersection with buffer clearance instead of bounding box proximity.
- Updated `all_parking_spots_in_parking_lot` to compute spots based on curb geometry and yaw direction.
- Refactored `find_available_parking_spots_and_search_vector` for cleaner curb processing and modular obstacle setup.
- Improved `find_collision_free_trajectory` with split-path planning and clearer bound handling.
- Removed redundant logic and deprecated methods for clarity and modularity.1 parent 3fd665a commit 336ec5d
2 files changed
Lines changed: 307 additions & 142 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 38 | + | |
| 39 | + | |
51 | 40 | | |
| 41 | + | |
52 | 42 | | |
53 | | - | |
54 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
55 | 47 | | |
56 | 48 | | |
57 | 49 | | |
58 | 50 | | |
59 | | - | |
| 51 | + | |
60 | 52 | | |
61 | 53 | | |
62 | 54 | | |
| |||
69 | 61 | | |
70 | 62 | | |
71 | 63 | | |
72 | | - | |
73 | 64 | | |
74 | 65 | | |
75 | 66 | | |
0 commit comments