Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
884206d
Update current.yaml and stanley.py
hhxjqm Mar 30, 2025
f587a81
Update current.yaml and stanley.py
hhxjqm Mar 31, 2025
c192802
Fix Stanley controller debug logging
hhxjqm Mar 31, 2025
b7ced52
Update fixed_route.yaml
Jugthegreat Apr 10, 2025
0ed85b3
Update stanley.py
Jugthegreat Apr 10, 2025
ec5c28c
Add files via upload
Jugthegreat Apr 10, 2025
01d2f92
Update settings.py
Jugthegreat Apr 10, 2025
66e83d3
add mpc.py
Patrick8894 Apr 13, 2025
ab45c45
update by Bo-Hao Wu's idea
hhxjqm Apr 23, 2025
7a9824f
implement reverse stanley in reverse_stanley.py (need to merge with s…
hhxjqm Apr 23, 2025
d95582d
Merge reverse_stanley.py and stanley.py
hhxjqm Apr 25, 2025
6f36be4
Set up stanley
hhxjqm Apr 25, 2025
aef87b1
update stanley.py
hhxjqm Apr 25, 2025
789d36e
update
hhxjqm Apr 25, 2025
67e0708
update
hhxjqm Apr 25, 2025
f0d0e09
Update current.yaml and stanley.py
hhxjqm Mar 30, 2025
7979282
Update current.yaml and stanley.py
hhxjqm Mar 31, 2025
969aef5
Fix Stanley controller debug logging
hhxjqm Mar 31, 2025
3cb0ab4
Update fixed_route.yaml
Jugthegreat Apr 10, 2025
30527ec
Update stanley.py
Jugthegreat Apr 10, 2025
6aa8dca
Add files via upload
Jugthegreat Apr 10, 2025
815b3fa
Update settings.py
Jugthegreat Apr 10, 2025
63b8994
add mpc.py
Patrick8894 Apr 13, 2025
a3f3ea6
update by Bo-Hao Wu's idea
hhxjqm Apr 23, 2025
b149ff3
implement reverse stanley in reverse_stanley.py (need to merge with s…
hhxjqm Apr 23, 2025
57d8c3b
Merge reverse_stanley.py and stanley.py
hhxjqm Apr 25, 2025
b67f1d2
Set up stanley
hhxjqm Apr 25, 2025
bafc601
update stanley.py
hhxjqm Apr 25, 2025
8904696
update
hhxjqm Apr 25, 2025
94d70ea
update
hhxjqm Apr 25, 2025
4f26fc8
update current.yaml
hhxjqm Apr 30, 2025
f8873eb
update stanley.py
hhxjqm Apr 30, 2025
e2a50bc
Merge branch 'Control_Stanley' of github.com:krishauser/GEMstack into…
Patrick8894 Apr 30, 2025
0daf53e
add mpc, still need some adjustment to make it more fault tolerant
Patrick8894 Apr 30, 2025
0d7b5e2
Add files via upload
Jugthegreat Apr 30, 2025
9cd3d53
Update stanley.py
hhxjqm May 4, 2025
9644454
fix reverse in stanley.py
hhxjqm May 5, 2025
8c3dde5
Fix the reverse issue in p_shape
hhxjqm May 10, 2025
45bef18
finish mpc
Patrick8894 May 10, 2025
184b497
support gear change on real vehicle and mpc controller / adjust pedal…
Patrick8894 May 11, 2025
b71e9fb
Update and rename stanley.py to stanley_reverse.py
Jugthegreat May 12, 2025
609f22a
Create stanley.py
Jugthegreat May 12, 2025
9ec304e
Delete stanley.py
Jugthegreat May 12, 2025
884c122
Create stanley.py
Jugthegreat May 12, 2025
21b4fb2
Update serialization.py
Jugthegreat May 12, 2025
958209e
Update stanley.py
Jugthegreat May 12, 2025
19521f9
Update stanley_reverse.py
Jugthegreat May 12, 2025
b50598b
Fixed the issue where the vehicle could not reverse when the speed wa…
hhxjqm May 12, 2025
5a5e790
update requirements.txt
Patrick8894 May 13, 2025
e4a2d7b
Update mpc.py
Jugthegreat May 13, 2025
9710f45
Merge branch 's2025' into Control_Stanley
Patrick8894 May 13, 2025
d895167
Add log plot for mpc
Patrick8894 May 13, 2025
5c89954
Add files via upload
Rohit-R-Rao May 13, 2025
230d806
Update mpc.py
Patrick8894 May 13, 2025
7f51c43
Update mpc.py
Patrick8894 May 13, 2025
719eaea
Delete GEMstack/onboard/planning/stanley_forward.py
Patrick8894 May 13, 2025
5513f81
modify mpc for better args
Patrick8894 May 14, 2025
6630485
Merge branch 'Control_Stanley' of github.com:krishauser/GEMstack into…
Patrick8894 May 14, 2025
4ef6f54
remove unused controller
Patrick8894 May 14, 2025
a961e73
add comments
Patrick8894 May 14, 2025
ede9cae
Update logplot_s.py
Jugthegreat May 14, 2025
975bc67
Update logplot_pp.py
Jugthegreat May 14, 2025
71fa987
Update logplot_mpc.py
Jugthegreat May 14, 2025
1d9834a
Update current.yaml
hhxjqm May 15, 2025
5d08ec7
Update mpc.py
Jugthegreat May 15, 2025
b7062da
Update logplot_mpc.py
Jugthegreat May 15, 2025
47864bb
Merge branch 's2025' into Control_Stanley
Patrick8894 May 15, 2025
55bceaa
Update mpc.py comments
Patrick8894 May 15, 2025
669ba96
Update creep_planning.py
Rohit-R-Rao May 15, 2025
eb9eda1
revised creep_planning
Rohit-R-Rao May 15, 2025
9e691c6
Update xyhead_demo.yaml
Jugthegreat May 15, 2025
0369cca
Update serialization.py
Jugthegreat May 15, 2025
bc41621
remove and change some files for PR
Patrick8894 May 15, 2025
91e4cd2
Update mpc.py
Patrick8894 May 16, 2025
ce0d3ec
Merge branch 's2025' into Control_Stanley
Patrick8894 May 16, 2025
acdb8e2
update current.yaml
Patrick8894 May 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 25 additions & 8 deletions GEMstack/knowledge/defaults/current.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,32 @@ control:
recovery:
brake_amount : 0.5
brake_speed : 2.0

# Pure Pursuit controller parameters
pure_pursuit:
lookahead: 2.0
lookahead_scale: 3.0
crosstrack_gain: 0.5
desired_speed: trajectory
lookahead: 2.0 # Base lookahead distance (meters)
lookahead_scale: 3.0 # Velocity-dependent lookahead scaling factor
crosstrack_gain: 0.5 # Gain for crosstrack error correction (default: 1)
desired_speed: trajectory # Speed reference source: can be "trajectory", "path", or a constant value

# Stanley controller parameters (fine tune this)
stanley:
control_gain: 1.5
softening_gain: 0.2
desired_speed: trajectory # Speed reference source: can be "trajectory", "path", or a constant value

# MPC controller parameters
mpc:
dt: 0.2 # Time step for the MPC controller (seconds)
horizon: 30 # Prediction horizon for the MPC controller (number of time steps)
switch_gear: False # Whether to switch gears during runtime
desired_speed: trajectory # Speed reference source: can be "trajectory", "path", or a constant value

# Shared longitudinal control parameters
longitudinal_control:
pid_p: 1.0
pid_i: 0.1
pid_d: 0.0
pid_p: 1.0 # Proportional gain for speed PID controller
pid_i: 0.1 # Integral gain for speed PID controller
pid_d: 1.0 # Derivative gain for speed PID controller

#configure the simulator, if using
simulator:
Expand All @@ -31,4 +48,4 @@ simulator:
#orientation_noise: 0.04 #2.3 degrees noise
#velocity_noise:
# constant: 0.04 #4cm/s noise
# linear: 0.02 #2% noise
# linear: 0.02 #2% noise
16 changes: 16 additions & 0 deletions GEMstack/knowledge/routes/backward_15m.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
0.0,0,0
-1.0,0,0
-2.0,0,0
-3.0,0,0
-4,0,0
-5,0,0
-6,0,0
-7,0,0
-8,0,0
-9,0,0
-10,0,0
-11,0,0
-12,0,0
-13,0,0
-14,0,0
-15,0,0
20 changes: 20 additions & 0 deletions GEMstack/knowledge/routes/backward_curve.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
0.0,0,0
-1.0,0,0
-2.0,0.2,0
-3.0,0.4,0
-4.0,0.6,0
-5.0,0.8,0
-6.0,1.0,0
-7.0,1.2,0
-8.0,1.4,0
-9.0,1.6,0
-10.0,1.8,0
-11.0,2.0,0
-12.0,2.2,0
-13.0,2.4,0
-14.0,2.6,0
-15.0,2.8,0
-16.0,3.0,0
-17.0,3.2,0
-18.0,3.4,0
-19.0,3.6,0
33 changes: 33 additions & 0 deletions GEMstack/knowledge/routes/forward_curve.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
0.0,0,0
1.0,0,0
2.0,0,0
3.0,0,0
4.0,0.4,0
5.0,0.8,0
6.0,1.2,0
7.0,1.6,0
8.0,2.0,0
9.0,2.4,0
10.0,2.8,0
11.0,3.2,0
12.0,3.6,0
13.0,4.0,0
14.0,4.4,0
15.0,4.8,0
16.0,5.2,0
17.0,5.6,0
18.0,6.0,0
19.0,6.4,0
20.0,6.8,0
21.0,7.2,0
22.0,7.6,0
23.0,8.0,0
24.0,8.4,0
25.0,8.8,0
26.0,9.2,0
27.0,9.6,0
28.0,10.0,0
29.0,10.4,0
30.0,10.8,0
31.0,11.2,0
32.0,11.6,0
31 changes: 31 additions & 0 deletions GEMstack/knowledge/routes/offset.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
0.0,0.5,0
1.0,0.7,0
2.0,0.9,0
3.0,1.1,0
4.0,1.3,0
5.0,1.5,0
6.0,1.7,0
7.0,1.9,0
8.0,2.1,0
9.0,2.3,0
10.0,2.5,0
11.0,2.7,0
12.0,2.9,0
13.0,3.1,0
14.0,3.3,0
15.0,3.5,0
16.0,3.7,0
17.0,3.9,0
18.0,4.1,0
19.0,4.3,0
20.0,4.5,0
21.0,4.7,0
22.0,4.9,0
23.0,5.1,0
24.0,5.3,0
25.0,5.5,0
26.0,5.7,0
27.0,5.9,0
28.0,6.1,0
29.0,6.3,0
30.0,6.5,0
Loading
Loading