<mujoco model="walker2d">
  <compiler angle="radian"/>

  <option integrator="RK4"/>

  <visual>
    <global offwidth="480"/>
  </visual>

  <default>
    <joint armature="0.01" damping="0.1" limited="true"/>
    <geom conaffinity="0" friction="0.7 0.1 0.1" rgba="0.8 0.6 0.4 1"/>
  </default>

  <asset>
    <texture type="skybox" colorspace="auto" builtin="gradient" rgb1="0.4 0.5 0.6" rgb2="0 0 0" width="100" height="600"/>
    <texture type="cube" colorspace="auto" name="texgeom" builtin="flat" mark="cross" rgb1="0.8 0.6 0.4" rgb2="0.8 0.6 0.4" markrgb="1 1 1" width="127" height="762"/>
    <texture type="2d" colorspace="auto" name="texplane" builtin="checker" rgb1="0 0 0" rgb2="0.8 0.8 0.8" width="100" height="100"/>
    <material name="MatPlane" texture="texplane" texrepeat="60 60" specular="1" shininess="1" reflectance="0.5"/>
    <material name="geom" texture="texgeom" texuniform="true"/>
  </asset>

  <worldbody>
    <geom name="floor" size="40 40 40" type="plane" conaffinity="1" rgba="0.8 0.9 0.8 1" material="MatPlane"/>
    <light pos="0 0 1.3" cutoff="100" exponent="1" diffuse="1 1 1" specular="0.1 0.1 0.1" type="directional"/>
    <body name="torso" pos="0 0 1.25">
      <joint name="rootx" type="slide" armature="0" damping="0" pos="0 0 -1.25" axis="1 0 0" limited="false"/>
      <joint name="rootz" type="slide" ref="1.25" armature="0" damping="0" pos="0 0 -1.25" limited="false"/>
      <joint name="rooty" armature="0" damping="0" axis="0 1 0" limited="false"/>
      <geom name="torso_geom" size="0.05 0.2" type="capsule" friction="0.9"/>
      <camera name="track" quat="0.707107 0.707107 0 0" pos="0 -3 -0.25" mode="trackcom"/>
      <body name="thigh" pos="0 0 -0.2">
        <joint name="thigh_joint" range="-2.61799 0" axis="0 -1 0"/>
        <geom name="thigh_geom" size="0.05 0.225" pos="0 0 -0.225" type="capsule" friction="0.9"/>
        <body name="leg" pos="0 0 -0.7">
          <joint name="leg_joint" range="-2.61799 0" pos="0 0 0.25" axis="0 -1 0"/>
          <geom name="leg_geom" size="0.04 0.25" type="capsule" friction="0.9"/>
          <body name="foot" pos="0.2 0 -0.35">
            <joint name="foot_joint" range="-0.785398 0.785398" pos="-0.2 0 0.1" axis="0 -1 0"/>
            <geom name="foot_geom" size="0.06 0.1" pos="-0.1 0 0.1" quat="0.707107 0 -0.707107 0" type="capsule" friction="1.9"/>
          </body>
        </body>
      </body>
      <body name="thigh_left" pos="0 0 -0.2">
        <joint name="thigh_left_joint" range="-2.61799 0" axis="0 -1 0"/>
        <geom name="thigh_left_geom" size="0.05 0.225" pos="0 0 -0.225" type="capsule" friction="0.9" rgba="0.7 0.3 0.6 1"/>
        <body name="leg_left" pos="0 0 -0.7">
          <joint name="leg_left_joint" range="-2.61799 0" pos="0 0 0.25" axis="0 -1 0"/>
          <geom name="leg_left_geom" size="0.04 0.25" type="capsule" friction="0.9" rgba="0.7 0.3 0.6 1"/>
          <body name="foot_left" pos="0.2 0 -0.35">
            <joint name="foot_left_joint" range="-0.785398 0.785398" pos="-0.2 0 0.1" axis="0 -1 0"/>
            <geom name="foot_left_geom" size="0.06 0.1" pos="-0.1 0 0.1" quat="0.707107 0 -0.707107 0" type="capsule" friction="1.9" rgba="0.7 0.3 0.6 1"/>
          </body>
        </body>
      </body>
    </body>
  </worldbody>

  <actuator>
    <general joint="thigh_joint" ctrlrange="-1 1" ctrllimited="true" gear="100"/>
    <general joint="leg_joint" ctrlrange="-1 1" ctrllimited="true" gear="100"/>
    <general joint="foot_joint" ctrlrange="-1 1" ctrllimited="true" gear="100"/>
    <general joint="thigh_left_joint" ctrlrange="-1 1" ctrllimited="true" gear="100"/>
    <general joint="leg_left_joint" ctrlrange="-1 1" ctrllimited="true" gear="100"/>
    <general joint="foot_left_joint" ctrlrange="-1 1" ctrllimited="true" gear="100"/>
  </actuator>
</mujoco>
