Skip to content

Commit 1e367f8

Browse files
committed
added hyqreal2
1 parent 51c70c4 commit 1e367f8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

quadruped_pympc/config.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,18 @@
4141
[-0.021400468992761768, 0.0004641447134275615, 1.503217877350808]])
4242

4343

44-
elif (robot == 'hyqreal'):
44+
elif (robot == 'hyqreal1'):
4545
mass = 108.40
4646
inertia = np.array([[4.55031444e+00, 2.75249434e-03, -5.11957307e-01],
4747
[2.75249434e-03, 2.02411774e+01, -7.38560592e-04],
4848
[-5.11957307e-01, -7.38560592e-04, 2.14269772e+01]])
4949

50+
elif (robot == 'hyqreal2'):
51+
mass = 88.17
52+
inertia = np.array([[4.55031444e+00, 2.75249434e-03, -5.11957307e-01],
53+
[2.75249434e-03, 2.02411774e+01, -7.38560592e-04],
54+
[-5.11957307e-01, -7.38560592e-04, 2.14269772e+01]])
55+
5056
elif (robot == 'mini_cheetah'):
5157
mass = 12.5
5258
inertia = np.array([[1.58460467e-01, 1.21660000e-04, -1.55444692e-02],

simulation/simulation.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ def run_simulation(
111111
heightmaps = None
112112

113113
# Quadruped PyMPC controller initialization -------------------------------------------------------------
114-
# mpc_frequency = qpympc_cfg.simulation_params["mpc_frequency"]
115114
quadrupedpympc_observables_names = (
116115
"ref_base_height",
117116
"ref_base_angles",
@@ -241,8 +240,6 @@ def run_simulation(
241240
action[env.legs_tau_idx.RL] = tau.RL
242241
action[env.legs_tau_idx.RR] = tau.RR
243242

244-
# action_noise = np.random.normal(0, 2, size=env.mjModel.nu)
245-
# action += action_noise
246243

247244
# Apply the action to the environment and evolve sim --------------------------------------------------
248245
state, reward, is_terminated, is_truncated, info = env.step(action=action)

0 commit comments

Comments
 (0)