<!-- Modified model derived from timqian/bambot at eba23eb. See SOURCES.md and BamBot-LICENSE.txt. -->
<mujoco model="BamBot B0 base ideal drive">
  <option timestep="0.005" gravity="0 0 0" integrator="implicitfast"/>
  <default>
    <geom contype="0" conaffinity="0"/>
    <joint damping="0.08"/>
  </default>
  <worldbody>
    <body name="base" pos="0 0 0.112">
      <joint name="floor_x" type="slide" axis="1 0 0"/>
      <joint name="floor_y" type="slide" axis="0 1 0"/>
      <joint name="heading" type="hinge" axis="0 0 1"/>
      <geom name="deck" type="box" size=".26 .21 .031" mass="1.8" rgba=".07 .35 .34 1"/>
      <geom name="electronics" type="box" size=".125 .13 .028" pos="-.065 0 .058" mass=".4" rgba=".16 .57 .55 1"/>
      <geom type="box" size=".027 .085 .010" pos=".205 0 .041" mass=".005" rgba=".93 .65 .28 1"/>
      <body name="left" pos=".14 .24 -.03">
        <joint name="left_wheel" type="hinge" axis="-.5 -.8660254 0"/>
        <geom type="cylinder" fromto="-.011 -.019 0 .011 .019 0" size=".075" mass=".16" rgba=".12 .15 .17 1"/>
        <geom type="cylinder" fromto=".011 .019 0 .014 .024 0" size=".045" mass=".02" rgba=".28 .52 .58 1"/>
        <geom type="sphere" size=".011" pos=".013 .023 .038" mass=".002" rgba=".58 .94 .82 1"/>
      </body>
      <body name="right" pos=".14 -.24 -.03">
        <joint name="right_wheel" type="hinge" axis="-.5 .8660254 0"/>
        <geom type="cylinder" fromto="-.011 .019 0 .011 -.019 0" size=".075" mass=".16" rgba=".12 .15 .17 1"/>
        <geom type="cylinder" fromto=".011 -.019 0 .014 -.024 0" size=".045" mass=".02" rgba=".28 .52 .58 1"/>
        <geom type="sphere" size=".011" pos=".013 -.023 .038" mass=".002" rgba=".58 .94 .82 1"/>
      </body>
      <body name="back" pos="-.28 -.01 -.03">
        <joint name="back_wheel" type="hinge" axis="1 0 0"/>
        <geom type="cylinder" fromto="-.022 0 0 .022 0 0" size=".075" mass=".16" rgba=".12 .15 .17 1"/>
        <geom type="cylinder" fromto="-.023 0 0 -.028 0 0" size=".045" mass=".02" rgba=".28 .52 .58 1"/>
        <geom type="sphere" size=".011" pos="-.027 0 .038" mass=".002" rgba=".58 .94 .82 1"/>
      </body>
    </body>
  </worldbody>
  <actuator>
    <velocity name="forward" joint="floor_x" kv="140"/>
    <velocity name="lateral" joint="floor_y" kv="140"/>
    <velocity name="yaw" joint="heading" kv="12"/>
    <velocity name="left_motor" joint="left_wheel" kv="2"/>
    <velocity name="right_motor" joint="right_wheel" kv="2"/>
    <velocity name="back_motor" joint="back_wheel" kv="2"/>
  </actuator>
</mujoco>
