Skip to content

Commit d4a5cfb

Browse files
committed
Merge remote-tracking branch 'origin/s2025_summoning_planning' into s2025_summoning_webapp
2 parents 5074569 + f406a7f commit d4a5cfb

117 files changed

Lines changed: 7722 additions & 245 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/python-app.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Python application
5+
6+
on:
7+
push:
8+
branches:
9+
- '**'
10+
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
PEP-Guidelines:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Python 3.10
23+
uses: actions/setup-python@v3
24+
with:
25+
python-version: "3.10"
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install flake8 flake8-docstrings pep8-naming
30+
- name: Lint with flake8
31+
run: |
32+
# stop the build if there are Python syntax errors or undefined names
33+
flake8 ./GEMstack --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=__init__.py || exit 1
34+
# to enable more advanced checks on the repo, uncomment the lines below (There are around 3000 violations)
35+
# flake8 ./GEMstack --ignore=D,C901,E402,E231 --count --max-complexity=10 --max-line-length=127 --statistics --exclude=__init__.py || exit 1
36+
# if we want to enable documentation checks, uncomment the line below
37+
# flake8 ./GEMstack --ignore=E128,E402,E501,F401 --docstring-convention pep257 --max-line-length=120 --exclude=__init__.py || exit 1
38+
continue-on-error: false
39+
40+
Documentation:
41+
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- uses: actions/checkout@v3
46+
- name: Set up Python 3.10
47+
uses: actions/setup-python@v3
48+
with:
49+
python-version: "3.10"
50+
- name: Install dependencies
51+
run: |
52+
python -m pip install --upgrade pip
53+
pip install sphinx sphinx-rtd-theme
54+
- name: Generate Documentation
55+
run: |
56+
# stop the build if there are Python syntax errors or undefined names
57+
sphinx-build -b html docs docs/build
58+
- name: Save Documentation as Artifact
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: documentation
62+
path: docs/build

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,20 @@ cython_debug/
165165
# and can be added to the global gitignore or merged into this file. For a more nuclear
166166
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
167167
#.idea/
168+
169+
# ZED run files
170+
**/*.run
171+
.vscode/
172+
setup/zed_sdk.run
173+
cuda/
174+
onedrive_config.json
175+
zed_sdk.run
176+
ZED_SDK_Ubuntu20_cuda11.8_v4.0.8.zstd.run
177+
ros.asc
178+
179+
homework/yolov8n.pt
180+
homework/yolo11n.pt
181+
GEMstack/knowledge/detection/yolov8n.pt
182+
GEMstack/knowledge/detection/yolo11n.pt
183+
yolov8n.pt
184+
yolo11n.pt
850 Bytes
Binary file not shown.
Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,63 @@
1-
calibration_date: "2024-03-05" # Date of calibration YYYY-MM-DD
2-
reference: rear_axle_center # rear axle center
3-
rear_axle_height: 0.33 # height of rear axle center above flat ground
4-
gnss_location: [1.10,0,1.62] # meters, taken from https://github.com/hangcui1201/POLARIS_GEM_e2_Real/blob/main/vehicle_drivers/gem_gnss_control/scripts/gem_gnss_tracker_stanley_rtk.py. Note conflict with pure pursuit location?
5-
gnss_yaw: 0.0 # radians
1+
T_frontcamera_vehicle:
2+
- - 0.04979815921110274
3+
- -0.02889308605338095
4+
- 0.998341277156963
5+
- 0.6874899022540225
6+
- - -0.9986898492450907
7+
- 0.010343220052680617
8+
- 0.05011489006575621
9+
- -0.006750728511462573
10+
- - -0.011774038000135968
11+
- -0.9995289850272167
12+
- -0.02834016107658961
13+
- -0.07694233627246522
14+
- - 0.0
15+
- 0.0
16+
- 0.0
17+
- 1.0
18+
T_toplidar_frontcamera:
19+
- - 0.029096143490519977
20+
- -0.9995463314295703
21+
- -0.007781115579835407
22+
- -0.045768971801312515
23+
- - -0.005777780139254174
24+
- 0.007616104089319731
25+
- -0.999954305063568
26+
- -0.3868171492765085
27+
- - 0.9995599190096819
28+
- 0.02913977151915098
29+
- -0.005553559684576381
30+
- -0.6975440651652165
31+
- - 0.0
32+
- 0.0
33+
- 0.0
34+
- 1.0
35+
T_toplidar_vehicle:
36+
- - 0.9995177984237671
37+
- -0.020904183387756348
38+
- 0.022959932684898376
39+
- 0.0
40+
- - 0.020975051447749138
41+
- 0.9997758865356445
42+
- -0.0028501423075795174
43+
- 0.0
44+
- - -0.0228952094912529
45+
- 0.003330353880301118
46+
- 0.9997323155403137
47+
- 0.33000001311302185
48+
- - 0.0
49+
- 0.0
50+
- 0.0
51+
- 1.0
52+
date: '2025-02-25 22:31:02.057447'
53+
calibration_type: absolute_vehicle_calibration
54+
gnss_location:
55+
- 1.1
56+
- 0
57+
- 1.62
58+
gnss_yaw: 0.0
59+
rear_axle_height: 0.33
60+
reference: rear_axle_center
61+
vehicle: gem_e4
662
top_lidar: !include "gem_e4_ouster.yaml"
763
front_camera: !include "gem_e4_oak.yaml"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"fx": 684.8333129882812,
3+
"fy": 684.6096801757812,
4+
"cx": 573.37109375,
5+
"cy": 363.700927734375
6+
}
7+

GEMstack/knowledge/defaults/computation_graph.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,26 @@ components:
4444
inputs: [vehicle, roadgraph, mission]
4545
outputs: route
4646
- driving_logic:
47-
inputs: all
47+
inputs:
4848
outputs: intent
49+
- parking_component: # one way
50+
inputs: all
51+
outputs: mission_plan
52+
- summon_component: # one way
53+
inputs: all
54+
outputs: route
55+
- summoning_mission_planning:
56+
inputs: all
57+
outputs: mission_plan
58+
- route_planning_component: # one way
59+
inputs: all
60+
outputs: route
4961
- motion_planning:
5062
inputs: all
5163
outputs: trajectory
5264
- trajectory_tracking:
5365
inputs: [vehicle, trajectory]
5466
outputs:
67+
- signaling:
68+
inputs: [intent]
69+
outputs:

GEMstack/knowledge/defaults/current.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ control:
1414
pure_pursuit:
1515
lookahead: 2.0
1616
lookahead_scale: 3.0
17-
crosstrack_gain: 1.0
17+
crosstrack_gain: 0.5 # default: 1
1818
desired_speed: trajectory
1919
longitudinal_control:
20-
pid_p: 1.0
20+
pid_p: 1.5
2121
pid_i: 0.1
2222
pid_d: 0.0
2323

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# arguments for BiRRT* algorithm
2+
# map boundary in meter
3+
map:
4+
lower_x: -5
5+
upper_x: 20
6+
lower_y: -5
7+
upper_y: 20
8+
# vehicle info
9+
vehicle:
10+
heading_limit: 0.5235987756 # pi/6 in radians
11+
half_width: 0.8 # in meter
12+
# algorithm parameters
13+
rrt:
14+
time_limit: 10 # in sec
15+
step_size: 0.5 # length in meter for local planner to explore
16+
search_r: 1.4 # radius in meter for rewiring
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"type": "Roadgraph", "data": {"frame": 0, "curves": {}, "lanes": {"0": {"type": 0, "surface": 0, "route_name": "", "left": {"type": 0, "segments": [[[-88.236129, 40.09275451039261, 0.0], [-88.235527, 40.09275451039261, 0.0]]], "crossable": true, "elevation": null, "height": null}, "right": {"type": 0, "segments": [[[-88.236129, 40.092727489607384, 0.0], [-88.235527, 40.092727489607384, 0.0]]], "crossable": true, "elevation": null, "height": null}, "center": null, "begin": null, "end": null}, "1": {"type": 0, "surface": 0, "route_name": "", "left": {"type": 0, "segments": [[[-88.235527, 40.09275451039261, 0.0], [-88.235527, 40.092805489607386, 0.0]]], "crossable": true, "elevation": null, "height": null}, "right": {"type": 0, "segments": [[[-88.235527, 40.09272748960739, 0.0], [-88.235527, 40.092832510392604, 0.0]]], "crossable": true, "elevation": null, "height": null}, "center": null, "begin": null, "end": null}, "2": {"type": 0, "surface": 0, "route_name": "", "left": {"type": 0, "segments": [[[-88.235527, 40.092805489607386, 0.0], [-88.236129, 40.092805489607386, 0.0]]], "crossable": true, "elevation": null, "height": null}, "right": {"type": 0, "segments": [[[-88.235527, 40.09283251039261, 0.0], [-88.236129, 40.09283251039261, 0.0]]], "crossable": true, "elevation": null, "height": null}, "center": null, "begin": null, "end": null}, "4": {"type": 0, "surface": 0, "route_name": "", "left": {"type": 0, "segments": [[[-88.236129, 40.092805489607386, 0.0], [-88.236129, 40.09275451039261, 0.0]]], "crossable": true, "elevation": null, "height": null}, "right": {"type": 0, "segments": [[[-88.236129, 40.092832510392604, 0.0], [-88.236129, 40.09272748960739, 0.0]]], "crossable": true, "elevation": null, "height": null}, "center": null, "begin": null, "end": null}}, "regions": {}, "signs": {}, "static_obstacles": {}, "connections": []}}

0 commit comments

Comments
 (0)