Skip to content

Commit 41de090

Browse files
committed
Restore example fulldyn
1 parent 1a35ad5 commit 41de090

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

examples/go2_fulldynamics.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
w_basepos = [0, 0, 0, 0, 0, 0]
4545
w_legpos = [10, 10, 10]
4646

47-
w_basevel = [0, 0, 0, 0, 0, 0]
47+
w_basevel = [10, 10, 10, 10, 10, 10]
4848
w_legvel = [0.1, 0.1, 0.1]
4949
w_x = np.array(w_basepos + w_legpos * 4 + w_basevel + w_legvel * 4)
5050
w_cent_lin = np.array([0.0, 0.0, 0])
@@ -201,9 +201,9 @@
201201
L_measured = []
202202

203203
v = np.zeros(6)
204-
v[5] = 0.2
204+
v[0] = 0.2
205205
mpc.velocity_base = v
206-
for t in range(1000):
206+
for t in range(500):
207207
print("Time " + str(t))
208208
land_LF = mpc.getFootLandCycle("FL_foot")
209209
land_RF = mpc.getFootLandCycle("RL_foot")
@@ -214,10 +214,6 @@
214214
str(land_RF) + ", takeoff_LF = " + str(takeoff_LF) + ", landing_LF = ",
215215
str(land_LF),
216216
) """
217-
if t == 400:
218-
v = np.zeros(6)
219-
v[0] = 0.2
220-
mpc.velocity_base = v
221217
""" if t == 200:
222218
for s in range(T):
223219
device.resetState(mpc.xs[s][:nq])

0 commit comments

Comments
 (0)