<!--
robotiq-2f-85: robot-profile MJCF in the part frame (SCHEMA2.md 4.3, robotparts 2.7), written by
tools/models/robotiq_hands_mjcf.py in github.com/zacharyyamaoka/robotparts. Never edit by hand: re-run it.

Source: MuJoCo Menagerie robotiq_2f85_v4/2f85.xml (Google DeepMind),
https://github.com/google-deepmind/mujoco_menagerie at
370c43965323c0944b433b202aac5058b5f907a9 (sha256 8d4a4f84..., the bytes robotparts pinned at f3b6013629c7),
BSD-2-Clause.
Its README: built from Robotiq's 2F85_Opened STEP through Onshape and onshape-to-robot, masses and inertias from
Menagerie's robotiq_2f85. Every body, inertial, joint, tendon, equality, contact exclude and the actuator are
Menagerie's, unchanged. Its frame is the part frame: its coupling mesh puts the coupling's robot-side face at z = 0.

Changed for the robot profile (SCHEMA2.md 4.3): removed <option cone="elliptic" impratio="10">; compiler
meshdir="assets"; 8 <mesh> assets; the <mesh> default of class '2f85'. The option's
elliptic friction cone and impratio 10 are gone with it, so grasps slip more than in Menagerie's scene: set them
in the scene that includes this model. Menagerie's root body `base` is renamed `gripper_base` under the profile's
pose-free `base`. Each collision mesh is now a box bounding that mesh in its own frame, colliding with a scene but
not with the hand (contype 2, conaffinity 1); visual meshes are dropped. The four pad boxes are Menagerie's, now
contype 4, conaffinity 5: they touch each other and the scene, never the hand's boxes.
Added: the coupling as a massless cylinder (Robotiq's Fig. 5-5: 75 mm, 16.9 mm thick, 2.9 mm rim), a `tcp` site
at Robotiq's stated TCP z = 174.0 mm (manual 2026-03-17, p.129), and `jaw_left` / `jaw_right` on the centre of
each pad's inner face at the open pose. Control: ctrl 0 open, 255 closed, as Menagerie's actuator.

Menagerie's robotiq_2f85_v4 LICENSE (BSD-2-Clause):

Copyright (c) 2013, ROS-Industrial
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

  Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

  Redistributions in binary form must reproduce the above copyright notice, this
  list of conditions and the following disclaimer in the documentation and/or
  other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<mujoco model="robotiq_2f85">
  <compiler angle="radian" autolimits="true" />
  <asset>
    <material name="metal" rgba="0.58 0.58 0.58 1" />
    <material name="silicone" rgba="0.1882 0.1882 0.1882 1" />
    <material name="black" rgba="0.149 0.149 0.149 1" />
  </asset>
  <default>
    <default class="2f85">
      <general biastype="affine" />
      <joint axis="0 0 1" />
      <default class="driver">
        <joint range="0 0.9" armature="0.005" damping="0.1" solimplimit="0.95 0.99 0.001" solreflimit="0.005 1" />
      </default>
      <default class="follower">
        <joint range="-0.872664 0.9" armature="0.001" solimplimit="0.95 0.99 0.001" solreflimit="0.005 1" />
      </default>
      <default class="spring_link">
        <joint range="-0.29670597283 0.9" armature="0.001" stiffness="0.05" springref="2.62" damping="0.00125" />
      </default>
      <default class="coupler">
        <joint range="-1.57 0" armature="0.001" solimplimit="0.95 0.99 0.001" solreflimit="0.005 1" />
      </default>
      <default class="visual">
        <geom type="mesh" contype="0" conaffinity="0" group="2" material="black" />
      </default>
      <default class="collision">
        <geom type="mesh" group="3" />
        <default class="pad_box1">
          <geom mass="0.00175" type="box" pos="0.043258 0 0.12" size="0.002 0.011 0.009375" friction="0.7" solimp="0.95 0.99 0.001" solref="0.004 1" priority="1" rgba="0.55 0.55 0.55 1" />
        </default>
        <default class="pad_box2">
          <geom mass="0.00175" type="box" pos="0.043258 0 0.13875" size="0.002 0.011 0.009375" friction="0.6" solimp="0.95 0.99 0.001" solref="0.004 1" priority="1" rgba="0.45 0.45 0.45 1" />
        </default>
      </default>
    </default>
  </default>
  <worldbody>
    <body name="base">
      <geom name="coupling" type="cylinder" mass="0" pos="0 0 0.00555" size="0.0375 0.00845" group="2" contype="2" conaffinity="1" rgba="0.25 0.25 0.25 1" />
      <site name="tcp" pos="0 0 0.174" size="0.004" group="4" rgba="1 0 0 0.6" />
      <body name="gripper_base" childclass="2f85">
        <inertial mass="0.777441" pos="7.77116e-05 8.42713e-05 0.0311656" quat="0.704758 -0.00373684 -0.00570287 0.709415" diaginertia="0.000260285 0.000225381 0.000152708" />
        <geom name="base_base_box" type="box" pos="0 0 0.0539534066" quat="0 0 0 1" size="0.0424120761 0.0375000015 0.0465105907" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
        <body name="left_driver" pos="-0.0306011 0.00475 0.0657045" quat="1 -1 0 0">
          <inertial mass="0.00899563" pos="-0.0175297 0.00165308 -0.00469625" quat="-0.469642 0.469642 -0.528617 0.528617" diaginertia="1.72352e-06 1.60906e-06 3.22006e-07" />
          <joint name="left_driver_joint" class="driver" />
          <geom name="left_driver_driver_box" type="box" pos="-0.0149596809 0.000451263018 -0.0047" quat="1 1 0 0" size="0.0224596374 0.0135000004 0.0100782309" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
          <body name="left_coupler" pos="-0.0314249 0.00453223 -0.0102" quat="0 0 0 1">
            <inertial mass="0.0140974" pos="0.00367747 0.01986 0.0055" quat="0.701447 -0.701447 0.0892884 -0.0892884" diaginertia="4.16206e-06 3.52216e-06 8.88131e-07" />
            <geom name="left_coupler_coupler_box" type="box" pos="0.000445380457 0.023338231 0.0055" quat="1 -1 0 0" size="0.0148094315 0.0136000002 0.029692173" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
          </body>
        </body>
        <body name="left_spring_link" pos="-0.0127 -0.012 0.07222" quat="1 -1 0 0">
          <inertial mass="0.0221642" pos="-0.0183 -0.0205732 0.01205" quat="0.660941 0.660941 -0.251309 -0.251309" diaginertia="8.96853e-06 6.71733e-06 2.63931e-06" />
          <joint name="left_spring_link_joint" class="spring_link" />
          <geom name="left_spring_link_spring_link_box" type="box" pos="-0.0191039593 -0.0212501615 0.01205" quat="1 1 0 0" size="0.0251004647 0.0175000001 0.0272466671" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
          <body name="left_follower" pos="-0.0382079 -0.0425003 0.00295" quat="0 -1 -1.90231e-05 0">
            <inertial mass="0.0125222" pos="-0.00852976 -0.0014822 -0.00910001" quat="0.359439 0.359439 0.608937 0.608937" diaginertia="2.67415e-06 2.4559e-06 6.02031e-07" />
            <joint name="left_follower" class="follower" />
            <geom name="left_follower_follower_box" type="box" pos="-0.00895058792 0.00149322082 -0.0091" quat="1 -1 0 0" size="0.0149508622 0.0135000004 0.0140075758" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
            <geom name="left_follower_tongue_box" type="box" pos="-0.00213000607 0.0255284548 -0.0091" quat="1 -1 0 0" size="0.00957999937 0.0109999999 0.0189999975" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
            <body name="left_pad" pos="-0.0377897 -0.103916 -0.0091" quat="1 -1 0 0">
              <geom class="pad_box1" name="left_pad1" contype="4" conaffinity="5" />
              <geom class="pad_box2" name="left_pad2" contype="4" conaffinity="5" />
              <site name="jaw_left" pos="0.045258 0 0.129375" size="0.003" group="4" rgba="0 0.6 1 0.8" />
            </body>
          </body>
        </body>
        <body name="right_driver" pos="0.0306011 -0.00475 0.0657045" quat="0 0 -1 1">
          <inertial mass="0.00899563" pos="-0.0175297 0.00165308 -0.00469625" quat="-0.469642 0.469642 -0.528617 0.528617" diaginertia="1.72352e-06 1.60906e-06 3.22006e-07" />
          <joint name="right_driver_joint" class="driver" />
          <geom name="right_driver_driver_box" type="box" pos="-0.0149596809 0.000451263018 -0.0047" quat="1 1 0 0" size="0.0224596374 0.0135000004 0.0100782309" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
          <body name="right_coupler" pos="-0.0314249 0.00453223 -0.0102" quat="0 0 0 1">
            <inertial mass="0.0140974" pos="0.00367747 0.01986 0.0055" quat="0.701447 -0.701447 0.0892884 -0.0892884" diaginertia="4.16206e-06 3.52216e-06 8.88131e-07" />
            <geom name="right_coupler_coupler_box" type="box" pos="0.000445380457 0.023338231 0.0055" quat="1 -1 0 0" size="0.0148094315 0.0136000002 0.029692173" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
          </body>
        </body>
        <body name="right_spring_link" pos="0.0127 0.012 0.07222" quat="0 0 -1 1">
          <inertial mass="0.0221642" pos="-0.0183 -0.0205732 0.01205" quat="0.660941 0.660941 -0.251309 -0.251309" diaginertia="8.96853e-06 6.71733e-06 2.63931e-06" />
          <joint name="right_spring_link_joint" class="spring_link" />
          <geom name="right_spring_link_spring_link_box" type="box" pos="-0.0191039593 -0.0212501615 0.01205" quat="1 1 0 0" size="0.0251004647 0.0175000001 0.0272466671" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
          <body name="right_follower" pos="-0.0382079 -0.0425003 0.00295" quat="0 -1 0 0">
            <inertial mass="0.0125222" pos="-0.00852976 -0.0014822 -0.00910001" quat="0.359439 0.359439 0.608937 0.608937" diaginertia="2.67415e-06 2.4559e-06 6.02031e-07" />
            <joint name="right_follower_joint" class="follower" />
            <geom name="right_follower_tongue_box" type="box" pos="-0.00213000607 0.0255284548 -0.0091" quat="1 -1 0 0" size="0.00957999937 0.0109999999 0.0189999975" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
            <geom name="right_follower_follower_box" type="box" pos="-0.00895058792 0.00149322082 -0.0091" quat="1 -1 0 0" size="0.0149508622 0.0135000004 0.0140075758" group="2" contype="2" conaffinity="1" rgba="0.15 0.15 0.15 1" />
            <body name="right_pad" pos="-0.0377897 -0.103916 -0.0091" quat="1 -1 0 0">
              <geom class="pad_box1" name="right_pad1" contype="4" conaffinity="5" />
              <geom class="pad_box2" name="right_pad2" contype="4" conaffinity="5" />
              <site name="jaw_right" pos="0.045258 0 0.129375" size="0.003" group="4" rgba="0 0.6 1 0.8" />
            </body>
          </body>
        </body>
      </body>
    </body>
  </worldbody>
  <contact>
    <exclude body1="gripper_base" body2="left_driver" />
    <exclude body1="gripper_base" body2="right_driver" />
    <exclude body1="gripper_base" body2="left_spring_link" />
    <exclude body1="gripper_base" body2="right_spring_link" />
    <exclude body1="right_coupler" body2="right_follower" />
    <exclude body1="left_coupler" body2="left_follower" />
  </contact>
  <tendon>
    <fixed name="split">
      <joint joint="right_driver_joint" coef="0.485" />
      <joint joint="left_driver_joint" coef="0.485" />
    </fixed>
  </tendon>
  <equality>
    <connect anchor="-0.0179014 -0.00651468 0.0044" body1="right_follower" body2="right_coupler" solimp="0.95 0.99 0.001" solref="0.005 1" />
    <connect anchor="-0.0179014 -0.00651468 0.0044" body1="left_follower" body2="left_coupler" solimp="0.95 0.99 0.001" solref="0.005 1" />
    <joint joint1="right_driver_joint" joint2="left_driver_joint" polycoef="0 1 0 0 0" solimp="0.95 0.99 0.001" solref="0.005 1" />
  </equality>
  <actuator>
    <general class="2f85" name="fingers_actuator" tendon="split" forcerange="-5 5" ctrlrange="0 255" gainprm="0.3137255 0 0" biasprm="0 -100 -10" />
  </actuator>
</mujoco>
