<!--
robotiq-3f: 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: robosuite's robotiq_gripper_s.xml (Stanford Vision and Learning Lab and UT Robot Perception and Learning
Lab, MIT), https://github.com/ARISE-Initiative/robosuite at 5ce6643f3092639d08f7b0f90ed1c6a84f50552c. Its bodies,
joints, ranges, masses
and inertias, tendons, equalities and four position actuators (fingers 1, 2, middle, scissor) are robosuite's; its
kinematics and meshes are ROS-Industrial's robotiq 3F URDF (ros-industrial-attic/robotiq, BSD-2-Clause).

Changed: removed 10 <mesh> assets; robosuite's eef body, its ft_frame site and the force and torque
sensors on it (robosuite's own wrist frame, at the palm's origin). Added <compiler angle="radian">: robosuite merges
this fragment into a robot whose compiler reads radians, and its ranges are radians. Each collision mesh is a box
bounding it in its own frame (contype 2, conaffinity 1); visual meshes are dropped; the tip and pad boxes are
robosuite's, now contype 4, conaffinity 5 (each other and a scene, never the hand's boxes).
The part frame is the Universal Wrist's coupling-side seat (tools/measured/robotiq_3f_step_frame.json): the palm sits
44.458 mm above it, where ROS-I's palm mesh spans the wrist end to the palm top of Robotiq's STEP (residuals
-0.008 and 0.008 mm), turned so finger A (the middle finger) is +X. The wrist is
two massless cylinders from Robotiq's STEP (the 80 mm flange, 3.175 mm, and the 45.97 mm boss).
Mass: the palm is 1.686948 kg, Robotiq's 2.3 kg (manual p.71) less robosuite's finger links 0.613052 kg (robosuite's
palm: 1.20044 kg, ratio 1.4053); its inertia is scaled by that ratio, its centre of mass robosuite's.
Sites: `jaw_a`, `jaw_b`, `jaw_c` on the inner face of each finger's tip pad at the open pose.

robosuite LICENSE (MIT):

MIT License

Copyright (c) 2022 Stanford Vision and Learning Lab and UT Robot Perception and Learning Lab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

This software includes the partial implementation of Deepmind Mujoco https://github.com/deepmind/mujoco. 
Deepmind Mujoco is licensed under the Apache License, Version 2.0 (the "License");
you may not use the files except in compliance with the License. 

You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0

ROS-Industrial robotiq LICENSE (BSD-2-Clause), for the kinematics:

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_3f">
  <compiler angle="radian" autolimits="true" />
  <tendon>
    <fixed name="middle12_cpl" range="0 1" limited="true">
      <joint joint="finger_middle_joint_1" coef="0.5" />
      <joint joint="finger_middle_joint_2" coef="0.5" />
    </fixed>
    <fixed name="middle23_cpl" range="0 1" limited="true">
      <joint joint="finger_middle_joint_2" coef="0.5" />
      <joint joint="finger_middle_joint_3" coef="-1" />
    </fixed>
    <fixed name="finger2_12_cpl" range="0 1" limited="true">
      <joint joint="finger_2_joint_1" coef="0.5" />
      <joint joint="finger_2_joint_2" coef="0.5" />
    </fixed>
    <fixed name="finger2_23_cpl" range="0 1" limited="true">
      <joint joint="finger_2_joint_2" coef="0.5" />
      <joint joint="finger_2_joint_3" coef="-1" />
    </fixed>
    <fixed name="finger1_12_cpl" range="0 1" limited="true">
      <joint joint="finger_1_joint_1" coef="0.5" />
      <joint joint="finger_1_joint_2" coef="0.5" />
    </fixed>
    <fixed name="finger1_23_cpl" range="0 1" limited="true">
      <joint joint="finger_1_joint_2" coef="0.5" />
      <joint joint="finger_1_joint_3" coef="-1" />
    </fixed>
  </tendon>
  <equality>
    <tendon name="middle12_cpl" tendon1="middle12_cpl" />
    <tendon name="middle23_cpl" tendon1="middle23_cpl" />
    <tendon name="finger2_12_cpl" tendon1="finger2_12_cpl" />
    <tendon name="finger2_23_cpl" tendon1="finger2_23_cpl" />
    <tendon name="finger1_12_cpl" tendon1="finger1_12_cpl" />
    <tendon name="finger1_23_cpl" tendon1="finger1_23_cpl" />
    <joint name="finger_12_scissor" joint1="palm_finger_2_joint" joint2="palm_finger_1_joint" polycoef="0 -1 0 0 0" />
  </equality>
  <actuator>
    <position name="finger_1" ctrllimited="true" kp="20" joint="finger_1_joint_1" ctrlrange="0 1.2217" />
    <position name="finger_2" ctrllimited="true" kp="20" joint="finger_2_joint_1" ctrlrange="0 1.2217" />
    <position name="middle_finger" ctrllimited="true" kp="20" joint="finger_middle_joint_1" ctrlrange="0 1.2217" />
    <position name="finger_scissor" ctrllimited="true" kp="20" joint="palm_finger_1_joint" ctrlrange="-0.29 0.29" />
  </actuator>
  <worldbody>
    <body name="base">
      <body name="palm" pos="0 0 0.0444577176" quat="0.707106781 0.707106781 0 0">
        <inertial pos="-0.00134236 0.00263073 -1.01672e-08" quat="0.489887 0.489849 0.509908 0.509954" mass="1.6869476" diaginertia="0.0037034742 0.00307580839 0.0029649463" />
        <geom name="palm_box" type="box" pos="-0.00378124043 -0.0015875008 0" quat="1 0 0 0" size="0.0666208453 0.0523875002 0.0650874972" group="2" contype="2" conaffinity="1" rgba="0 0 0 1" />
        <body name="finger_1_link_0" pos="-0.0455 0.0214 0.036" quat="-2.59838e-06 0.706825 0.707388 2.59631e-06">
          <inertial pos="-0.0381134 0.026928 0.0359997" quat="0.0835458 0.702169 -0.0835699 0.702136" mass="0.0494545" diaginertia="1.39633e-05 1.10443e-05 9.98401e-06" />
          <joint damping="0.1" name="palm_finger_1_joint" pos="0 0 0" axis="0 1 0" limited="true" range="-0.29 0.29" ref="0.29" />
          <geom name="f1_l0_box" type="box" pos="0.00471480934 0.00793750025 0" quat="1 0 0 0" size="0.0215526405 0.022225 0.0153670004" group="2" contype="2" conaffinity="1" rgba="0 0 0 1" />
          <body name="finger_1_link_1" pos="0.02 0 0">
            <inertial pos="0.0184407 -0.0219985 -5.83379e-12" quat="0.170512 0.68624 -0.170512 0.68624" mass="0.0859984" diaginertia="6.46024e-05 5.9524e-05 1.50124e-05" />
            <joint damping="0.03" name="finger_1_joint_1" pos="0 0 0" axis="0 0 1" limited="true" range="0 3.1416" />
            <geom name="f1_l1_box" type="box" pos="0.0204756007 -0.023992821 0" quat="0.96639 0 0 -0.257081" size="0.0525495773 0.0225873892 0.0153670004" group="2" contype="2" conaffinity="1" rgba="0 0 0 1" />
            <body name="finger_1_link_2" pos="0.05 -0.028 0" quat="0.96639 0 0 -0.257081">
              <inertial pos="0.0147516 -0.00823285 -0.000546645" quat="-0.0619175 0.704391 0.0619175 0.704391" mass="0.0461767" diaginertia="1.70717e-05 1.67626e-05 5.90767e-06" />
              <joint damping="0.03" name="finger_1_joint_2" pos="0 0 0" axis="0 0 1" limited="true" range="0 3.1416" />
              <geom name="f1_l2_box" type="box" pos="0.0118744347 -0.0102116254 -0.000546644973" quat="1 0 0 0" size="0.0359110925 0.0177046254 0.0153670001" group="2" contype="2" conaffinity="1" rgba="0 0 0 1" />
              <body name="finger_1_link_3" pos="0.039 0 0">
                <inertial pos="0.00866021 0.00239356 2.11103e-08" quat="0.653623 0.653626 -0.269769 -0.269767" mass="0.0227212" diaginertia="5.48529e-06 4.69221e-06 2.01594e-06" />
                <joint damping="0.03" name="finger_1_joint_3" pos="0 0 0" axis="0 0 1" limited="true" range="0 3.1416" />
                <geom name="f1_l3_box" type="box" pos="0.0112688431 0.000809465002 0" quat="0.96639 0 0 0.257081" size="0.0279184794 0.012834304 0.0153670004" group="2" contype="2" conaffinity="1" rgba="1 1 1 1" />
                <geom type="box" group="0" pos="0.018 0.018 0" quat="0.9659258 0 0 0.258819" size="0.013 0.002 0.013" name="f1_tip_collision" contype="4" conaffinity="5" />
                <geom type="box" group="0" pos="0.017 0.019 0" quat="0.9659258 0 0 0.258819" size="0.011 0.001 0.012" name="f1_pad_collision" contype="4" conaffinity="5" />
                <site name="jaw_b" pos="0.0165000001 0.0198660254 -5.22310683e-18" size="0.003" group="4" rgba="0 0.6 1 0.8" />
              </body>
            </body>
          </body>
        </body>
        <body name="finger_2_link_0" pos="-0.0455 0.0214 -0.036" quat="-2.59838e-06 0.706825 0.707388 2.59631e-06">
          <inertial pos="-0.0381134 0.026928 0.0359997" quat="0.0835458 0.702169 -0.0835699 0.702136" mass="0.0494545" diaginertia="1.39633e-05 1.10443e-05 9.98401e-06" />
          <joint damping="0.1" name="palm_finger_2_joint" pos="0 0 0" axis="0 1 0" limited="true" range="-0.29 0.29" ref="-0.29" />
          <geom name="f2_l0_box" type="box" pos="0.00471480934 0.00793750025 0" quat="1 0 0 0" size="0.0215526405 0.022225 0.0153670004" group="2" contype="2" conaffinity="1" rgba="0 0 0 1" />
          <body name="finger_2_link_1" pos="0.02 0 0">
            <inertial pos="0.0184407 -0.0219985 -5.83379e-12" quat="0.170512 0.68624 -0.170512 0.68624" mass="0.0859984" diaginertia="6.46024e-05 5.9524e-05 1.50124e-05" />
            <joint damping="0.03" name="finger_2_joint_1" pos="0 0 0" axis="0 0 1" limited="true" range="0 3.1416" />
            <geom name="f2_l1_box" type="box" pos="0.0204756007 -0.023992821 0" quat="0.96639 0 0 -0.257081" size="0.0525495773 0.0225873892 0.0153670004" group="2" contype="2" conaffinity="1" rgba="0 0 0 1" />
            <body name="finger_2_link_2" pos="0.05 -0.028 0" quat="0.96639 0 0 -0.257081">
              <inertial pos="0.0147516 -0.00823285 -0.000546645" quat="-0.0619175 0.704391 0.0619175 0.704391" mass="0.0461767" diaginertia="1.70717e-05 1.67626e-05 5.90767e-06" />
              <joint damping="0.03" name="finger_2_joint_2" pos="0 0 0" axis="0 0 1" limited="true" range="0 3.1416" />
              <geom name="f2_l2_box" type="box" pos="0.0118744347 -0.0102116254 -0.000546644973" quat="1 0 0 0" size="0.0359110925 0.0177046254 0.0153670001" group="2" contype="2" conaffinity="1" rgba="0 0 0 1" />
              <body name="finger_2_link_3" pos="0.039 0 0">
                <inertial pos="0.00866021 0.00239356 2.11103e-08" quat="0.653623 0.653626 -0.269769 -0.269767" mass="0.0227212" diaginertia="5.48529e-06 4.69221e-06 2.01594e-06" />
                <joint damping="0.03" name="finger_2_joint_3" pos="0 0 0" axis="0 0 1" limited="true" range="0 3.1416" />
                <geom name="f2_l3_box" type="box" pos="0.0112688431 0.000809465002 0" quat="0.96639 0 0 0.257081" size="0.0279184794 0.012834304 0.0153670004" group="2" contype="2" conaffinity="1" rgba="1 1 1 1" />
                <geom type="box" group="0" pos="0.018 0.018 0" quat="0.9659258 0 0 0.258819" size="0.013 0.002 0.013" name="f2_tip_collision" contype="4" conaffinity="5" />
                <geom type="box" group="0" pos="0.017 0.019 0" quat="0.9659258 0 0 0.258819" size="0.011 0.001 0.012" name="f2_pad_collision" contype="4" conaffinity="5" />
                <site name="jaw_c" pos="0.0165000001 0.0198660254 -5.22310683e-18" size="0.003" group="4" rgba="0 0.6 1 0.8" />
              </body>
            </body>
          </body>
        </body>
        <body name="finger_middle_link_0" pos="0.0455 0.0214 0" quat="0.707388 0 0 0.706825">
          <inertial pos="-0.0381134 0.026928 0.0359997" quat="0.0835458 0.702169 -0.0835699 0.702136" mass="0.0494545" diaginertia="1.39633e-05 1.10443e-05 9.98401e-06" />
          <geom name="f3_l0_box" type="box" pos="0.00471480934 0.00793750025 0" quat="1 0 0 0" size="0.0215526405 0.022225 0.0153670004" group="2" contype="2" conaffinity="1" rgba="0 0 0 1" />
          <body name="finger_middle_link_1" pos="0.02 0 0">
            <inertial pos="0.0184407 -0.0219985 -5.83379e-12" quat="0.170512 0.68624 -0.170512 0.68624" mass="0.0859984" diaginertia="6.46024e-05 5.9524e-05 1.50124e-05" />
            <joint damping="0.03" name="finger_middle_joint_1" pos="0 0 0" axis="0 0 1" limited="true" range="0 3.1416" />
            <geom name="f3_l1_box" type="box" pos="0.0204756007 -0.023992821 0" quat="0.96639 0 0 -0.257081" size="0.0525495773 0.0225873892 0.0153670004" group="2" contype="2" conaffinity="1" rgba="0 0 0 1" />
            <body name="finger_middle_link_2" pos="0.05 -0.028 0" quat="0.96639 0 0 -0.257081">
              <inertial pos="0.0147516 -0.00823285 -0.000546645" quat="-0.0619175 0.704391 0.0619175 0.704391" mass="0.0461767" diaginertia="1.70717e-05 1.67626e-05 5.90767e-06" />
              <joint damping="0.03" name="finger_middle_joint_2" pos="0 0 0" axis="0 0 1" limited="true" range="0 3.1416" />
              <geom name="f3_l2_box" type="box" pos="0.0118744347 -0.0102116254 -0.000546644973" quat="1 0 0 0" size="0.0359110925 0.0177046254 0.0153670001" group="2" contype="2" conaffinity="1" rgba="0 0 0 1" />
              <body name="finger_middle_link_3" pos="0.039 0 0">
                <inertial pos="0.00866021 0.00239356 2.11103e-08" quat="0.653623 0.653626 -0.269769 -0.269767" mass="0.0227212" diaginertia="5.48529e-06 4.69221e-06 2.01594e-06" />
                <joint damping="0.03" name="finger_middle_joint_3" pos="0 0 0" axis="0 0 1" limited="true" range="0 3.1416" />
                <geom name="f3_l3_box" type="box" pos="0.0112688431 0.000809465002 0" quat="0.96639 0 0 0.257081" size="0.0279184794 0.012834304 0.0153670004" group="2" contype="2" conaffinity="1" rgba="1 1 1 1" />
                <geom type="box" group="0" pos="0.018 0.018 0" quat="0.9659258 0 0 0.258819" size="0.013 0.002 0.013" name="finger_middle_tip_collision" contype="4" conaffinity="5" />
                <geom type="box" group="0" pos="0.017 0.019 0" quat="0.9659258 0 0 0.258819" size="0.011 0.001 0.012" name="finger_middle_pad_collision" contype="4" conaffinity="5" />
                <site name="jaw_a" pos="0.0165000001 0.0198660254 0" size="0.003" group="4" rgba="0 0.6 1 0.8" />
              </body>
            </body>
          </body>
        </body>
      </body>
      <geom name="wrist_flange" type="cylinder" mass="0" pos="0 0 0.0015875" size="0.04 0.0015875" group="2" contype="2" conaffinity="1" rgba="0.6 0.6 0.6 1" />
      <geom name="wrist_boss" type="cylinder" mass="0" pos="0 0 -0.0047625" size="0.022987 0.0047625" group="2" contype="2" conaffinity="1" rgba="0.6 0.6 0.6 1" />
    </body>
  </worldbody>
</mujoco>
