Skip to content

Commit ac1f2d2

Browse files
author
Shunichi09
committed
fix the parameters of main_track
1 parent 9d66cd2 commit ac1f2d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mpc/extend/main_track.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def main():
289289
iteration_num = int(simulation_time / dt)
290290

291291
# make simulator with coninuous matrix
292-
init_xs_lead = np.array([0., 0., math.pi/6, 0.])
292+
init_xs_lead = np.array([0., 0., math.pi/5, 0.])
293293
lead_car = WheeledSystem(init_states=init_xs_lead)
294294

295295
# make system model
@@ -306,7 +306,7 @@ def main():
306306

307307
# get traj's curvature
308308
NUM_SKIP = 3
309-
MARGIN = 20
309+
MARGIN = 50
310310
angles, curvatures = calc_curvatures(traj_ref[:, index_min + MARGIN:index_min + PREDICT_STEP + 2 * NUM_SKIP + MARGIN], PREDICT_STEP, NUM_SKIP)
311311

312312
# save traj ref
@@ -317,8 +317,8 @@ def main():
317317
# input()
318318

319319
# evaluation function weight
320-
Q = np.diag([1000000., 10., 1.])
321-
R = np.diag([0.1])
320+
Q = np.diag([1e2, 1., 1e3])
321+
R = np.diag([1e2])
322322

323323
# System model update
324324
V = calc_ideal_vel(traj_ref, dt) # in pratical we should calc from the state

0 commit comments

Comments
 (0)