Skip to content

Commit 47006ee

Browse files
committed
Transfered yield algorithms
1 parent e94b12a commit 47006ee

7 files changed

Lines changed: 441 additions & 854 deletions

File tree

GEMstack/knowledge/defaults/current.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ control:
2222
pid_d: 0.0
2323
planning:
2424
longitudinal_plan:
25-
mode: 'real'
25+
mode: 'real' # 'real' or 'sim'
26+
yielder: 'expart' # 'expart', 'analytic', or 'simulation'
2627
planner: 'dt' # 'milestone', 'dt', or 'dx'
2728
desired_speed: 1.0
2829
acceleration: 0.5
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Planning-A HW1 Document
2+
3+
This document serves as an overview for integrating pedestrian yielder into longitudinal planner. It describes how parameters from `pedetrian_detecion.yaml` are used in the planning system along with references to the `longitudinal_planning.py` script and the `pedestrian_yield_logic.py` script.
4+
5+
Details on the algorithm and demos are availavle at the link below:<br>
6+
https://drive.google.com/drive/folders/1aSOWIrqXjf9-j6i1S_MJksATMyyoP31_?usp=sharing
7+
8+
9+
## Contribution
10+
Each member contributed to:
11+
### longitudinal_planning.py Contributions
12+
13+
| Algorithm | Contributor |
14+
| :--------- | :-------------- |
15+
| milestone | Simon (sk106) |
16+
| dt | Rohit (srm17) |
17+
| dx | Hansen (hl58) |
18+
19+
### pedestrian_yield_logic.py Contributions
20+
21+
| Algorithm | Contributor |
22+
| :--------- | :------------------------------------------ |
23+
| expert | Patrick (bohaowu2), Animesh (animesh8) |
24+
| analytic | Henry (weigang2) |
25+
| simulation | Yudai (yyamada2) |
26+
27+
28+
## Configuration Details
29+
The `pedetrian_detecion.yaml` file includes:
30+
```
31+
args:
32+
mode: 'real'
33+
params: {
34+
'yielder': 'expart', # 'expart', 'analytic', or 'simulation'
35+
'planner': 'milestone', # 'milestone', 'dt', or 'dx'
36+
'desired_speed': 1.0, # m/s
37+
'acceleration': 0.75 # m/s2
38+
}
39+
```
40+
41+
42+
## Usage
43+
### pedetrian_detecion.yaml
44+
Algorithm can be chosen from the above in this file. Also contains parameters for the logic.
45+
### Execution: Simulator
46+
`python3 main.py --variant=fake_sim launch/pedestrian_detection.yaml`
47+
### Testing
48+
- `testing/test_longitudinal_plan.py`
49+
- `testing/test_yield_logic_analytic.ipynb`
50+
- `testing/test_collision_detection.py`

0 commit comments

Comments
 (0)