chrisjcc commited on
Commit
abe2c78
·
verified ·
1 Parent(s): a04a7d8

List body names to confirm, expect "tray" and "puck".

Browse files
Files changed (1) hide show
  1. tray_sim.py +5 -0
tray_sim.py CHANGED
@@ -144,4 +144,9 @@ def run_tray_simulation(
144
 
145
  print(f"Bodies: {model.nbody}, qpos size: {model.nq}, qvel size: {model.nv}")
146
 
 
 
 
 
 
147
  return gif_path, physics_state, json_path
 
144
 
145
  print(f"Bodies: {model.nbody}, qpos size: {model.nq}, qvel size: {model.nv}")
146
 
147
+ for i in range(model.nbody):
148
+ name = mujoco.mj_id2name(model, mujoco.mjtObj.mjOBJ_BODY, i)
149
+ if name:
150
+ print(f"Body {i}: {name}")
151
+
152
  return gif_path, physics_state, json_path