mpc example updated.
This commit is contained in:
parent
7ed925c48a
commit
d1df87fe26
|
@ -369,8 +369,8 @@ class Go2Sim:
|
|||
else:
|
||||
assert q0.shape == (self.nq,), f'Invalid q0 shape. The shape should be ({self.nq},)'
|
||||
self.q_nominal = q0
|
||||
self.data.qpos = self.q_nominal
|
||||
self.data.qvel = np.zeros(self.nv)
|
||||
self.data.qpos[:] = self.q_nominal
|
||||
self.data.qvel[:] = np.zeros(self.nv)
|
||||
self.ex_sum=0
|
||||
self.ey_sum=0
|
||||
self.e_omega_sum=0
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue