|
24 | 24 |
|
25 | 25 |
|
26 | 26 | tparam = TurnParams(1.0, 1.0)
|
27 |
| -DELTA = math.pi/8 |
| 27 | +# DELTA = math.pi/8 |
| 28 | +DELTA = tparam.delta_min*0.9 |
28 | 29 |
|
29 | 30 | turn = Turn(tparam, DELTA)
|
30 | 31 |
|
|
37 | 38 |
|
38 | 39 | # plot whole line
|
39 | 40 | XT = np.linspace(0, turn.len, 128, endpoint=True)
|
40 |
| -tra = turn.state(XT) |
41 |
| -ax0.plot(tra.x, tra.y, color="yellow", linewidth=5.0, linestyle="-") |
| 41 | +tra1 = turn.state(XT) |
| 42 | +ax0.plot(tra1.x, tra1.y, color="yellow", linewidth=5.0, linestyle="-") |
42 | 43 |
|
43 | 44 | # plot arc segment 1
|
44 | 45 | X = np.linspace(0, turn._len_clothoid_part_smalldelta, 128, endpoint=True)
|
45 |
| -tra = turn._state_clothoid_smalldelta_first(X) |
46 |
| -ax0.plot(tra.x, tra.y, color="red", linewidth=1.0, linestyle="-") |
| 46 | +tra2 = turn._state_clothoid_smalldelta_first(X) |
| 47 | +ax0.plot(tra2.x, tra2.y, color="red", linewidth=1.0, linestyle="-") |
47 | 48 |
|
48 | 49 | # plot arc segment 2
|
49 | 50 | X = np.linspace(turn._len_clothoid_part_smalldelta, 2*turn._len_clothoid_part_smalldelta, 128, endpoint=True)
|
50 |
| -tra = turn._state_clothoid_smalldelta_second(X) |
51 |
| -ax0.plot(tra.x, tra.y, color="green", linewidth=1.0, linestyle="-") |
| 51 | +tra3 = turn._state_clothoid_smalldelta_second(X) |
| 52 | +ax0.plot(tra3.x, tra3.y, color="green", linewidth=1.0, linestyle="-") |
52 | 53 |
|
53 | 54 |
|
54 | 55 | # plot qg point:
|
|
0 commit comments