Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

15.5 KB
Raw Blame
<mujoco model="go2 scene">
  <compiler angle="radian" meshdir="assets/"/>

  <option impratio="100" cone="elliptic"/>

  <size nkey="7"/>

  <visual>
    <global azimuth="-130" elevation="-20"/>
    <headlight ambient="0.3 0.3 0.3" diffuse="0.6 0.6 0.6" specular="0 0 0"/>
    <rgba haze="0.15 0.25 0.35 1"/>
  </visual>

  <default>
    <default class="go2">
      <joint armature="0.01" damping="2" frictionloss="0.2" axis="0 1 0"/>
      <geom condim="1" friction="0.6" margin="0.001"/>
      <general ctrlrange="-23.7 23.7"/>
      <default class="abduction">
        <joint range="-1.0472 1.0472" axis="1 0 0"/>
      </default>
      <default class="hip">
        <default class="front_hip">
          <joint range="-1.5708 3.4907"/>
        </default>
        <default class="back_hip">
          <joint range="-0.5236 4.5379"/>
        </default>
      </default>
      <default class="knee">
        <joint range="-2.7227 -0.83776"/>
        <general ctrlrange="-45.43 45.43"/>
      </default>
      <default class="visual">
        <geom type="mesh" contype="0" conaffinity="0" group="2"/>
      </default>
      <default class="collision">
        <geom group="3"/>
        <default class="foot">
          <geom size="0.022 0 0" condim="6" priority="1" friction="0.8 0.02 0.01" solimp="0.015 1 0.022"/>
        </default>
      </default>
    </default>
  </default>

  <asset>
    <texture type="skybox" colorspace="auto" builtin="gradient" rgb1="0.3 0.5 0.7" rgb2="0 0 0" width="512" height="3072"/>
    <texture type="2d" colorspace="auto" name="groundplane" builtin="checker" mark="edge" rgb1="0.2 0.3 0.4" rgb2="0.1 0.2 0.3" markrgb="0.8 0.8 0.8" width="300" height="300"/>
    <material name="metal" rgba="0.9 0.95 0.95 1"/>
    <material name="black" rgba="0 0 0 1"/>
    <material name="white"/>
    <material name="gray" rgba="0.671705 0.692426 0.77427 1"/>
    <material name="groundplane" texture="groundplane" texrepeat="5 5" texuniform="true" reflectance="0.2"/>
    <mesh name="base_0" file="base_0.obj"/>
    <mesh name="base_1" file="base_1.obj"/>
    <mesh name="base_2" file="base_2.obj"/>
    <mesh name="base_3" file="base_3.obj"/>
    <mesh name="base_4" file="base_4.obj"/>
    <mesh name="hip_0" file="hip_0.obj"/>
    <mesh name="hip_1" file="hip_1.obj"/>
    <mesh name="thigh_0" file="thigh_0.obj"/>
    <mesh name="thigh_1" file="thigh_1.obj"/>
    <mesh name="thigh_mirror_0" file="thigh_mirror_0.obj"/>
    <mesh name="thigh_mirror_1" file="thigh_mirror_1.obj"/>
    <mesh name="calf_0" file="calf_0.obj"/>
    <mesh name="calf_1" file="calf_1.obj"/>
    <mesh name="calf_mirror_0" file="calf_mirror_0.obj"/>
    <mesh name="calf_mirror_1" file="calf_mirror_1.obj"/>
    <mesh name="foot" file="foot.obj"/>
  </asset>

  <worldbody>
    <geom name="floor" size="0 0 0.05" type="plane" material="groundplane"/>
    <light pos="0 0 1.5" type="directional"/>
    <body name="base" childclass="go2" pos="0 0 0.445">
      <inertial pos="0.021112 0 -0.005366" quat="-0.000543471 0.713435 -0.00173769 0.700719" mass="6.921" diaginertia="0.107027 0.0980771 0.0244531"/>
      <joint type="free" armature="0" damping="0" frictionloss="0"/>
      <geom class="visual" material="black" mesh="base_0"/>
      <geom class="visual" material="black" mesh="base_1"/>
      <geom class="visual" material="black" mesh="base_2"/>
      <geom class="visual" material="white" mesh="base_3"/>
      <geom class="visual" material="gray" mesh="base_4"/>
      <geom class="collision" size="0.1881 0.04675 0.057" type="box"/>
      <geom class="collision" size="0.05 0.045" pos="0.285 0 0.01" type="cylinder"/>
      <geom class="collision" size="0.047" pos="0.293 0 -0.06"/>
      <site name="imu" pos="-0.02557 0 0.04232"/>
      <body name="FL_hip" pos="0.1934 0.0465 0">
        <inertial pos="-0.0054 0.00194 -0.000105" quat="0.497014 0.499245 0.505462 0.498237" mass="0.678" diaginertia="0.00088403 0.000596003 0.000479967"/>
        <joint name="FL_hip_joint" class="abduction"/>
        <geom class="visual" material="metal" mesh="hip_0"/>
        <geom class="visual" material="gray" mesh="hip_1"/>
        <geom class="collision" size="0.046 0.02" pos="0 0.08 0" quat="0.707107 0.707107 0 0" type="cylinder"/>
        <body name="FL_thigh" pos="0 0.0955 0">
          <inertial pos="-0.00374 -0.0223 -0.0327" quat="0.829533 0.0847635 -0.0200632 0.551623" mass="1.152" diaginertia="0.00594973 0.00584149 0.000878787"/>
          <joint name="FL_thigh_joint" class="front_hip"/>
          <geom class="visual" material="metal" mesh="thigh_0"/>
          <geom class="visual" material="gray" mesh="thigh_1"/>
          <geom class="collision" size="0.1065 0.01225 0.017" pos="0 0 -0.1065" quat="0.707107 0 0.707107 0" type="box"/>
          <body name="FL_calf" pos="0 0 -0.213">
            <inertial pos="0.00629595 -0.000622121 -0.141417" quat="0.710672 0.00154099 -0.00450087 0.703508" mass="0.241352" diaginertia="0.0014901 0.00146356 5.31397e-05"/>
            <joint name="FL_calf_joint" class="knee"/>
            <geom class="visual" material="gray" mesh="calf_0"/>
            <geom class="visual" material="black" mesh="calf_1"/>
            <geom class="collision" size="0.012 0.06" pos="0.008 0 -0.06" quat="0.994493 0 -0.104807 0" type="cylinder"/>
            <geom class="collision" size="0.011 0.0325" pos="0.02 0 -0.148" quat="0.999688 0 0.0249974 0" type="cylinder"/>
            <geom class="visual" pos="0 0 -0.213" quat="1 0 0 0" material="black" mesh="foot"/>
            <geom name="FL" class="foot" pos="-0.002 0 -0.213"/>
          </body>
        </body>
      </body>
      <body name="FR_hip" pos="0.1934 -0.0465 0">
        <inertial pos="-0.0054 -0.00194 -0.000105" quat="0.498237 0.505462 0.499245 0.497014" mass="0.678" diaginertia="0.00088403 0.000596003 0.000479967"/>
        <joint name="FR_hip_joint" class="abduction"/>
        <geom class="visual" quat="4.63268e-05 1 0 0" material="metal" mesh="hip_0"/>
        <geom class="visual" quat="4.63268e-05 1 0 0" material="gray" mesh="hip_1"/>
        <geom class="collision" size="0.046 0.02" pos="0 -0.08 0" quat="0.707107 0.707107 0 0" type="cylinder"/>
        <body name="FR_thigh" pos="0 -0.0955 0">
          <inertial pos="-0.00374 0.0223 -0.0327" quat="0.551623 -0.0200632 0.0847635 0.829533" mass="1.152" diaginertia="0.00594973 0.00584149 0.000878787"/>
          <joint name="FR_thigh_joint" class="front_hip"/>
          <geom class="visual" material="metal" mesh="thigh_mirror_0"/>
          <geom class="visual" material="gray" mesh="thigh_mirror_1"/>
          <geom class="collision" size="0.1065 0.01225 0.017" pos="0 0 -0.1065" quat="0.707107 0 0.707107 0" type="box"/>
          <body name="FR_calf" pos="0 0 -0.213">
            <inertial pos="0.00629595 0.000622121 -0.141417" quat="0.703508 -0.00450087 0.00154099 0.710672" mass="0.241352" diaginertia="0.0014901 0.00146356 5.31397e-05"/>
            <joint name="FR_calf_joint" class="knee"/>
            <geom class="visual" material="gray" mesh="calf_mirror_0"/>
            <geom class="visual" material="black" mesh="calf_mirror_1"/>
            <geom class="collision" size="0.013 0.06" pos="0.01 0 -0.06" quat="0.995004 0 -0.0998334 0" type="cylinder"/>
            <geom class="collision" size="0.011 0.0325" pos="0.02 0 -0.148" quat="0.999688 0 0.0249974 0" type="cylinder"/>
            <geom class="visual" pos="0 0 -0.213" quat="1 0 0 0" material="black" mesh="foot"/>
            <geom name="FR" class="foot" pos="-0.002 0 -0.213"/>
          </body>
        </body>
      </body>
      <body name="RL_hip" pos="-0.1934 0.0465 0">
        <inertial pos="0.0054 0.00194 -0.000105" quat="0.505462 0.498237 0.497014 0.499245" mass="0.678" diaginertia="0.00088403 0.000596003 0.000479967"/>
        <joint name="RL_hip_joint" class="abduction"/>
        <geom class="visual" quat="4.63268e-05 0 1 0" material="metal" mesh="hip_0"/>
        <geom class="visual" quat="4.63268e-05 0 1 0" material="gray" mesh="hip_1"/>
        <geom class="collision" size="0.046 0.02" pos="0 0.08 0" quat="0.707107 0.707107 0 0" type="cylinder"/>
        <body name="RL_thigh" pos="0 0.0955 0">
          <inertial pos="-0.00374 -0.0223 -0.0327" quat="0.829533 0.0847635 -0.0200632 0.551623" mass="1.152" diaginertia="0.00594973 0.00584149 0.000878787"/>
          <joint name="RL_thigh_joint" class="back_hip"/>
          <geom class="visual" material="metal" mesh="thigh_0"/>
          <geom class="visual" material="gray" mesh="thigh_1"/>
          <geom class="collision" size="0.1065 0.01225 0.017" pos="0 0 -0.1065" quat="0.707107 0 0.707107 0" type="box"/>
          <body name="RL_calf" pos="0 0 -0.213">
            <inertial pos="0.00629595 -0.000622121 -0.141417" quat="0.710672 0.00154099 -0.00450087 0.703508" mass="0.241352" diaginertia="0.0014901 0.00146356 5.31397e-05"/>
            <joint name="RL_calf_joint" class="knee"/>
            <geom class="visual" material="gray" mesh="calf_0"/>
            <geom class="visual" material="black" mesh="calf_1"/>
            <geom class="collision" size="0.013 0.06" pos="0.01 0 -0.06" quat="0.995004 0 -0.0998334 0" type="cylinder"/>
            <geom class="collision" size="0.011 0.0325" pos="0.02 0 -0.148" quat="0.999688 0 0.0249974 0" type="cylinder"/>
            <geom class="visual" pos="0 0 -0.213" quat="1 0 0 0" material="black" mesh="foot"/>
            <geom name="RL" class="foot" pos="-0.002 0 -0.213"/>
          </body>
        </body>
      </body>
      <body name="RR_hip" pos="-0.1934 -0.0465 0">
        <inertial pos="0.0054 -0.00194 -0.000105" quat="0.499245 0.497014 0.498237 0.505462" mass="0.678" diaginertia="0.00088403 0.000596003 0.000479967"/>
        <joint name="RR_hip_joint" class="abduction"/>
        <geom class="visual" quat="2.14617e-09 4.63268e-05 4.63268e-05 -1" material="metal" mesh="hip_0"/>
        <geom class="visual" quat="2.14617e-09 4.63268e-05 4.63268e-05 -1" material="gray" mesh="hip_1"/>
        <geom class="collision" size="0.046 0.02" pos="0 -0.08 0" quat="0.707107 0.707107 0 0" type="cylinder"/>
        <body name="RR_thigh" pos="0 -0.0955 0">
          <inertial pos="-0.00374 0.0223 -0.0327" quat="0.551623 -0.0200632 0.0847635 0.829533" mass="1.152" diaginertia="0.00594973 0.00584149 0.000878787"/>
          <joint name="RR_thigh_joint" class="back_hip"/>
          <geom class="visual" material="metal" mesh="thigh_mirror_0"/>
          <geom class="visual" material="gray" mesh="thigh_mirror_1"/>
          <geom class="collision" size="0.1065 0.01225 0.017" pos="0 0 -0.1065" quat="0.707107 0 0.707107 0" type="box"/>
          <body name="RR_calf" pos="0 0 -0.213">
            <inertial pos="0.00629595 0.000622121 -0.141417" quat="0.703508 -0.00450087 0.00154099 0.710672" mass="0.241352" diaginertia="0.0014901 0.00146356 5.31397e-05"/>
            <joint name="RR_calf_joint" class="knee"/>
            <geom class="visual" material="gray" mesh="calf_mirror_0"/>
            <geom class="visual" material="black" mesh="calf_mirror_1"/>
            <geom class="collision" size="0.013 0.06" pos="0.01 0 -0.06" quat="0.995004 0 -0.0998334 0" type="cylinder"/>
            <geom class="collision" size="0.011 0.0325" pos="0.02 0 -0.148" quat="0.999688 0 0.0249974 0" type="cylinder"/>
            <geom class="visual" pos="0 0 -0.213" quat="1 0 0 0" material="black" mesh="foot"/>
            <geom name="RR" class="foot" pos="-0.002 0 -0.213"/>
          </body>
        </body>
      </body>
    </body>
  </worldbody>

  <actuator>
    <general name="FL_hip" class="abduction" joint="FL_hip_joint" ctrlrange="-1.0472 1.0472" forcerange="-23.7 23.7" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="FL_thigh" class="hip" joint="FL_thigh_joint" ctrlrange="-1.5708 3.4907" forcerange="-23.7 23.7" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="FL_calf" class="knee" joint="FL_calf_joint" ctrlrange="-2.7227 -0.83776" forcerange="-45.43 45.43" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="FR_hip" class="abduction" joint="FR_hip_joint" ctrlrange="-1.0472 1.0472" forcerange="-23.7 23.7" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="FR_thigh" class="hip" joint="FR_thigh_joint" ctrlrange="-1.5708 3.4907" forcerange="-23.7 23.7" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="FR_calf" class="knee" joint="FR_calf_joint" ctrlrange="-2.7227 -0.83776" forcerange="-45.43 45.43" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="RL_hip" class="abduction" joint="RL_hip_joint" ctrlrange="-1.0472 1.0472" forcerange="-23.7 23.7" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="RL_thigh" class="hip" joint="RL_thigh_joint" ctrlrange="-0.5236 4.5379" forcerange="-23.7 23.7" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="RL_calf" class="knee" joint="RL_calf_joint" ctrlrange="-2.7227 -0.83776" forcerange="-45.43 45.43" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="RR_hip" class="abduction" joint="RR_hip_joint" ctrlrange="-1.0472 1.0472" forcerange="-23.7 23.7" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="RR_thigh" class="hip" joint="RR_thigh_joint" ctrlrange="-0.5236 4.5379" forcerange="-23.7 23.7" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
    <general name="RR_calf" class="knee" joint="RR_calf_joint" ctrlrange="-2.7227 -0.83776" forcerange="-45.43 45.43" biastype="affine" gainprm="60" biasprm="0 -60 -2"/>
  </actuator>

  <sensor>
    <framepos objtype="site" objname="imu" name="base_pos"/>
    <framequat objtype="site" objname="imu" name="base_quat"/>
    <gyro site="imu" name="base_gyro"/>
    <framepos objtype="geom" objname="FL" name="FL_foot_pos"/>
    <framepos objtype="geom" objname="FR" name="FR_foot_pos"/>
    <framepos objtype="geom" objname="RL" name="RL_foot_pos"/>
    <framepos objtype="geom" objname="RR" name="RR_foot_pos"/>
  </sensor>

  <keyframe>
    <key name="home" qpos="0 0 0.255809 0.999987 1.22661e-08 -0.00502988 -1.46376e-08 0.0058513 0.87748 -1.89885 -0.00585126 0.87748 -1.89885 0.00679753 0.885722 -1.91821 -0.00679763 0.885722 -1.91821" ctrl="0 0.9 -1.8 0 0.9 -1.8 0 0.9 -1.8 0 0.9 -1.8"/>
    <key name="tall" qpos="0 0 0.316146 0.999992 8.48306e-10 -0.00394963 4.64558e-09 0.00449933 0.697047 -1.52524 -0.00449932 0.697047 -1.52524 0.00529366 0.704363 -1.54238 -0.00529366 0.704363 -1.54238" ctrl="0 0.72 -1.44 0 0.72 -1.44 0 0.72 -1.44 0 0.72 -1.44"/>
    <key name="crouch" qpos="0 0 0.171354 0.999986 1.2901e-08 -0.00527991 2.83282e-09 0.0123312 1.10085 -2.3518 -0.0123311 1.10085 -2.3518 0.0139277 1.10721 -2.3699 -0.0139279 1.10721 -2.3699" ctrl="0 1.12 -2.24 0 1.12 -2.24 0 1.12 -2.24 0 1.12 -2.24"/>
    <key name="play_bow" qpos="0 0 0.217492 0.979979 2.31705e-08 0.199103 -6.40844e-08 0.0125904 1.25023 -2.44558 -0.0125901 1.25023 -2.44558 0.00820455 0.712308 -1.59298 -0.00820478 0.712308 -1.59298" ctrl="0 1.2 -2.4 0 1.2 -2.4 0 0.75 -1.5 0 0.75 -1.5"/>
    <key name="lean_left" qpos="0 0 0.246888 0.99456 -0.103977 -0.00521847 0.00341352 -0.0160816 0.965487 -2.09143 -0.00734476 0.80881 -1.74482 -0.00662558 0.971819 -2.10821 -0.00188384 0.818403 -1.76868" ctrl="0 0.98 -1.96 0 0.84 -1.68 0 0.98 -1.96 0 0.84 -1.68"/>
    <key name="lean_right" qpos="0 0 0.246888 0.99456 0.103977 -0.00521845 -0.00341352 0.00734482 0.80881 -1.74482 0.0160815 0.965488 -2.09143 0.00188387 0.818403 -1.76869 0.00662547 0.971819 -2.10821" ctrl="0 0.84 -1.68 0 0.98 -1.96 0 0.84 -1.68 0 0.98 -1.96"/>
    <key name="wide" qpos="0 0 0.221837 0.999984 -5.52097e-05 -0.00557748 9.60455e-05 0.133182 0.926656 -2.01003 -0.133091 0.927312 -2.00994 0.125621 0.931277 -2.03603 -0.125722 0.931165 -2.03578" ctrl="0.18 0.95 -1.9 -0.18 0.95 -1.9 0.18 0.95 -1.9 -0.18 0.95 -1.9"/>
  </keyframe>
</mujoco>