Skip to content

Commit 0daf53e

Browse files
committed
add mpc, still need some adjustment to make it more fault tolerant
1 parent e2a50bc commit 0daf53e

11 files changed

Lines changed: 764 additions & 537 deletions

File tree

GEMstack/knowledge/defaults/current.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ control:
2626
softening_gain: 0.2
2727
desired_speed: trajectory # Speed reference source: can be "trajectory", "path", or a constant value
2828

29+
# MPC controller parameters
30+
mpc:
31+
dt: 0.2 # Time step for the MPC controller (seconds)
32+
horizon: 30 # Prediction horizon for the MPC controller (number of time steps)
33+
2934
# Shared longitudinal control parameters
3035
longitudinal_control:
3136
pid_p: 1.0 # Proportional gain for speed PID controller
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
0.0,0,0
2+
-1.0,0,0
3+
-2.0,0,0
4+
-3.0,0,0
5+
-4,0,0
6+
-5,0,0
7+
-6,0,0
8+
-7,0,0
9+
-8,0,0
10+
-9,0,0
11+
-10,0,0
12+
-11,0,0
13+
-12,0,0
14+
-13,0,0
15+
-14,0,0
16+
-15,0,0
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
0.0,0,0
2+
-1.0,0,0
3+
-2.0,0.2,0
4+
-3.0,0.4,0
5+
-4,0.6,0
6+
-5,0.8,0
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
0.0,0,0
2+
1.0,0,0
3+
2.0,0,0
4+
3.0,0,0
5+
4.0,0.4,0
6+
5.0,0.8,0
7+
6.0,1.2,0
8+
7.0,1.6,0
9+
8.0,2.0,0
10+
9.0,2.4,0
11+
10.0,2.8,0
12+
11.0,3.2,0
13+
12.0,3.6,0
14+
13.0,4.0,0
15+
14.0,4.4,0
16+
15.0,4.8,0
17+
16.0,5.2,0
18+
17.0,5.6,0
19+
18.0,6.0,0
20+
19.0,6.4,0
21+
20.0,6.8,0
22+
21.0,7.2,0
23+
22.0,7.6,0
24+
23.0,8.0,0
25+
24.0,8.4,0
26+
25.0,8.8,0
27+
26.0,9.2,0
28+
27.0,9.6,0
29+
28.0,10.0,0
30+
29.0,10.4,0
31+
30.0,10.8,0
32+
31.0,11.2,0
33+
32.0,11.6,0
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
0.0,0.5,0
2+
1.0,0.7,0
3+
2.0,0.9,0
4+
3.0,1.1,0
5+
4.0,1.3,0
6+
5.0,1.5,0
7+
6.0,1.7,0
8+
7.0,1.9,0
9+
8.0,2.1,0
10+
9.0,2.3,0
11+
10.0,2.5,0
12+
11.0,2.7,0
13+
12.0,2.9,0
14+
13.0,3.1,0
15+
14.0,3.3,0
16+
15.0,3.5,0
17+
16.0,3.7,0
18+
17.0,3.9,0
19+
18.0,4.1,0
20+
19.0,4.3,0
21+
20.0,4.5,0
22+
21.0,4.7,0
23+
22.0,4.9,0
24+
23.0,5.1,0
25+
24.0,5.3,0
26+
25.0,5.5,0
27+
26.0,5.7,0
28+
27.0,5.9,0
29+
28.0,6.1,0
30+
29.0,6.3,0
31+
30.0,6.5,0

0 commit comments

Comments
 (0)