Skip to content

Commit

Permalink
ang vel
Browse files Browse the repository at this point in the history
  • Loading branch information
WT-MM committed Feb 6, 2025
1 parent 72cd252 commit 26d3ef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sim/sim2sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def run_mujoco(
"prev_actions.1": np.zeros(model_info["num_actions"]).astype(np.float32),
# "imu_euler_xyz.1": np.zeros(3).astype(np.float32),
"projected_gravity.1": np.zeros(3).astype(np.float32),
# "imu_ang_vel.1": np.zeros(3).astype(np.float32),
"imu_ang_vel.1": np.zeros(3).astype(np.float32),
"buffer.1": np.zeros(model_info["num_observations"]).astype(np.float32),
}

Expand Down Expand Up @@ -279,6 +279,7 @@ def run_mujoco(
tau = np.clip(tau, -tau_limit, tau_limit) # Clamp torques

data.ctrl = tau

mujoco.mj_step(model, data)

if render:
Expand Down

0 comments on commit 26d3ef2

Please sign in to comment.