<mujoco model="swimmer">
  <compiler angle="degree" coordinate="local" inertiafromgeom="true" />
  <custom>
    <numeric data="50" name="frame_skip" />
  </custom>
  <option collision="predefined" density="4000" integrator="Euler" iterations="1000" timestep="0.001" viscosity="0.1">
    <flag warmstart="disable" />
  </option>
  <default>
    <geom conaffinity="1" condim="1" contype="1" material="geom" rgba="0.8 0.6 .4 1" />
    
  </default>
  <asset>
    <texture builtin="gradient" height="100" rgb1="1 1 1" rgb2="0 0 0" type="skybox" width="100" />
    <texture builtin="flat" height="1278" mark="cross" markrgb="1 1 1" name="texgeom" random="0.01" rgb1="0.8 0.6 0.4" rgb2="0.8 0.6 0.4" type="cube" width="127" />
    <texture builtin="checker" height="100" name="texplane" rgb1="0 0 0" rgb2="0.8 0.8 0.8" type="2d" width="100" />
    <material name="MatPlane" reflectance="0.5" shininess="1" specular="1" texrepeat="30 30" texture="texplane" />
    <material name="geom" texture="texgeom" texuniform="true" />
    <hfield file="hfield.png" name="floor" size="10 10 0.1 0.1" />
  </asset>
  <worldbody>
    <light cutoff="100" diffuse="1 1 1" dir="-0 0 -1.3" directional="true" exponent="1" pos="0 0 1.3" specular=".1 .1 .1" />
    <geom conaffinity="1" condim="3" hfield="floor" material="MatPlane" name="floor" pos="0 0 -0.1" rgba="0.8 0.9 0.8 1" size="40 40 0.1" type="hfield" />
    
    <body name="torso" pos="0 0 0">
      <geom density="1000" fromto="1.5 0 0 0.5 0 0" name="torso" size="0.1" type="capsule" />
      <joint axis="1 0 0" name="slider1" pos="0 0 0" type="slide" />
      <joint axis="0 1 0" name="slider2" pos="0 0 0" type="slide" />
      <joint axis="0 0 1" name="rot" pos="0 0 0" type="hinge" />
      <body name="mid" pos="0.5 0 0">
        <geom density="1000" fromto="0 0 0 -1 0 0" name="mid" size="0.1" type="capsule" />
        <joint axis="0 0 1" limited="true" name="rot2" pos="0 0 0" range="-100 100" type="hinge" />
        <body name="back" pos="-1 0 0">
          <geom density="1000" fromto="0 0 0 -1 0 0" name="back" size="0.1" type="capsule" />
          <joint axis="0 0 1" limited="true" name="rot3" pos="0 0 0" range="-100 100" type="hinge" />
        </body>
      </body>
    </body>
  <geom conaffinity="1" condim="3" name="wall1" pos="0 -7 0" rgba="0.8 0.9 0.8 1" size="7.5 0.5 1" type="box" /><geom conaffinity="1" condim="3" name="wall2" pos="0 7 0" rgba="0.8 0.9 0.8 1" size="7.5 0.5 1" type="box" /><geom conaffinity="1" condim="3" name="wall3" pos="-7 0 0" rgba="0.8 0.9 0.8 1" size="0.5 7.5 1" type="box" /><geom conaffinity="1" condim="3" name="wall4" pos="7 0 0" rgba="0.8 0.9 0.8 1" size="0.5 7.5 1" type="box" /></worldbody>
  <actuator>
    <motor ctrllimited="true" ctrlrange="-50 50" joint="rot2" />
    <motor ctrllimited="true" ctrlrange="-50 50" joint="rot3" />
  </actuator>
</mujoco>