keplerccc commited on
Commit
67e7b17
·
verified ·
1 Parent(s): 446cfdc

robots: Robotiq 2F-85, and the retired i2rt YAM builds as an archive

Browse files
Files changed (48) hide show
  1. .gitattributes +22 -0
  2. robots/archive/yam_i2rt/LICENSE +9 -0
  3. robots/archive/yam_i2rt/PROVENANCE.md +68 -0
  4. robots/archive/yam_i2rt/assets/base.stl +3 -0
  5. robots/archive/yam_i2rt/assets/gripper.stl +3 -0
  6. robots/archive/yam_i2rt/assets/link1.stl +3 -0
  7. robots/archive/yam_i2rt/assets/link2.stl +3 -0
  8. robots/archive/yam_i2rt/assets/link3.stl +3 -0
  9. robots/archive/yam_i2rt/assets/link4.stl +3 -0
  10. robots/archive/yam_i2rt/assets/link5.stl +0 -0
  11. robots/archive/yam_i2rt/assets/tip_left.stl +3 -0
  12. robots/archive/yam_i2rt/assets/tip_right.stl +3 -0
  13. robots/archive/yam_i2rt/spec/linear_4310.py +159 -0
  14. robots/archive/yam_i2rt/spec/yam_i2rt.py +223 -0
  15. robots/archive/yam_i2rt/spec/yam_look.py +128 -0
  16. robots/archive/yam_i2rt/yam_i2rt_arm.urdf +52 -0
  17. robots/archive/yam_i2rt/yam_i2rt_arms.xml +142 -0
  18. robots/archive/yam_i2rt/yam_i2rt_bimanual.xml +142 -0
  19. robots/archive/yam_i2rt_arena/LICENSE +9 -0
  20. robots/archive/yam_i2rt_arena/PROVENANCE.md +21 -0
  21. robots/archive/yam_i2rt_arena/assets/base.stl +3 -0
  22. robots/archive/yam_i2rt_arena/assets/d405.stl +3 -0
  23. robots/archive/yam_i2rt_arena/assets/link1.stl +3 -0
  24. robots/archive/yam_i2rt_arena/assets/link2.stl +3 -0
  25. robots/archive/yam_i2rt_arena/assets/link3.stl +3 -0
  26. robots/archive/yam_i2rt_arena/assets/link4.stl +3 -0
  27. robots/archive/yam_i2rt_arena/assets/link5.stl +0 -0
  28. robots/archive/yam_i2rt_arena/assets/model2__12.stl +0 -0
  29. robots/archive/yam_i2rt_arena/assets/model2__13.stl +3 -0
  30. robots/archive/yam_i2rt_arena/assets/model2__14.stl +3 -0
  31. robots/archive/yam_i2rt_arena/assets/model2__15.stl +3 -0
  32. robots/archive/yam_i2rt_arena/assets/model2__16.stl +3 -0
  33. robots/archive/yam_i2rt_arena/assets/model2__17.stl +3 -0
  34. robots/archive/yam_i2rt_arena/spec/yam_i2rt_arena.py +118 -0
  35. robots/archive/yam_i2rt_arena/spec/yam_look.py +128 -0
  36. robots/archive/yam_i2rt_arena/yam_i2rt_arena_narrow_arms.xml +262 -0
  37. robots/robotiq_2f85/2f85.xml +205 -0
  38. robots/robotiq_2f85/LICENSE +23 -0
  39. robots/robotiq_2f85/PROVENANCE.md +27 -0
  40. robots/robotiq_2f85/README.md +38 -0
  41. robots/robotiq_2f85/assets/base.stl +3 -0
  42. robots/robotiq_2f85/assets/base_mount.stl +3 -0
  43. robots/robotiq_2f85/assets/coupler.stl +0 -0
  44. robots/robotiq_2f85/assets/driver.stl +0 -0
  45. robots/robotiq_2f85/assets/follower.stl +3 -0
  46. robots/robotiq_2f85/assets/pad.stl +0 -0
  47. robots/robotiq_2f85/assets/silicone_pad.stl +0 -0
  48. robots/robotiq_2f85/assets/spring_link.stl +0 -0
.gitattributes CHANGED
@@ -58,3 +58,25 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ robots/archive/yam_i2rt/assets/base.stl filter=lfs diff=lfs merge=lfs -text
62
+ robots/archive/yam_i2rt/assets/gripper.stl filter=lfs diff=lfs merge=lfs -text
63
+ robots/archive/yam_i2rt/assets/link1.stl filter=lfs diff=lfs merge=lfs -text
64
+ robots/archive/yam_i2rt/assets/link2.stl filter=lfs diff=lfs merge=lfs -text
65
+ robots/archive/yam_i2rt/assets/link3.stl filter=lfs diff=lfs merge=lfs -text
66
+ robots/archive/yam_i2rt/assets/link4.stl filter=lfs diff=lfs merge=lfs -text
67
+ robots/archive/yam_i2rt/assets/tip_left.stl filter=lfs diff=lfs merge=lfs -text
68
+ robots/archive/yam_i2rt/assets/tip_right.stl filter=lfs diff=lfs merge=lfs -text
69
+ robots/archive/yam_i2rt_arena/assets/base.stl filter=lfs diff=lfs merge=lfs -text
70
+ robots/archive/yam_i2rt_arena/assets/d405.stl filter=lfs diff=lfs merge=lfs -text
71
+ robots/archive/yam_i2rt_arena/assets/link1.stl filter=lfs diff=lfs merge=lfs -text
72
+ robots/archive/yam_i2rt_arena/assets/link2.stl filter=lfs diff=lfs merge=lfs -text
73
+ robots/archive/yam_i2rt_arena/assets/link3.stl filter=lfs diff=lfs merge=lfs -text
74
+ robots/archive/yam_i2rt_arena/assets/link4.stl filter=lfs diff=lfs merge=lfs -text
75
+ robots/archive/yam_i2rt_arena/assets/model2__13.stl filter=lfs diff=lfs merge=lfs -text
76
+ robots/archive/yam_i2rt_arena/assets/model2__14.stl filter=lfs diff=lfs merge=lfs -text
77
+ robots/archive/yam_i2rt_arena/assets/model2__15.stl filter=lfs diff=lfs merge=lfs -text
78
+ robots/archive/yam_i2rt_arena/assets/model2__16.stl filter=lfs diff=lfs merge=lfs -text
79
+ robots/archive/yam_i2rt_arena/assets/model2__17.stl filter=lfs diff=lfs merge=lfs -text
80
+ robots/robotiq_2f85/assets/base.stl filter=lfs diff=lfs merge=lfs -text
81
+ robots/robotiq_2f85/assets/base_mount.stl filter=lfs diff=lfs merge=lfs -text
82
+ robots/robotiq_2f85/assets/follower.stl filter=lfs diff=lfs merge=lfs -text
robots/archive/yam_i2rt/LICENSE ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) I2RT Robotics
4
+
5
+ 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:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ 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.
robots/archive/yam_i2rt/PROVENANCE.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## `embodiments/yam_i2rt/` — i2rt YAM bimanual pair with linear_4310 grippers
2
+
3
+ **Source:** `i2rt-robotics/i2rt` @ `c40b4125` (read from a mirror of that
4
+ repository), files
5
+ `i2rt/robot_models/arm/yam/{yam.xml,assets/*.stl}` and
6
+ `i2rt/robot_models/gripper/linear_4310/{linear_4310.xml,assets/*.stl}`. MIT
7
+ licensed; `LICENSE` copied beside the meshes.
8
+
9
+ **Files**
10
+
11
+ | File | What it is |
12
+ | --- | --- |
13
+ | `yam_i2rt_bimanual.xml` | *Generated.* Two composed YAM+linear_4310 arms, `left_`/`right_` prefixed, bases baked at the reference workcell's mounts. |
14
+ | `yam_i2rt_arms.xml` | *Generated.* The same two arms with the baked mount taken out: the arm roots moved from `(0.2525, ±0.31, 0.75)` to the origin, the ±0.31 shoulder separation kept, 0.2525 and 0.75 moved to `EmbodimentSpec.base_offset`. **What `yam_i2rt` imports.** |
15
+ | `assets/` | The 9 STLs the MJCF references. Byte-identical copies. |
16
+ | `LICENSE` | i2rt's MIT license. |
17
+ | `yam_i2rt_arm.urdf` | *Generated.* One arm's chain (`base_link`, `link_1`..`link_6`, `joint1`..`joint6`) transcribed from `yam_i2rt_arms.xml`'s `right_` bodies: each body's `pos`/`quat` as the joint origin, each joint's own axis and range, in chain order; no geometry or inertia. Used by PyRoKi IK, which refuses i2rt's stock `yam.urdf` (not shipped; it lists `joint6` first and puts `joint1` at 63.1 mm where the MJCF has 67, and the check read 268.58 mm / 10.524° tool-to-TCP drift between two configurations on the crate-washing scene, measured 2026-10-03) and accepts this one on both arms; its drift check holds this file to the MJCF. Named by `yam_i2rt`; `yam_i2rt_arena_narrow` has the same chain but names no URDF (see `robots/embodiments/yam_i2rt_arena.py`). |
18
+
19
+ **What changed on the way in** (all in the generator, none in the meshes):
20
+
21
+ * The single-arm composition replicates the YAM builder in the original reference sims
22
+ (itself a re-implementation of i2rt's `combine_arm_and_gripper_xml()`):
23
+ fixed `base` wrap, linear_4310 mounted on `link6` with the transform from
24
+ i2rt's `linear_4310.yml`, `joint6` axis overridden to `0 0 -1`.
25
+ * Actuator physics the stock MJCF omits, from that builder verbatim:
26
+ reflected armature `N²·I_rotor`, damping, frictionloss and true DM4340/DM4310
27
+ torque limits per joint; position actuators kp=300/kv=30 (arms) and
28
+ kp=600/kv=20 (fingers) -- the fingers' not what the library drives now,
29
+ below.
30
+ * `gravcomp="1"` baked onto every body — the sims set `mujoco:gravcomp = 1.0`
31
+ on every robot body in code; baking it lets the importer harvest it.
32
+ * **Both fingers actuated and the stock `joint7 == joint8` equality dropped**:
33
+ Newton's MJCF import applies that equality with inverted polarity
34
+ (`joint8 = -joint7`), which translates the jaw pair sideways instead of
35
+ closing it. The original reference sims carry the same fix
36
+ (`skip_equality_constraints=True` plus a second actuator); both fingers are
37
+ always commanded to the same value, so the coupling is preserved by
38
+ construction. (Both fingers are still actuated, but the equality is back
39
+ since: Newton 1.7 imports it the right way round, below.)
40
+ * Two prefixed copies merged into one worldbody at bases
41
+ `(0.2525, ∓0.31, 0.75)` (right = active), per-side contact excludes kept.
42
+
43
+ **Edited in the checked-in `yam_i2rt_arms.xml` and `yam_i2rt_bimanual.xml` on 2026-10-26** (the generator
44
+ does not make these: a file regenerated from it drops them): the finger
45
+ actuators' `forcerange` and the joints' `actuatorfrcrange` are -50..50, from
46
+ +-80, the driver's 50 N a blade (each blade has its own actuator; sources under
47
+ `embodiments/yam/` above); and **the `joint7 == joint8` equality is back** (`polycoef="0 1 0 0 0"`, with the stiff `solref="0.004 1"
48
+ solimp="0.95 0.99 0.001"`). Newton 1.7 imports it with the right sign
49
+ (`eq_data` `[0, 1, 0, 0, 0]`; both fingers commanded to 20 mm read 20.0 and
50
+ 20.0), and it is what the real hand is, one motor: two capped servos without it
51
+ hold a part anywhere between them. Both fingers stay actuated and commanded
52
+ alike, as before. Tip and link friction are unchanged: the file authors none,
53
+ so MuJoCo's 1.0.
54
+
55
+ The file's finger gains (kp 600, kv 20, damping 2) are not what the library
56
+ drives: `linear_4310.CLAMP` is, as under `embodiments/yam/` above -- kp 150000,
57
+ kv 150 and 230 N*s/m a blade (0.22 m/s at the cap). At kp 600 the squeeze grew with the part, 0.9 N a blade on a 1 mm box, 2.3 N on 6 mm,
58
+ 9.5 N on 30 mm; full open to shut took 0.08 s, now 0.20 s. After
59
+ (`MUJOCO_500HZ`): 50 N a blade on 30 and 60 mm boxes, both held to 2 kg. A thin
60
+ plate standing on edge is the limit of these colliders at the real force: the
61
+ decomposed tip hulls' faces are not parallel, and at 50 N they turn a 6 mm
62
+ plate in the pinch (83 degrees; it dropped at 0.47 kg, where the kp 600
63
+ servo's 2.3 N held 0.55 kg). The arm's kp 300/kv 30 are the reference sims',
64
+ not the hardware's (i2rt's `yam_v1.yml`: kp 80/80/80/10/10/10, kd
65
+ 5/5/5/1.5/1.5/1.5), and are unchanged.
66
+
67
+ ---
68
+
robots/archive/yam_i2rt/assets/base.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d57efce4cd31db5e461e1bc83362943a7dbe0e8e101cdb94c29de0a72f3ff0f
3
+ size 400084
robots/archive/yam_i2rt/assets/gripper.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d949c401186197d842ca8f9b23bfcbf24bed8461b421df06093c65e4ead21f5d
3
+ size 400084
robots/archive/yam_i2rt/assets/link1.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2283bab1300cfdd1a04aaf09503093d7d6d19bf2144abf3429d563b596920903
3
+ size 400084
robots/archive/yam_i2rt/assets/link2.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fd4df2916be71391c6c6ea6ffbdb3c270ce67c71c2bb7d42d44736c0be2af98
3
+ size 400084
robots/archive/yam_i2rt/assets/link3.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b51658509771514738d0f2271df5f271cd8ae0b6a4bf3787d8463d5ab582593
3
+ size 400084
robots/archive/yam_i2rt/assets/link4.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6e980b8064a1396b17e87065de50286abf616f94b55e1ccff92e889218de220
3
+ size 232084
robots/archive/yam_i2rt/assets/link5.stl ADDED
Binary file (70.5 kB). View file
 
robots/archive/yam_i2rt/assets/tip_left.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03d94f53d7b5e9e1871ea6f3925c68d7a2f894b08e0c575fa0b9ed4024684ff7
3
+ size 400084
robots/archive/yam_i2rt/assets/tip_right.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f620aae9c15e00e2ea4e5bf5e9a49e7edb2d23128b8955cfacc0da8da45c72f
3
+ size 400084
robots/archive/yam_i2rt/spec/linear_4310.py ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """The i2rt linear_4310, the blade-tip gripper on the composed YAM.
3
+
4
+ Two prismatic fingers with a 0.0475 m travel behind linear_4310 blade tips, both
5
+ actuated and both running the same sign -- *not* the mirrored prismatic
6
+ convention, which is why this hand states its own open and closed coordinates
7
+ despite having two joints.
8
+
9
+ Every constant here is a fact about the gripper, measured (in the reference sims)
10
+ on the built model with probe bodies:
11
+
12
+ * Blade-tip gap in metres is ``2.0 * cmd`` -- at the 0.0475 command the tips are
13
+ 94 mm apart, at 0 they touch.
14
+ * The closing axis in the gripper frame is essentially local ``-y``, fitted from
15
+ the pad centres. The naive axis read off the tip *body origins* is 84.5 degrees
16
+ wrong, and the origins move **apart** as the blades close, so never read
17
+ ``|tip_left - tip_right|`` as a gap.
18
+
19
+ What is deliberately *not* here is a command-for-gap formula. The free gap a part
20
+ sees depends on which geometry actually collides -- the full fingertip, a trimmed
21
+ blade, or a fitted box -- and the source sims measured a different intercept for
22
+ each. A task that derives grip commands calibrates against its own collider at
23
+ build time (the USB-C suite's ``_calibrate_jaw_gap`` does exactly this); a
24
+ constant here would be the untrimmed number that measurably mis-squeezes a
25
+ trimmed jaw: 16.5 degrees of grasp tilt, part thrown.
26
+
27
+ **And WHICH geometry collides is not the one that is drawn, unless the
28
+ embodiment asks for it.** ``tip_left.stl`` is an open A-frame -- a pad plate on a
29
+ triangular yoke, in three separate closed shells -- and MuJoCo collides every
30
+ mesh geom as its convex hull. The hull fills the yoke in solid: 3.13x the blade's
31
+ volume, with an inner face standing ~13 mm proud of the pad. A hand left that way
32
+ grips on a surface that is neither drawn nor where the rubber is; probed on
33
+ ``polish/strip`` at the instant its pick reported a grasp, all four pads were
34
+ **13-14 mm clear of the part** while their hulls were 1.2-2.3 mm inside it. That
35
+ is the discrepancy the paragraph above records: the gap formula is fitted to the
36
+ blade tips, the contact was on the hull, and the two are 13 mm apart.
37
+
38
+ :attr:`~robosimstudio.specs.robot.EmbodimentSpec.decompose_colliders` is what
39
+ puts the contact back on the blade, and ``yam_i2rt`` sets it. Measured there,
40
+ both hands closing on a 4 mm strip, per pad rather than per hand (see
41
+ ``ToolsPolish.pad_forces`` for why the difference decides whether a working grasp
42
+ reads as a grasp at all)::
43
+
44
+ finger command 3.0 mm 2.0 mm 1.0 mm 0.0 mm
45
+ grip force 1.0 N 13.2 N 28.5 N 44.5 N
46
+
47
+ First touch at ~3.0 mm on a 4 mm part, then about 20 N per millimetre (the
48
+ polish suite's own finger servo, not the asset's), and the part does not move
49
+ while the jaws close (0.01 mm). None of that was true of the hull, whose faces
50
+ are not parallel and whose "grip" was mostly a net push. This hand's own servo
51
+ is the real driver's clamp, 50 N a blade on anything it closes on (:data:`CLAMP`).
52
+
53
+ The names are templated. Both YAM arms carry this hand and its joints are
54
+ ``right_joint7`` / ``left_joint7``, so ``{arm}`` is substituted per arm by
55
+ :meth:`GripperSpec.for_arm` -- one entry, two hands.
56
+ """
57
+
58
+ from __future__ import annotations
59
+
60
+ import numpy as np
61
+
62
+ from robosimstudio.specs import ActuationSpec, GripperSpec
63
+
64
+ from ..registry import register_gripper
65
+
66
+ __all__ = [
67
+ "CLAMP",
68
+ "GRASP_SITE_ROT",
69
+ "GRIP_CLOSE_MEASURED",
70
+ "GRIP_LOCAL_EXT",
71
+ "GRIP_OPEN",
72
+ "JAW_GAP_OFFSET",
73
+ "JAW_GAP_PER_CMD",
74
+ "JAW_THICKNESS",
75
+ "LINEAR_4310",
76
+ "TCP_OFFSET",
77
+ ]
78
+
79
+ TCP_OFFSET = (0.0, 0.0, -0.1347)
80
+ """Grasp site in the ``gripper`` body's frame [m]: 134.7 mm along local -z,
81
+ between the pads. The MJCF's ``grasp_site``."""
82
+
83
+ GRASP_SITE_ROT = (1.0, 0.0, 0.0, 0.0)
84
+ """Rotation from the ``gripper`` body frame to the grasp frame, xyzw: 180 degrees
85
+ about x, the MJCF ``grasp_site``'s own ``quat="0 1 0 0"``. The gripper *extends*
86
+ along body -z, so this flip is what makes the grasp frame's +z the approach
87
+ direction -- the convention every core solver speaks, and the rotation whose
88
+ absence from ``ArmHandle`` made the Cartesian servo measure this hand backwards."""
89
+
90
+ GRIP_OPEN = 0.0475
91
+ """Finger joint coordinate at full open [m]. Larger command = more open."""
92
+
93
+ JAW_GAP_PER_CMD = 2.0
94
+ """Blade-tip gap per unit of finger command: ``tip_gap = 2.0 * cmd`` [m/m].
95
+ Both fingers move, so a millimetre of command is two of opening."""
96
+ JAW_GAP_OFFSET = 0.00536
97
+ """Blade *centroid* gap exceeds the tip gap by this much [m]. Bookkeeping for the
98
+ centroid-frame gap readings the reference sims quote; not a surface gap."""
99
+ JAW_THICKNESS = 0.02992
100
+ """One blade's AABB extent along its slide direction [m], from the trimmed 30 mm
101
+ blade cut. Bookkeeping for the same readings."""
102
+
103
+ GRIP_LOCAL_EXT = np.array([0.0, 0.0, -1.0])
104
+ """Gripper-local extension axis: from the wrist towards the grasp point."""
105
+ GRIP_CLOSE_MEASURED = np.array([0.0053, -1.0, 0.0]) / np.linalg.norm(np.array([0.0053, -1.0, 0.0]))
106
+ """Gripper-local blade-closing axis, fitted from the pad centres."""
107
+
108
+ CLAMP = ActuationSpec(target_ke=150000.0, target_kd=150.0, effort_limit=50.0, joint_damping=230.0)
109
+ """The real linear_4310's servo: 50 N a blade on a blocked part, i2rt's ``limit_gripper_force``.
110
+
111
+ Each blade has its own actuator, so each carries the per-jaw cap, 50 N, in the asset; the
112
+ composed file's ``joint7 == joint8`` equality ties them as the one motor does. Here, a servo stiff
113
+ enough to reach that cap a third of a millimetre past contact, and 230 N*s/m on each blade as the closing
114
+ speed, 0.22 m/s at the cap: the DM4310's 30 rad/s bound, as on ``yam_linear_arena``'s ``CLAMP``,
115
+ which has the sources. The asset's own gains are the reference sims' kp 600, which squeezed
116
+ 0.9 N a blade on a 1 mm box and 9.5 N on 30 mm. On the hand, so a stated finger servo replaces it.
117
+ """
118
+
119
+ LINEAR_4310 = register_gripper(
120
+ GripperSpec(
121
+ name="linear_4310",
122
+ # Explicit names rather than a prefix + finger token: the fingers are
123
+ # joint7/joint8, and no single substring separates them from
124
+ # joint1..joint6 under one prefix.
125
+ finger_names=("{arm}_joint7", "{arm}_joint8"),
126
+ # Both fingers run 0 (closed) to 0.0475 (open) on the same sign -- not
127
+ # the mirrored prismatic convention, which is why these are stated.
128
+ finger_open_q=(GRIP_OPEN, GRIP_OPEN),
129
+ finger_closed_q=(0.0, 0.0),
130
+ open_width=GRIP_OPEN,
131
+ # Blade-tip separation at full open, measured: 2.0 * 0.0475 - 0.001.
132
+ # Stated rather than derived because the -1 mm is real.
133
+ span=0.09396,
134
+ tcp_body="{arm}_gripper",
135
+ tcp_offset=TCP_OFFSET,
136
+ tcp_offset_rot=GRASP_SITE_ROT,
137
+ approach_axis=tuple(float(v) for v in GRIP_LOCAL_EXT),
138
+ close_axis=tuple(float(v) for v in GRIP_CLOSE_MEASURED),
139
+ finger_bodies=(("{arm}_tip_left",), ("{arm}_tip_right",)),
140
+ # 35 mm, and it disagrees with the static measurement -- deliberately.
141
+ #
142
+ # The cable-routing routine states this as prose: "the blade tips, 35 mm
143
+ # below the TCP, swinging with the wrist, clipped the cable".
144
+ # A gripper-measurement script reads 10.02 mm on both the cable-routing and
145
+ # the USB-C insertion scenes, which is the furthest pad corner past the TCP with the
146
+ # wrist *still*. The routine's number is about a swept volume; the
147
+ # measurement is about a pose.
148
+ #
149
+ # The larger one is kept because of what this field is used for. It
150
+ # feeds a clearance -- how high to carry, how far above an object to
151
+ # hover -- and a clearance that is too large costs travel while one that
152
+ # is too small drives the blades through the thing being avoided, which
153
+ # is the failure the routine's sentence was recording. Erring toward the
154
+ # swept number is the safe direction, and stating both is what stops the
155
+ # next reader "correcting" it to 10 mm.
156
+ tip_reach=0.035,
157
+ actuation=CLAMP,
158
+ )
159
+ )
robots/archive/yam_i2rt/spec/yam_i2rt.py ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """The i2rt YAM bimanual pair with linear_4310 grippers, and its workcell.
3
+
4
+ A **second** YAM in this repo, on purpose. ``yam`` is the
5
+ robots_realtime arena model -- capsule-ish collision, ``*_finger`` joints with a
6
+ 0.0495 m travel, one finger driven and the other carried -- and the tape suite
7
+ is calibrated against it. The connector-insertion and cable-routing suites were
8
+ authored (in the original reference sims) against the **i2rt** model: per-link
9
+ mesh collision, ``joint7``/``joint8`` fingers with 0.0475 m travel behind
10
+ linear_4310 blade tips, each driven. Every measured constant those tasks stand
11
+ on -- the jaw-gap calibration, the blade thickness, the measured closing axis,
12
+ grip commands quoted to the tenth of a millimetre -- is a property of this
13
+ gripper, so retargeting them onto the arena model would re-author the benchmark
14
+ rather than port it. Both hands clamp like the real driver, about 50 N a jaw
15
+ (their specs' ``CLAMP``; ``assets/PROVENANCE.md``).
16
+
17
+ The MJCF is generated by a development-tree script, ``compose_yam_i2rt.py``
18
+ (not shipped; see ``assets/PROVENANCE.md``): both arms in one file, bases baked at the workcell
19
+ mounts, gravcomp and the Damiao actuator physics baked in, both fingers
20
+ actuated. The bases and the table height are the reference sims' workcell's --
21
+ the two workcells' surfaces differ (0.750 against the arena's 0.728); the two models are two
22
+ different workcells and their constants do not mix.
23
+
24
+ The jaw constants recorded here are facts about the gripper, measured (in
25
+ the reference sims) on the built model with probe bodies:
26
+
27
+ * Blade-tip gap in metres is ``2.0 * cmd`` -- at the 0.0475 command the tips
28
+ are 94 mm apart, at 0 they touch.
29
+ * The closing axis in the gripper frame is :data:`GRIP_CLOSE_MEASURED` --
30
+ essentially local ``-y``, fitted from the pad centres. The naive axis read
31
+ off the tip *body origins* is 84.5 degrees wrong, and the origins move
32
+ **apart** as the blades close, so never read ``|tip_left - tip_right|`` as a
33
+ gap.
34
+
35
+ What is deliberately *not* here is a command-for-gap formula. The free gap a
36
+ part sees depends on which geometry actually collides -- the full fingertip,
37
+ a trimmed blade, or a fitted box -- and the source sims measured a different
38
+ intercept for each. A task that derives grip commands calibrates against its
39
+ own collider at build time (the USB-C suite ports ``_calibrate_jaw_gap`` for
40
+ exactly this); a constant here would be the untrimmed number that measurably
41
+ mis-squeezes a trimmed jaw (16.5 degrees of grasp tilt, part thrown).
42
+ """
43
+
44
+ from __future__ import annotations
45
+
46
+ import numpy as np
47
+
48
+ from robosimstudio.specs import ArmSpec, AssetSpec, EmbodimentSpec
49
+
50
+ from ..grippers import linear_4310 as _hand_mod
51
+ from ..grippers.linear_4310 import LINEAR_4310 as _HAND
52
+ from ..registry import register_embodiment
53
+ from .yam_look import YAM_BLACK, split_yam_white_tubes
54
+
55
+ __all__ = [
56
+ "ACTIVE_BASE",
57
+ "ARM_HOME",
58
+ "GRASP_SITE_ROT",
59
+ "GRIP_CLOSE_MEASURED",
60
+ "GRIP_LOCAL_EXT",
61
+ "GRIP_OPEN",
62
+ "IDLE_BASE",
63
+ "JAW_GAP_OFFSET",
64
+ "JAW_GAP_PER_CMD",
65
+ "JAW_THICKNESS",
66
+ "TCP_OFFSET",
67
+ "YAM_I2RT",
68
+ "grasp_quat_measured",
69
+ "grasp_site_quat",
70
+ ]
71
+
72
+ ACTIVE_BASE = (0.2525, -0.31)
73
+ """Base xy of the task ("right") arm [m]."""
74
+ IDLE_BASE = (0.2525, 0.31)
75
+ """Base xy of the second ("left") arm [m]."""
76
+
77
+ ARM_HOME = (0.0, 1.4, 1.2, 0.0, 1.1, 0.0)
78
+ """Per-arm home posture [rad], the reference sims' own."""
79
+
80
+ # Every jaw constant below is a fact about the *gripper*, and now lives on it.
81
+ # Re-exported under the names this module owned first, because "the YAM's jaw
82
+ # gap" is what a reader comes here looking for and a moved constant that leaves
83
+ # no forwarding address is a worse answer than a one-line alias.
84
+ TCP_OFFSET = _HAND.tcp_offset
85
+ """Grasp site in the ``gripper`` body's frame [m]."""
86
+ GRASP_SITE_ROT = _HAND.tcp_offset_rot
87
+ """Rotation from the ``gripper`` body frame to the grasp frame, xyzw."""
88
+ GRIP_OPEN = _HAND.open_width
89
+ """Finger joint coordinate at full open [m]. Larger command = more open."""
90
+ JAW_GAP_PER_CMD = _hand_mod.JAW_GAP_PER_CMD
91
+ """Blade-tip gap per unit of finger command: ``tip_gap = 2.0 * cmd`` [m/m]."""
92
+ JAW_GAP_OFFSET = _hand_mod.JAW_GAP_OFFSET
93
+ """Blade *centroid* gap exceeds the tip gap by this much [m]."""
94
+ JAW_THICKNESS = _hand_mod.JAW_THICKNESS
95
+ """One blade's AABB extent along its slide direction [m]."""
96
+ GRIP_LOCAL_EXT = _hand_mod.GRIP_LOCAL_EXT
97
+ """Gripper-local extension axis: from the wrist towards the grasp point."""
98
+ GRIP_CLOSE_MEASURED = _hand_mod.GRIP_CLOSE_MEASURED
99
+ """Gripper-local blade-closing axis, fitted from the pad centres."""
100
+
101
+
102
+ def grasp_quat_measured(yaw_deg: float) -> np.ndarray:
103
+ """Top-down grasp orientation about the measured closing axis, xyzw.
104
+
105
+ ``yaw_deg`` is the world heading the jaws close along: 0 closes across
106
+ world +x. Maps the gripper's extension axis to world -z and the measured
107
+ closing axis (orthogonalised against extension) to the yaw heading --
108
+ the reference sims' ``grasp_quat_measured``, verbatim.
109
+ """
110
+ ext_l = GRIP_LOCAL_EXT / np.linalg.norm(GRIP_LOCAL_EXT)
111
+ close_l = GRIP_CLOSE_MEASURED - np.dot(GRIP_CLOSE_MEASURED, ext_l) * ext_l
112
+ close_l = close_l / np.linalg.norm(close_l)
113
+ third_l = np.cross(ext_l, close_l)
114
+ basis_local = np.column_stack([ext_l, close_l, third_l])
115
+
116
+ yaw = np.radians(float(yaw_deg))
117
+ ext_w = np.array([0.0, 0.0, -1.0])
118
+ close_w = np.array([np.cos(yaw), np.sin(yaw), 0.0])
119
+ third_w = np.cross(ext_w, close_w)
120
+ basis_world = np.column_stack([ext_w, close_w, third_w])
121
+
122
+ from robosimstudio.core.math import mat_to_quat
123
+
124
+ return mat_to_quat(basis_world @ basis_local.T)
125
+
126
+
127
+ def grasp_site_quat(yaw_deg: float) -> np.ndarray:
128
+ """:func:`grasp_quat_measured` restated in the grasp-*site* frame, xyzw.
129
+
130
+ :class:`~robosimstudio.solvers.ArmIK` expresses orientation targets in
131
+ the offset frame (``body_quat * ee_offset_rot``), so a routine handing it a
132
+ full pose composes the flip on. Same rotation, different frame convention.
133
+ """
134
+ from robosimstudio.core.math import quat_multiply
135
+
136
+ return quat_multiply(grasp_quat_measured(yaw_deg), GRASP_SITE_ROT)
137
+
138
+
139
+ def _arm(side: str) -> ArmSpec:
140
+ """One i2rt YAM arm, located by its explicit joint names.
141
+
142
+ Explicit names rather than a prefix + finger token: the arm joints are
143
+ ``joint1``..``joint6`` and the hand's are ``joint7``/``joint8``, and no
144
+ single substring separates them under one prefix. The hand itself is named
145
+ rather than described -- ``linear_4310`` templates ``{arm}`` into its own
146
+ joint and body names, so one entry serves both arms.
147
+ """
148
+ return ArmSpec(
149
+ name=side,
150
+ joint_names=tuple(f"{side}_joint{i}" for i in range(1, 7)),
151
+ gripper="linear_4310",
152
+ home_q=ARM_HOME,
153
+ )
154
+
155
+
156
+ YAM_I2RT = register_embodiment(
157
+ EmbodimentSpec(
158
+ name="yam_i2rt",
159
+ # The i2rt arm as a URDF, for the PyRoKi solver family; the solver checks
160
+ # it against the MJCF the scene steps at construction and refuses drift.
161
+ # Transcribed from that MJCF by the crate-washing task's embodiment script:
162
+ # the vendor's own yam.urdf lists joint6 first, PyRoKi maps the actuated
163
+ # joints in listing order, and it refused that file on both arms with
164
+ # 268.58 mm / 10.5 deg of drift -- so every yam_i2rt graph silently fell
165
+ # back to damped least squares.
166
+ urdf="embodiments/yam_i2rt/yam_i2rt_arm.urdf",
167
+ # Re-origined to the arm base; the mount is the binding's business.
168
+ asset=AssetSpec(path="embodiments/yam_i2rt/yam_i2rt_arms.xml"),
169
+ # Level with the work surface, 0.3475 m behind its centre. The 22 mm
170
+ # difference from yam's mount is the only thing separating the
171
+ # two cells, and stating it here is what lets either robot stand in
172
+ # either one.
173
+ base_offset=(-0.3475, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0),
174
+ collapse_fixed_joints=False,
175
+ # One stated colour, because this asset's own is not a choice. It is
176
+ # composed (by the development-tree compose_yam_i2rt.py) from per-link STLs, and the
177
+ # composition gives every geom a different arbitrary ``rgba`` -- purple
178
+ # base, brown link1, teal link2, olive, khaki, pink, dark green. That
179
+ # renders a harlequin and reads as a broken import rather than a robot.
180
+ # Matched to the ``black`` material the well-authored YAM MJCF uses, so
181
+ # the two arms look like the same product line.
182
+ color=YAM_BLACK,
183
+ # ...and then the two links that are not flat black get their white
184
+ # tube shells back. Flat is right for every link but those: on the real
185
+ # arm the upper-arm and forearm shells are white, and an arm without
186
+ # them does not read as a YAM. See yam_look -- they are welded inside
187
+ # the per-link mesh here, so they are cut out geometrically rather than
188
+ # named.
189
+ appearance=split_yam_white_tubes,
190
+ # gravcomp="1" is baked into the MJCF per body, so neither restate nor
191
+ # the named-body write is needed; the importer harvests it.
192
+ enable_self_collisions=False,
193
+ # The two arms collide with each other; each stays filtered against
194
+ # itself, so the blades still meet when the hand shuts on nothing.
195
+ cross_arm_collisions=True,
196
+ # The fingertips, and only the fingertips. ``tip_left`` is an open
197
+ # A-frame -- a pad plate on a triangular yoke -- and a hulled A-frame is
198
+ # a solid wedge: 3.13x the blade's volume, with an inner face standing
199
+ # ~13 mm proud of the pad. Left hulled, this hand grasps on geometry
200
+ # that is neither drawn nor where the rubber is; probed on polish/strip
201
+ # at a 35 N pick, all four pads read 13-14 mm CLEAR of the part while
202
+ # their hulls were 1.2-2.3 mm inside it. That is also the "jaw-gap
203
+ # derivation and the pad faces are not the same surface" discrepancy
204
+ # recorded on ``linear_4310`` -- the gap formula is fitted to the blade
205
+ # tips and the contact is on the hull, 13 mm inboard of them.
206
+ decompose_colliders=("tip_left", "tip_right"),
207
+ decompose_threshold=0.06,
208
+ # The composed MJCF has one dual-purpose geom per link (its collider
209
+ # IS its visual, colored per link); without this the importer files
210
+ # them all as collision-only and no renderer draws the robot.
211
+ show_collision_shapes=True,
212
+ arms=(_arm("right"), _arm("left")),
213
+ # The MJCF bakes the arm's gains, kp=300/kv=30: the reference sims',
214
+ # not the hardware's (i2rt's yam_v1.yml runs kp 80/80/80/10/10/10, kd
215
+ # 5/5/5/1.5/1.5/1.5); a task that wants the stiffer insertion servo
216
+ # overrides per task, not here. The hand's servo is the hand spec's
217
+ # (linear_4310.CLAMP, the real driver's 50 N a blade), the two blades
218
+ # tied by the joint7 == joint8 equality of i2rt's own linear_4310.xml.
219
+ arm_actuation=None,
220
+ gripper_actuation=None,
221
+ ik_iterations=8,
222
+ )
223
+ )
robots/archive/yam_i2rt/spec/yam_look.py ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """The real YAM's two-tone shell: black arm, white upper-arm and forearm tubes.
3
+
4
+ Ported from an earlier YAM simulation, whose numbers came out of a colour
5
+ derivation against photographs of the real arm -- and the derivation is the
6
+ reason this is a module rather than a colour constant.
7
+
8
+ The i2rt MJCF ships rainbow per-link ``rgba`` (purple base, tan link1, blue
9
+ link2, olive link3, pink link5, green gripper) left over from the CAD export.
10
+ Those are placeholder part colours, not the robot, which is why
11
+ :class:`~robosimstudio.specs.EmbodimentSpec` states one flat colour over the
12
+ lot -- :data:`YAM_BLACK`, the near-black the real arm's anodised parts read as
13
+ (it was the palette's ``ROBOT_DARK`` mid-grey, which a path tracer draws as
14
+ silver). Flat black is right for every link but three: on the real arm the
15
+ base and the upper-arm and forearm **tube shells** are white, and an arm
16
+ without them does not read as a YAM.
17
+
18
+ The tube cannot simply be a differently coloured geom, because i2rt welds one
19
+ mesh per link where the reference bimanual description
20
+ (``robots_realtime/.../yam_bimanual_scene.xml``, materials ``black`` at 0.30
21
+ and ``white`` at 0.90) has a per-part mesh set. So the tube is selected
22
+ *geometrically* inside the link mesh, in the mesh's own STL coordinates: a band
23
+ along the link's long z axis plus a radius about the tube axis, so the
24
+ forearm's side brackets stay black. Those five numbers per link were derived by
25
+ registering the reference part meshes onto the i2rt link meshes and labelling
26
+ every i2rt vertex by the reference part nearest it; the rule reproduces that
27
+ per-part labelling to within 0.3% (link2) and 1.0% (link3) of vertices.
28
+
29
+ Nothing here touches physics. The split adds two massless, non-colliding
30
+ visual shapes and hides the original's *rendering* only -- the original keeps
31
+ its collision geometry and its inertia.
32
+ """
33
+
34
+ from __future__ import annotations
35
+
36
+ import newton
37
+ import numpy as np
38
+
39
+ from robosimstudio.core.render.finish import GLOSS, SATIN, register_color_finish
40
+
41
+ __all__ = ["YAM_BLACK", "YAM_WHITE", "YAM_WHITE_LINKS", "YAM_WHITE_TUBES", "split_yam_white_tubes"]
42
+
43
+ YAM_WHITE: tuple[float, float, float] = (0.90, 0.90, 0.90)
44
+ """Material ``white`` in the reference scene: the two tube shells, and the base."""
45
+
46
+ YAM_BLACK: tuple[float, float, float] = (0.040, 0.040, 0.043)
47
+ """Everything else on the arm: anodised joints, the forearm, the printed fingers.
48
+
49
+ The reference clips read the arm's dark parts at 40-65 of 255 in sRGB, which
50
+ is an albedo near 0.04 -- black, not the ``ROBOT_DARK`` mid-grey (0.30) the
51
+ palette gives a converter-authored arm so that it is not crushed under the
52
+ tiled tracer. Under that tracer this renders around pixel 45, which is what a
53
+ black arm on a lit bench looks like, and under the path tracer it is the
54
+ black the clips show."""
55
+
56
+ register_color_finish(YAM_WHITE, GLOSS)
57
+ register_color_finish(YAM_BLACK, SATIN)
58
+
59
+ YAM_WHITE_LINKS: tuple[str, ...] = ("base_geom_0",)
60
+ """Geom-name suffixes painted white whole. The base is a white shell in every
61
+ frame of the reference clips, and it is one part, so it needs no split."""
62
+
63
+ YAM_WHITE_TUBES: dict[str, tuple[float, float, float, float, float]] = {
64
+ "link2_geom_0": (0.0580, 0.2461, 0.0745, 0.0478, 0.0385),
65
+ "link3_geom_0": (0.0856, 0.2545, 0.0119, 0.0481, 0.0448),
66
+ }
67
+ """Geom-name suffix -> ``(z_lo, z_hi, axis_x, axis_y, radius)`` [m, mesh-local].
68
+
69
+ Keyed by *suffix* rather than by the whole name: a bimanual MJCF prefixes its
70
+ geoms per side (``right_link2_geom_0``), and the tube is the same part on both
71
+ arms."""
72
+
73
+
74
+ def split_yam_white_tubes(builder: newton.ModelBuilder, shape_range: tuple[int, int]) -> int:
75
+ """Give the arm its white tubes, as visual-only shapes. Returns links split.
76
+
77
+ Called after the embodiment's flat colour has been applied, so it repaints
78
+ exactly the two links that are not flat black and leaves everything else as
79
+ the spec stated it.
80
+
81
+ A mesh that no longer spans what the derivation saw is skipped rather than
82
+ sliced at stale coordinates -- a re-exported or re-centred link would
83
+ otherwise get a white band across the wrong part of it. Returning 0 means
84
+ no link matched and the arm simply stays flat black, which is a degraded
85
+ look and never a broken model.
86
+
87
+ Args:
88
+ builder: The builder, pre-finalize.
89
+ shape_range: ``(start, end)`` shape indices this robot owns.
90
+
91
+ Returns:
92
+ How many links were split.
93
+ """
94
+ n_split = 0
95
+ for i in range(*shape_range):
96
+ tail = builder.shape_label[i].rsplit("/", 1)[-1]
97
+ if any(tail.endswith(k) for k in YAM_WHITE_LINKS):
98
+ builder.shape_color[i] = YAM_WHITE
99
+ continue
100
+ spec = next((v for k, v in YAM_WHITE_TUBES.items() if tail.endswith(k)), None)
101
+ if spec is None:
102
+ continue
103
+ source = builder.shape_source[i]
104
+ vertices = getattr(source, "vertices", None)
105
+ if vertices is None:
106
+ continue
107
+ v = np.asarray(vertices, dtype=np.float32).reshape(-1, 3)
108
+ f = np.asarray(source.indices, dtype=np.int32).reshape(-1, 3)
109
+ z_lo, z_hi, cx, cy, radius = spec
110
+ if not (v[:, 2].min() < z_lo - 0.02 and v[:, 2].max() > z_hi + 0.02):
111
+ continue
112
+ white_v = (v[:, 2] >= z_lo) & (v[:, 2] <= z_hi) & (np.hypot(v[:, 0] - cx, v[:, 1] - cy) <= radius)
113
+ white_f = white_v[f].all(axis=1)
114
+ if not white_f.any() or white_f.all():
115
+ continue
116
+ cfg = newton.ModelBuilder.ShapeConfig(density=0.0, has_shape_collision=False, has_particle_collision=False)
117
+ for faces, colour, suffix in ((f[white_f], YAM_WHITE, "_white"), (f[~white_f], YAM_BLACK, "_black")):
118
+ builder.add_shape_mesh(
119
+ body=int(builder.shape_body[i]),
120
+ xform=builder.shape_transform[i],
121
+ mesh=newton.Mesh(v, faces.reshape(-1), compute_inertia=False, is_solid=False),
122
+ cfg=cfg,
123
+ color=colour,
124
+ label=builder.shape_label[i] + suffix,
125
+ )
126
+ builder.shape_flags[i] = int(builder.shape_flags[i]) & ~int(newton.ShapeFlags.VISIBLE)
127
+ n_split += 1
128
+ return n_split
robots/archive/yam_i2rt/yam_i2rt_arm.urdf ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <robot name="yam_i2rt_arm">
3
+ <link name="base_link"/>
4
+ <link name="link_1"/>
5
+ <link name="link_2"/>
6
+ <link name="link_3"/>
7
+ <link name="link_4"/>
8
+ <link name="link_5"/>
9
+ <link name="link_6"/>
10
+ <joint name="joint1" type="revolute">
11
+ <origin xyz="0 0 0.067" rpy="0 0 -1.57080057"/>
12
+ <parent link="base_link"/>
13
+ <child link="link_1"/>
14
+ <axis xyz="0 0 1"/>
15
+ <limit effort="27" velocity="10" lower="-2.61799" upper="3.05433"/>
16
+ </joint>
17
+ <joint name="joint2" type="revolute">
18
+ <origin xyz="-0.0329 0.02 0.0455" rpy="1.57080033 8.00004507e-12 -1.57080033"/>
19
+ <parent link="link_1"/>
20
+ <child link="link_2"/>
21
+ <axis xyz="0 0 1"/>
22
+ <limit effort="27" velocity="10" lower="0" upper="3.65"/>
23
+ </joint>
24
+ <joint name="joint3" type="revolute">
25
+ <origin xyz="0.264 4.08431e-07 -0.06375" rpy="-3.14159 -1.38622447e-12 1.57080057"/>
26
+ <parent link="link_2"/>
27
+ <child link="link_3"/>
28
+ <axis xyz="0 0 1"/>
29
+ <limit effort="27" velocity="10" lower="0" upper="3.66519"/>
30
+ </joint>
31
+ <joint name="joint4" type="revolute">
32
+ <origin xyz="0.0600003 -0.244999 -0.00205" rpy="0 0 -3.14159"/>
33
+ <parent link="link_3"/>
34
+ <child link="link_4"/>
35
+ <axis xyz="0 0 1"/>
36
+ <limit effort="27" velocity="10" lower="-1.5708" upper="1.5708"/>
37
+ </joint>
38
+ <joint name="joint5" type="revolute">
39
+ <origin xyz="-0.0403003 0.0703851 -0.0323887" rpy="2.32679519e-06 -1.57079208 -3.14159233"/>
40
+ <parent link="link_4"/>
41
+ <child link="link_5"/>
42
+ <axis xyz="0 0 1"/>
43
+ <limit effort="27" velocity="10" lower="-1.5708" upper="1.5708"/>
44
+ </joint>
45
+ <joint name="joint6" type="revolute">
46
+ <origin xyz="2.39858e-07 -0.0419481 0.0404996" rpy="1.57079433 -1.57079233 3.14159065"/>
47
+ <parent link="link_5"/>
48
+ <child link="link_6"/>
49
+ <axis xyz="0 0 -1"/>
50
+ <limit effort="27" velocity="10" lower="-2.0944" upper="2.0944"/>
51
+ </joint>
52
+ </robot>
robots/archive/yam_i2rt/yam_i2rt_arms.xml ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <mujoco model="yam_i2rt_bimanual">
2
+ <compiler angle="radian" meshdir="assets" />
3
+ <asset>
4
+ <mesh name="base" file="base.stl" />
5
+ <mesh name="link1" file="link1.stl" />
6
+ <mesh name="link2" file="link2.stl" />
7
+ <mesh name="link3" file="link3.stl" />
8
+ <mesh name="link4" file="link4.stl" />
9
+ <mesh name="link5" file="link5.stl" />
10
+ <mesh name="gripper" file="gripper.stl" />
11
+ <mesh name="tip_left" file="tip_left.stl" />
12
+ <mesh name="tip_right" file="tip_right.stl" />
13
+ </asset>
14
+ <worldbody>
15
+ <body name="right_base" gravcomp="1" pos="0 -0.31 0">
16
+ <geom pos="-0.0374966 -0.0464005 0.187501" quat="0.707105 0 0.707108 0" type="mesh" rgba="0.317647 0.121569 0.498039 1" mesh="base" />
17
+ <body name="right_link1" pos="0 0 0.067" quat="0.707105 0 0 -0.707108" gravcomp="1">
18
+ <inertial pos="-0.00261782 0.00744082 0.0237251" quat="0.602276 0.365837 0.642523 0.300984" mass="0.104154" diaginertia="0.000139023 0.000109628 4.8478e-05" />
19
+ <joint name="right_joint1" pos="0 0 0" axis="0 0 1" range="-2.61799 3.05433" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
20
+ <geom pos="-0.0464 0.0374968 0.119501" quat="0.499998 0.5 0.5 -0.500002" type="mesh" rgba="0.72549 0.45098 0.317647 1" mesh="link1" />
21
+ <body name="right_link2" pos="-0.0329 0.02 0.0455" quat="0.499998 0.5 -0.500002 -0.5" gravcomp="1">
22
+ <inertial pos="0.129165 0.000134495 -0.0321253" quat="0.499976 0.500008 0.500105 0.499911" mass="1.46908" diaginertia="0.0146686 0.014599 0.000800089" />
23
+ <joint name="right_joint2" pos="0 0 0" axis="0 0 1" range="0 3.65" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
24
+ <geom pos="-0.0174977 -0.0740001 -0.07925" quat="0.499998 0.5 0.500002 0.5" type="mesh" rgba="0 0.4 0.6 1" mesh="link2" />
25
+ <body name="right_link3" pos="0.264 4.08431e-07 -0.06375" quat="9.38184e-07 -0.707105 -0.707108 9.38187e-07" gravcomp="1">
26
+ <inertial pos="0.0556042 -0.135083 -0.0340514" quat="0.704407 0.697077 0.121918 -0.0550519" mass="0.982553" diaginertia="0.00765198 0.0076296 0.000876442" />
27
+ <joint name="right_joint3" pos="0 0 0" axis="0 0 1" range="0 3.66519" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
28
+ <geom pos="0.0740003 -0.281499 -0.0813" quat="9.38184e-07 9.38187e-07 -0.707108 -0.707105" type="mesh" rgba="0.552941 0.580392 0.203922 1" mesh="link3" />
29
+ <body name="right_link4" pos="0.0600003 -0.244999 -0.00205" quat="1.32679e-06 0 0 -1" gravcomp="1">
30
+ <inertial pos="-0.0543529 0.057068 -0.0332231" quat="0.636075 0.627088 0.370444 0.254833" mass="0.46678" diaginertia="0.000817855 0.000791274 0.000295776" />
31
+ <joint name="right_joint4" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
32
+ <geom pos="-0.0138003 0.0364989 -0.0787882" quat="0.707105 0.707108 0 0" type="mesh" rgba="0.545098 0.52549 0.419608 1" mesh="link4" />
33
+ <body name="right_link5" pos="-0.0403003 0.0703851 -0.0323887" quat="9.38184e-07 -0.707105 -9.38187e-07 -0.707108" gravcomp="1">
34
+ <inertial pos="-3.55003e-05 -0.00717397 0.0375847" quat="0.911516 0.411243 -0.00302177 -0.00303654" mass="0.403307" diaginertia="0.000219794 0.000195686 0.000169647" />
35
+ <joint name="right_joint5" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
36
+ <geom pos="-0.0463995 0.0311519 0.0265" quat="0.499998 -0.5 -0.5 -0.500002" type="mesh" rgba="0.827451 0.623529 0.784314 1" mesh="link5" />
37
+ <body name="right_link6" pos="2.39858e-07 -0.0419481 0.0404996" quat="0.499998 -0.5 -0.5 -0.500002" gravcomp="1">
38
+ <inertial pos="0 0 0" mass="1e-6" diaginertia="1e-9 1e-9 1e-9" />
39
+ <joint name="right_joint6" pos="0 0 0" axis="0 0 -1" range="-2.0944 2.0944" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
40
+ <body name="right_gripper" pos="0 0 0" quat="1 0 0 0" gravcomp="1">
41
+ <inertial pos="-3.57066e-05 0.000249371 -0.0293133" quat="0.667981 0.744113 -0.00433092 0.00882801" mass="0.553219" diaginertia="0.000409686 0.000369758 0.000324415" />
42
+ <geom pos="-0.014 -0.0463995 0.0731" quat="1 0 0 0" type="mesh" rgba="0.109804 0.286275 0.0117647 1" mesh="gripper" contype="0" conaffinity="0" />
43
+ <site name="right_tcp_site" pos="0 0 0" quat="0 1 0 0" size="0.005" rgba="1 0 0 1" />
44
+ <site name="right_grasp_site" pos="0 0 -0.1347" quat="0 1 0 0" size="0.005" rgba="0 1 0 1" />
45
+ <body name="right_tip_left" pos="-0.0238981 0.0450619 -0.0545599" quat="0.499998 -0.5 -0.5 -0.500002" gravcomp="1">
46
+ <inertial pos="-0.0224716 0.0143408 -0.0426253" quat="0.498899 0.455348 -0.0576406 0.735143" mass="0.0710042" diaginertia="6.24193e-05 6.01079e-05 2.83591e-05" />
47
+ <joint name="right_joint7" pos="0 0 0" type="slide" axis="0 0 -1" range="0 0.0475" armature="0.05" damping="2" frictionloss="0.5" actuatorfrcrange="-50 50" />
48
+ <geom pos="0.129783 0.00999321 -0.0914614" quat="0.499998 0.5 0.500002 0.5" type="mesh" rgba="0.596078 0.788235 0.921569 1" mesh="tip_left" />
49
+ </body>
50
+ <body name="right_tip_right" pos="0.0238981 -0.0450619 -0.0545599" quat="0.707105 0.707108 0 0" gravcomp="1">
51
+ <inertial pos="-0.0143408 -0.0224716 -0.0426253" quat="0.281222 0.8726 0.16705 -0.362738" mass="0.0710042" diaginertia="6.24193e-05 6.01079e-05 2.83591e-05" />
52
+ <joint name="right_joint8" pos="0 0 0" type="slide" axis="0 0 -1" range="0 0.0475" armature="0.05" damping="2" frictionloss="0.5" actuatorfrcrange="-50 50" />
53
+ <geom pos="-0.0379932 0.129783 0.00133753" quat="0.707105 -0.707108 0 0" type="mesh" rgba="0.596078 0.788235 0.921569 1" mesh="tip_right" />
54
+ </body>
55
+ </body>
56
+ </body>
57
+ </body>
58
+ </body>
59
+ </body>
60
+ </body>
61
+ </body>
62
+ </body>
63
+ <body name="left_base" gravcomp="1" pos="0 0.31 0">
64
+ <geom pos="-0.0374966 -0.0464005 0.187501" quat="0.707105 0 0.707108 0" type="mesh" rgba="0.317647 0.121569 0.498039 1" mesh="base" />
65
+ <body name="left_link1" pos="0 0 0.067" quat="0.707105 0 0 -0.707108" gravcomp="1">
66
+ <inertial pos="-0.00261782 0.00744082 0.0237251" quat="0.602276 0.365837 0.642523 0.300984" mass="0.104154" diaginertia="0.000139023 0.000109628 4.8478e-05" />
67
+ <joint name="left_joint1" pos="0 0 0" axis="0 0 1" range="-2.61799 3.05433" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
68
+ <geom pos="-0.0464 0.0374968 0.119501" quat="0.499998 0.5 0.5 -0.500002" type="mesh" rgba="0.72549 0.45098 0.317647 1" mesh="link1" />
69
+ <body name="left_link2" pos="-0.0329 0.02 0.0455" quat="0.499998 0.5 -0.500002 -0.5" gravcomp="1">
70
+ <inertial pos="0.129165 0.000134495 -0.0321253" quat="0.499976 0.500008 0.500105 0.499911" mass="1.46908" diaginertia="0.0146686 0.014599 0.000800089" />
71
+ <joint name="left_joint2" pos="0 0 0" axis="0 0 1" range="0 3.65" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
72
+ <geom pos="-0.0174977 -0.0740001 -0.07925" quat="0.499998 0.5 0.500002 0.5" type="mesh" rgba="0 0.4 0.6 1" mesh="link2" />
73
+ <body name="left_link3" pos="0.264 4.08431e-07 -0.06375" quat="9.38184e-07 -0.707105 -0.707108 9.38187e-07" gravcomp="1">
74
+ <inertial pos="0.0556042 -0.135083 -0.0340514" quat="0.704407 0.697077 0.121918 -0.0550519" mass="0.982553" diaginertia="0.00765198 0.0076296 0.000876442" />
75
+ <joint name="left_joint3" pos="0 0 0" axis="0 0 1" range="0 3.66519" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
76
+ <geom pos="0.0740003 -0.281499 -0.0813" quat="9.38184e-07 9.38187e-07 -0.707108 -0.707105" type="mesh" rgba="0.552941 0.580392 0.203922 1" mesh="link3" />
77
+ <body name="left_link4" pos="0.0600003 -0.244999 -0.00205" quat="1.32679e-06 0 0 -1" gravcomp="1">
78
+ <inertial pos="-0.0543529 0.057068 -0.0332231" quat="0.636075 0.627088 0.370444 0.254833" mass="0.46678" diaginertia="0.000817855 0.000791274 0.000295776" />
79
+ <joint name="left_joint4" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
80
+ <geom pos="-0.0138003 0.0364989 -0.0787882" quat="0.707105 0.707108 0 0" type="mesh" rgba="0.545098 0.52549 0.419608 1" mesh="link4" />
81
+ <body name="left_link5" pos="-0.0403003 0.0703851 -0.0323887" quat="9.38184e-07 -0.707105 -9.38187e-07 -0.707108" gravcomp="1">
82
+ <inertial pos="-3.55003e-05 -0.00717397 0.0375847" quat="0.911516 0.411243 -0.00302177 -0.00303654" mass="0.403307" diaginertia="0.000219794 0.000195686 0.000169647" />
83
+ <joint name="left_joint5" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
84
+ <geom pos="-0.0463995 0.0311519 0.0265" quat="0.499998 -0.5 -0.5 -0.500002" type="mesh" rgba="0.827451 0.623529 0.784314 1" mesh="link5" />
85
+ <body name="left_link6" pos="2.39858e-07 -0.0419481 0.0404996" quat="0.499998 -0.5 -0.5 -0.500002" gravcomp="1">
86
+ <inertial pos="0 0 0" mass="1e-6" diaginertia="1e-9 1e-9 1e-9" />
87
+ <joint name="left_joint6" pos="0 0 0" axis="0 0 -1" range="-2.0944 2.0944" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
88
+ <body name="left_gripper" pos="0 0 0" quat="1 0 0 0" gravcomp="1">
89
+ <inertial pos="-3.57066e-05 0.000249371 -0.0293133" quat="0.667981 0.744113 -0.00433092 0.00882801" mass="0.553219" diaginertia="0.000409686 0.000369758 0.000324415" />
90
+ <geom pos="-0.014 -0.0463995 0.0731" quat="1 0 0 0" type="mesh" rgba="0.109804 0.286275 0.0117647 1" mesh="gripper" contype="0" conaffinity="0" />
91
+ <site name="left_tcp_site" pos="0 0 0" quat="0 1 0 0" size="0.005" rgba="1 0 0 1" />
92
+ <site name="left_grasp_site" pos="0 0 -0.1347" quat="0 1 0 0" size="0.005" rgba="0 1 0 1" />
93
+ <body name="left_tip_left" pos="-0.0238981 0.0450619 -0.0545599" quat="0.499998 -0.5 -0.5 -0.500002" gravcomp="1">
94
+ <inertial pos="-0.0224716 0.0143408 -0.0426253" quat="0.498899 0.455348 -0.0576406 0.735143" mass="0.0710042" diaginertia="6.24193e-05 6.01079e-05 2.83591e-05" />
95
+ <joint name="left_joint7" pos="0 0 0" type="slide" axis="0 0 -1" range="0 0.0475" armature="0.05" damping="2" frictionloss="0.5" actuatorfrcrange="-50 50" />
96
+ <geom pos="0.129783 0.00999321 -0.0914614" quat="0.499998 0.5 0.500002 0.5" type="mesh" rgba="0.596078 0.788235 0.921569 1" mesh="tip_left" />
97
+ </body>
98
+ <body name="left_tip_right" pos="0.0238981 -0.0450619 -0.0545599" quat="0.707105 0.707108 0 0" gravcomp="1">
99
+ <inertial pos="-0.0143408 -0.0224716 -0.0426253" quat="0.281222 0.8726 0.16705 -0.362738" mass="0.0710042" diaginertia="6.24193e-05 6.01079e-05 2.83591e-05" />
100
+ <joint name="left_joint8" pos="0 0 0" type="slide" axis="0 0 -1" range="0 0.0475" armature="0.05" damping="2" frictionloss="0.5" actuatorfrcrange="-50 50" />
101
+ <geom pos="-0.0379932 0.129783 0.00133753" quat="0.707105 -0.707108 0 0" type="mesh" rgba="0.596078 0.788235 0.921569 1" mesh="tip_right" />
102
+ </body>
103
+ </body>
104
+ </body>
105
+ </body>
106
+ </body>
107
+ </body>
108
+ </body>
109
+ </body>
110
+ </body>
111
+ </worldbody>
112
+ <contact>
113
+ <exclude body1="right_gripper" body2="right_tip_left" />
114
+ <exclude body1="right_gripper" body2="right_tip_right" />
115
+ <exclude body1="right_tip_left" body2="right_tip_right" />
116
+ <exclude body1="left_gripper" body2="left_tip_left" />
117
+ <exclude body1="left_gripper" body2="left_tip_right" />
118
+ <exclude body1="left_tip_left" body2="left_tip_right" />
119
+ </contact>
120
+ <equality>
121
+ <joint joint1="right_joint7" joint2="right_joint8" polycoef="0 1 0 0 0" solref="0.004 1" solimp="0.95 0.99 0.001" />
122
+ <joint joint1="left_joint7" joint2="left_joint8" polycoef="0 1 0 0 0" solref="0.004 1" solimp="0.95 0.99 0.001" />
123
+ </equality>
124
+ <actuator>
125
+ <position name="act_right_joint1" joint="right_joint1" kp="300" kv="30" forcerange="-27 27" />
126
+ <position name="act_right_joint2" joint="right_joint2" kp="300" kv="30" forcerange="-27 27" />
127
+ <position name="act_right_joint3" joint="right_joint3" kp="300" kv="30" forcerange="-27 27" />
128
+ <position name="act_right_joint4" joint="right_joint4" kp="300" kv="30" forcerange="-10 10" />
129
+ <position name="act_right_joint5" joint="right_joint5" kp="300" kv="30" forcerange="-10 10" />
130
+ <position name="act_right_joint6" joint="right_joint6" kp="300" kv="30" forcerange="-10 10" />
131
+ <position name="act_right_joint7" joint="right_joint7" kp="600" kv="20" ctrlrange="0 0.0475" forcerange="-50 50" />
132
+ <position name="act_right_joint8" joint="right_joint8" kp="600" kv="20" ctrlrange="0 0.0475" forcerange="-50 50" />
133
+ <position name="act_left_joint1" joint="left_joint1" kp="300" kv="30" forcerange="-27 27" />
134
+ <position name="act_left_joint2" joint="left_joint2" kp="300" kv="30" forcerange="-27 27" />
135
+ <position name="act_left_joint3" joint="left_joint3" kp="300" kv="30" forcerange="-27 27" />
136
+ <position name="act_left_joint4" joint="left_joint4" kp="300" kv="30" forcerange="-10 10" />
137
+ <position name="act_left_joint5" joint="left_joint5" kp="300" kv="30" forcerange="-10 10" />
138
+ <position name="act_left_joint6" joint="left_joint6" kp="300" kv="30" forcerange="-10 10" />
139
+ <position name="act_left_joint7" joint="left_joint7" kp="600" kv="20" ctrlrange="0 0.0475" forcerange="-50 50" />
140
+ <position name="act_left_joint8" joint="left_joint8" kp="600" kv="20" ctrlrange="0 0.0475" forcerange="-50 50" />
141
+ </actuator>
142
+ </mujoco>
robots/archive/yam_i2rt/yam_i2rt_bimanual.xml ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <mujoco model="yam_i2rt_bimanual">
2
+ <compiler angle="radian" meshdir="assets" />
3
+ <asset>
4
+ <mesh name="base" file="base.stl" />
5
+ <mesh name="link1" file="link1.stl" />
6
+ <mesh name="link2" file="link2.stl" />
7
+ <mesh name="link3" file="link3.stl" />
8
+ <mesh name="link4" file="link4.stl" />
9
+ <mesh name="link5" file="link5.stl" />
10
+ <mesh name="gripper" file="gripper.stl" />
11
+ <mesh name="tip_left" file="tip_left.stl" />
12
+ <mesh name="tip_right" file="tip_right.stl" />
13
+ </asset>
14
+ <worldbody>
15
+ <body name="right_base" gravcomp="1" pos="0.2525 -0.31 0.75">
16
+ <geom pos="-0.0374966 -0.0464005 0.187501" quat="0.707105 0 0.707108 0" type="mesh" rgba="0.317647 0.121569 0.498039 1" mesh="base" />
17
+ <body name="right_link1" pos="0 0 0.067" quat="0.707105 0 0 -0.707108" gravcomp="1">
18
+ <inertial pos="-0.00261782 0.00744082 0.0237251" quat="0.602276 0.365837 0.642523 0.300984" mass="0.104154" diaginertia="0.000139023 0.000109628 4.8478e-05" />
19
+ <joint name="right_joint1" pos="0 0 0" axis="0 0 1" range="-2.61799 3.05433" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
20
+ <geom pos="-0.0464 0.0374968 0.119501" quat="0.499998 0.5 0.5 -0.500002" type="mesh" rgba="0.72549 0.45098 0.317647 1" mesh="link1" />
21
+ <body name="right_link2" pos="-0.0329 0.02 0.0455" quat="0.499998 0.5 -0.500002 -0.5" gravcomp="1">
22
+ <inertial pos="0.129165 0.000134495 -0.0321253" quat="0.499976 0.500008 0.500105 0.499911" mass="1.46908" diaginertia="0.0146686 0.014599 0.000800089" />
23
+ <joint name="right_joint2" pos="0 0 0" axis="0 0 1" range="0 3.65" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
24
+ <geom pos="-0.0174977 -0.0740001 -0.07925" quat="0.499998 0.5 0.500002 0.5" type="mesh" rgba="0 0.4 0.6 1" mesh="link2" />
25
+ <body name="right_link3" pos="0.264 4.08431e-07 -0.06375" quat="9.38184e-07 -0.707105 -0.707108 9.38187e-07" gravcomp="1">
26
+ <inertial pos="0.0556042 -0.135083 -0.0340514" quat="0.704407 0.697077 0.121918 -0.0550519" mass="0.982553" diaginertia="0.00765198 0.0076296 0.000876442" />
27
+ <joint name="right_joint3" pos="0 0 0" axis="0 0 1" range="0 3.66519" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
28
+ <geom pos="0.0740003 -0.281499 -0.0813" quat="9.38184e-07 9.38187e-07 -0.707108 -0.707105" type="mesh" rgba="0.552941 0.580392 0.203922 1" mesh="link3" />
29
+ <body name="right_link4" pos="0.0600003 -0.244999 -0.00205" quat="1.32679e-06 0 0 -1" gravcomp="1">
30
+ <inertial pos="-0.0543529 0.057068 -0.0332231" quat="0.636075 0.627088 0.370444 0.254833" mass="0.46678" diaginertia="0.000817855 0.000791274 0.000295776" />
31
+ <joint name="right_joint4" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
32
+ <geom pos="-0.0138003 0.0364989 -0.0787882" quat="0.707105 0.707108 0 0" type="mesh" rgba="0.545098 0.52549 0.419608 1" mesh="link4" />
33
+ <body name="right_link5" pos="-0.0403003 0.0703851 -0.0323887" quat="9.38184e-07 -0.707105 -9.38187e-07 -0.707108" gravcomp="1">
34
+ <inertial pos="-3.55003e-05 -0.00717397 0.0375847" quat="0.911516 0.411243 -0.00302177 -0.00303654" mass="0.403307" diaginertia="0.000219794 0.000195686 0.000169647" />
35
+ <joint name="right_joint5" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
36
+ <geom pos="-0.0463995 0.0311519 0.0265" quat="0.499998 -0.5 -0.5 -0.500002" type="mesh" rgba="0.827451 0.623529 0.784314 1" mesh="link5" />
37
+ <body name="right_link6" pos="2.39858e-07 -0.0419481 0.0404996" quat="0.499998 -0.5 -0.5 -0.500002" gravcomp="1">
38
+ <inertial pos="0 0 0" mass="1e-6" diaginertia="1e-9 1e-9 1e-9" />
39
+ <joint name="right_joint6" pos="0 0 0" axis="0 0 -1" range="-2.0944 2.0944" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
40
+ <body name="right_gripper" pos="0 0 0" quat="1 0 0 0" gravcomp="1">
41
+ <inertial pos="-3.57066e-05 0.000249371 -0.0293133" quat="0.667981 0.744113 -0.00433092 0.00882801" mass="0.553219" diaginertia="0.000409686 0.000369758 0.000324415" />
42
+ <geom pos="-0.014 -0.0463995 0.0731" quat="1 0 0 0" type="mesh" rgba="0.109804 0.286275 0.0117647 1" mesh="gripper" contype="0" conaffinity="0" />
43
+ <site name="right_tcp_site" pos="0 0 0" quat="0 1 0 0" size="0.005" rgba="1 0 0 1" />
44
+ <site name="right_grasp_site" pos="0 0 -0.1347" quat="0 1 0 0" size="0.005" rgba="0 1 0 1" />
45
+ <body name="right_tip_left" pos="-0.0238981 0.0450619 -0.0545599" quat="0.499998 -0.5 -0.5 -0.500002" gravcomp="1">
46
+ <inertial pos="-0.0224716 0.0143408 -0.0426253" quat="0.498899 0.455348 -0.0576406 0.735143" mass="0.0710042" diaginertia="6.24193e-05 6.01079e-05 2.83591e-05" />
47
+ <joint name="right_joint7" pos="0 0 0" type="slide" axis="0 0 -1" range="0 0.0475" armature="0.05" damping="2" frictionloss="0.5" actuatorfrcrange="-50 50" />
48
+ <geom pos="0.129783 0.00999321 -0.0914614" quat="0.499998 0.5 0.500002 0.5" type="mesh" rgba="0.596078 0.788235 0.921569 1" mesh="tip_left" />
49
+ </body>
50
+ <body name="right_tip_right" pos="0.0238981 -0.0450619 -0.0545599" quat="0.707105 0.707108 0 0" gravcomp="1">
51
+ <inertial pos="-0.0143408 -0.0224716 -0.0426253" quat="0.281222 0.8726 0.16705 -0.362738" mass="0.0710042" diaginertia="6.24193e-05 6.01079e-05 2.83591e-05" />
52
+ <joint name="right_joint8" pos="0 0 0" type="slide" axis="0 0 -1" range="0 0.0475" armature="0.05" damping="2" frictionloss="0.5" actuatorfrcrange="-50 50" />
53
+ <geom pos="-0.0379932 0.129783 0.00133753" quat="0.707105 -0.707108 0 0" type="mesh" rgba="0.596078 0.788235 0.921569 1" mesh="tip_right" />
54
+ </body>
55
+ </body>
56
+ </body>
57
+ </body>
58
+ </body>
59
+ </body>
60
+ </body>
61
+ </body>
62
+ </body>
63
+ <body name="left_base" gravcomp="1" pos="0.2525 0.31 0.75">
64
+ <geom pos="-0.0374966 -0.0464005 0.187501" quat="0.707105 0 0.707108 0" type="mesh" rgba="0.317647 0.121569 0.498039 1" mesh="base" />
65
+ <body name="left_link1" pos="0 0 0.067" quat="0.707105 0 0 -0.707108" gravcomp="1">
66
+ <inertial pos="-0.00261782 0.00744082 0.0237251" quat="0.602276 0.365837 0.642523 0.300984" mass="0.104154" diaginertia="0.000139023 0.000109628 4.8478e-05" />
67
+ <joint name="left_joint1" pos="0 0 0" axis="0 0 1" range="-2.61799 3.05433" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
68
+ <geom pos="-0.0464 0.0374968 0.119501" quat="0.499998 0.5 0.5 -0.500002" type="mesh" rgba="0.72549 0.45098 0.317647 1" mesh="link1" />
69
+ <body name="left_link2" pos="-0.0329 0.02 0.0455" quat="0.499998 0.5 -0.500002 -0.5" gravcomp="1">
70
+ <inertial pos="0.129165 0.000134495 -0.0321253" quat="0.499976 0.500008 0.500105 0.499911" mass="1.46908" diaginertia="0.0146686 0.014599 0.000800089" />
71
+ <joint name="left_joint2" pos="0 0 0" axis="0 0 1" range="0 3.65" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
72
+ <geom pos="-0.0174977 -0.0740001 -0.07925" quat="0.499998 0.5 0.500002 0.5" type="mesh" rgba="0 0.4 0.6 1" mesh="link2" />
73
+ <body name="left_link3" pos="0.264 4.08431e-07 -0.06375" quat="9.38184e-07 -0.707105 -0.707108 9.38187e-07" gravcomp="1">
74
+ <inertial pos="0.0556042 -0.135083 -0.0340514" quat="0.704407 0.697077 0.121918 -0.0550519" mass="0.982553" diaginertia="0.00765198 0.0076296 0.000876442" />
75
+ <joint name="left_joint3" pos="0 0 0" axis="0 0 1" range="0 3.66519" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
76
+ <geom pos="0.0740003 -0.281499 -0.0813" quat="9.38184e-07 9.38187e-07 -0.707108 -0.707105" type="mesh" rgba="0.552941 0.580392 0.203922 1" mesh="link3" />
77
+ <body name="left_link4" pos="0.0600003 -0.244999 -0.00205" quat="1.32679e-06 0 0 -1" gravcomp="1">
78
+ <inertial pos="-0.0543529 0.057068 -0.0332231" quat="0.636075 0.627088 0.370444 0.254833" mass="0.46678" diaginertia="0.000817855 0.000791274 0.000295776" />
79
+ <joint name="left_joint4" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
80
+ <geom pos="-0.0138003 0.0364989 -0.0787882" quat="0.707105 0.707108 0 0" type="mesh" rgba="0.545098 0.52549 0.419608 1" mesh="link4" />
81
+ <body name="left_link5" pos="-0.0403003 0.0703851 -0.0323887" quat="9.38184e-07 -0.707105 -9.38187e-07 -0.707108" gravcomp="1">
82
+ <inertial pos="-3.55003e-05 -0.00717397 0.0375847" quat="0.911516 0.411243 -0.00302177 -0.00303654" mass="0.403307" diaginertia="0.000219794 0.000195686 0.000169647" />
83
+ <joint name="left_joint5" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
84
+ <geom pos="-0.0463995 0.0311519 0.0265" quat="0.499998 -0.5 -0.5 -0.500002" type="mesh" rgba="0.827451 0.623529 0.784314 1" mesh="link5" />
85
+ <body name="left_link6" pos="2.39858e-07 -0.0419481 0.0404996" quat="0.499998 -0.5 -0.5 -0.500002" gravcomp="1">
86
+ <inertial pos="0 0 0" mass="1e-6" diaginertia="1e-9 1e-9 1e-9" />
87
+ <joint name="left_joint6" pos="0 0 0" axis="0 0 -1" range="-2.0944 2.0944" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
88
+ <body name="left_gripper" pos="0 0 0" quat="1 0 0 0" gravcomp="1">
89
+ <inertial pos="-3.57066e-05 0.000249371 -0.0293133" quat="0.667981 0.744113 -0.00433092 0.00882801" mass="0.553219" diaginertia="0.000409686 0.000369758 0.000324415" />
90
+ <geom pos="-0.014 -0.0463995 0.0731" quat="1 0 0 0" type="mesh" rgba="0.109804 0.286275 0.0117647 1" mesh="gripper" contype="0" conaffinity="0" />
91
+ <site name="left_tcp_site" pos="0 0 0" quat="0 1 0 0" size="0.005" rgba="1 0 0 1" />
92
+ <site name="left_grasp_site" pos="0 0 -0.1347" quat="0 1 0 0" size="0.005" rgba="0 1 0 1" />
93
+ <body name="left_tip_left" pos="-0.0238981 0.0450619 -0.0545599" quat="0.499998 -0.5 -0.5 -0.500002" gravcomp="1">
94
+ <inertial pos="-0.0224716 0.0143408 -0.0426253" quat="0.498899 0.455348 -0.0576406 0.735143" mass="0.0710042" diaginertia="6.24193e-05 6.01079e-05 2.83591e-05" />
95
+ <joint name="left_joint7" pos="0 0 0" type="slide" axis="0 0 -1" range="0 0.0475" armature="0.05" damping="2" frictionloss="0.5" actuatorfrcrange="-50 50" />
96
+ <geom pos="0.129783 0.00999321 -0.0914614" quat="0.499998 0.5 0.500002 0.5" type="mesh" rgba="0.596078 0.788235 0.921569 1" mesh="tip_left" />
97
+ </body>
98
+ <body name="left_tip_right" pos="0.0238981 -0.0450619 -0.0545599" quat="0.707105 0.707108 0 0" gravcomp="1">
99
+ <inertial pos="-0.0143408 -0.0224716 -0.0426253" quat="0.281222 0.8726 0.16705 -0.362738" mass="0.0710042" diaginertia="6.24193e-05 6.01079e-05 2.83591e-05" />
100
+ <joint name="left_joint8" pos="0 0 0" type="slide" axis="0 0 -1" range="0 0.0475" armature="0.05" damping="2" frictionloss="0.5" actuatorfrcrange="-50 50" />
101
+ <geom pos="-0.0379932 0.129783 0.00133753" quat="0.707105 -0.707108 0 0" type="mesh" rgba="0.596078 0.788235 0.921569 1" mesh="tip_right" />
102
+ </body>
103
+ </body>
104
+ </body>
105
+ </body>
106
+ </body>
107
+ </body>
108
+ </body>
109
+ </body>
110
+ </body>
111
+ </worldbody>
112
+ <contact>
113
+ <exclude body1="right_gripper" body2="right_tip_left" />
114
+ <exclude body1="right_gripper" body2="right_tip_right" />
115
+ <exclude body1="right_tip_left" body2="right_tip_right" />
116
+ <exclude body1="left_gripper" body2="left_tip_left" />
117
+ <exclude body1="left_gripper" body2="left_tip_right" />
118
+ <exclude body1="left_tip_left" body2="left_tip_right" />
119
+ </contact>
120
+ <equality>
121
+ <joint joint1="right_joint7" joint2="right_joint8" polycoef="0 1 0 0 0" solref="0.004 1" solimp="0.95 0.99 0.001" />
122
+ <joint joint1="left_joint7" joint2="left_joint8" polycoef="0 1 0 0 0" solref="0.004 1" solimp="0.95 0.99 0.001" />
123
+ </equality>
124
+ <actuator>
125
+ <position name="act_right_joint1" joint="right_joint1" kp="300" kv="30" forcerange="-27 27" />
126
+ <position name="act_right_joint2" joint="right_joint2" kp="300" kv="30" forcerange="-27 27" />
127
+ <position name="act_right_joint3" joint="right_joint3" kp="300" kv="30" forcerange="-27 27" />
128
+ <position name="act_right_joint4" joint="right_joint4" kp="300" kv="30" forcerange="-10 10" />
129
+ <position name="act_right_joint5" joint="right_joint5" kp="300" kv="30" forcerange="-10 10" />
130
+ <position name="act_right_joint6" joint="right_joint6" kp="300" kv="30" forcerange="-10 10" />
131
+ <position name="act_right_joint7" joint="right_joint7" kp="600" kv="20" ctrlrange="0 0.0475" forcerange="-50 50" />
132
+ <position name="act_right_joint8" joint="right_joint8" kp="600" kv="20" ctrlrange="0 0.0475" forcerange="-50 50" />
133
+ <position name="act_left_joint1" joint="left_joint1" kp="300" kv="30" forcerange="-27 27" />
134
+ <position name="act_left_joint2" joint="left_joint2" kp="300" kv="30" forcerange="-27 27" />
135
+ <position name="act_left_joint3" joint="left_joint3" kp="300" kv="30" forcerange="-27 27" />
136
+ <position name="act_left_joint4" joint="left_joint4" kp="300" kv="30" forcerange="-10 10" />
137
+ <position name="act_left_joint5" joint="left_joint5" kp="300" kv="30" forcerange="-10 10" />
138
+ <position name="act_left_joint6" joint="left_joint6" kp="300" kv="30" forcerange="-10 10" />
139
+ <position name="act_left_joint7" joint="left_joint7" kp="600" kv="20" ctrlrange="0 0.0475" forcerange="-50 50" />
140
+ <position name="act_left_joint8" joint="left_joint8" kp="600" kv="20" ctrlrange="0 0.0475" forcerange="-50 50" />
141
+ </actuator>
142
+ </mujoco>
robots/archive/yam_i2rt_arena/LICENSE ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) I2RT Robotics
4
+
5
+ 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:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ 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.
robots/archive/yam_i2rt_arena/PROVENANCE.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## `embodiments/yam_i2rt_arena/` — the composed i2rt YAM wearing the arena's hand
2
+
3
+ **Source:** the two directories above. `yam_i2rt_arena_narrow_arms.xml`
4
+ (*generated*) is `yam_i2rt/`'s links, meshes, inertias and joint physics with
5
+ the arena's hand grafted onto the wrist unchanged: the `{side}_link_6` subtree
6
+ of `yam/yam_bimanual_arms.xml` — wrist inertial, palm capsules, D405 body and
7
+ its collider, both finger linkages with their `<equality>` coupling — hung
8
+ under the composed `{side}_link6` as a fixed child, rotated by `quat 0 -1 1 0`
9
+ and not translated. Shoulders at ±0.17 m. `assets/` holds the STLs the file
10
+ names; `LICENSE` is i2rt's MIT licence, as for `yam_i2rt/`; the grafted hand
11
+ comes from Isaac Lab Arena (Apache-2.0, see `embodiments/yam/` above and
12
+ `NOTICE`). Placement rationale and measurements:
13
+ `robosimstudio/robots/embodiments/yam_i2rt_arena.py`.
14
+
15
+ **Edited in the checked-in file on 2026-10-26:** the grafted hand carries the
16
+ same edits as `embodiments/yam/` above -- collider friction 1.0, the stiff
17
+ finger equality and the actuator's 100 N range -- and is driven by the same
18
+ `yam_linear_arena.CLAMP`. Measured
19
+ the same way (`MUJOCO_500HZ`): 2, 6 and 30 mm boxes held to the probe's 2 kg,
20
+ where the arena hand dropped them at 0.11, 0.29 and 1.31 kg. The arm keeps its
21
+ arena gains, as `embodiments/yam/` says.
robots/archive/yam_i2rt_arena/assets/base.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d57efce4cd31db5e461e1bc83362943a7dbe0e8e101cdb94c29de0a72f3ff0f
3
+ size 400084
robots/archive/yam_i2rt_arena/assets/d405.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a9a84dd9c9a67687e5ad0b37a7ed334dbfea6b0f995fef28524cc8da5f21ed2
3
+ size 1242284
robots/archive/yam_i2rt_arena/assets/link1.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2283bab1300cfdd1a04aaf09503093d7d6d19bf2144abf3429d563b596920903
3
+ size 400084
robots/archive/yam_i2rt_arena/assets/link2.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fd4df2916be71391c6c6ea6ffbdb3c270ce67c71c2bb7d42d44736c0be2af98
3
+ size 400084
robots/archive/yam_i2rt_arena/assets/link3.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b51658509771514738d0f2271df5f271cd8ae0b6a4bf3787d8463d5ab582593
3
+ size 400084
robots/archive/yam_i2rt_arena/assets/link4.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6e980b8064a1396b17e87065de50286abf616f94b55e1ccff92e889218de220
3
+ size 232084
robots/archive/yam_i2rt_arena/assets/link5.stl ADDED
Binary file (70.5 kB). View file
 
robots/archive/yam_i2rt_arena/assets/model2__12.stl ADDED
Binary file (68.1 kB). View file
 
robots/archive/yam_i2rt_arena/assets/model2__13.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32b62f14f00ea82bfc79b935f7dac32c7cb276a3abc0aae8362cbba3fb1326de
3
+ size 524284
robots/archive/yam_i2rt_arena/assets/model2__14.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72d2178789dd5e0358c2caf9dad90b8881e505f4c52a8d6d18c71b5e93e8c84b
3
+ size 524284
robots/archive/yam_i2rt_arena/assets/model2__15.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca8788184d54f30c18482cb9b48dffb010a93dbc029054b6cc515083a740d324
3
+ size 183684
robots/archive/yam_i2rt_arena/assets/model2__16.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18bb99691eed524393e8f3a0ff29e79d97ab75689bc92144bbdfafa2cc79d37b
3
+ size 183684
robots/archive/yam_i2rt_arena/assets/model2__17.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6513dbd192d2bf3a4f7016231f1ba5eca93916c9ebfdc334e9b435ca1d302ff6
3
+ size 524284
robots/archive/yam_i2rt_arena/spec/yam_i2rt_arena.py ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """The composed i2rt YAM wearing the arena's hand: the suites that were measured
3
+ on the arena, on the one arm.
4
+
5
+ The tool-hanging cell, written by the development-tree ``graft_arena_hand.py``
6
+ (not shipped; see ``assets/PROVENANCE.md``): shoulders at +/-0.17 m and the
7
+ raised, forward mount that cell needs for lift-and-rotate clearance. It replaced
8
+ an earlier tool-hanging embodiment, since retired, cell for cell, measured in
9
+ the benchmark's YAM campaign record of 2026-09-06.
10
+
11
+ The generator takes ``--shoulder-y``, so the play table's +/-0.31 m pair is one
12
+ flag away. It is not registered because nothing asks for it: the cloth-folding
13
+ suite is the only one that would, and it stays on ``yam`` by the 2026-09-06
14
+ ruling. Re-opening that would have to answer the arm-clearance measurement taken
15
+ during the arena migration.
16
+
17
+ This is ``yam_i2rt``'s links, meshes, inertias and joint physics -- the arm
18
+ composed from i2rt's own part files with the YAM motor model -- and
19
+ the ``yam_linear_arena`` hand grafted onto the wrist unchanged, palm capsules
20
+ and camera included, in the ``{side}_link_6`` frame every one of that hand's
21
+ constants is measured in. See the generator's docstring for where the graft
22
+ sits and why; the measurement it rests on is an arm-parity comparison made
23
+ during development.
24
+
25
+ **What moved and by how much.** The arena export and this arm are not one
26
+ kinematic chain: axis directions agree to 0.0000 deg, axis lines differ by
27
+ about 1 mm through the arm and 3.6-5.3 mm at the wrist. ``base_offset`` here is
28
+ the arena's less :data:`~tools.graft_arena_hand.SHOULDER_HEIGHT_DELTA_M`, which
29
+ puts the shoulder at the height the suites had it; the wrist residual is the
30
+ arm, and is what the suites' own graphs were re-measured against before these
31
+ became their native pairing.
32
+
33
+ **Gains**: ``arm_actuation`` and ``gripper_actuation`` stay ``None``. The
34
+ arm's are the asset's, the arena's actuator classes (kp 80 kv 6 on joints 1-3,
35
+ kp 30 kv 2 on the wrist), not the hardware's 80/10 of i2rt's ``yam_v1.yml``;
36
+ the hand's are ``yam_linear_arena``'s own, the real driver's 50 N-per-jaw
37
+ clamp (see ``assets/PROVENANCE.md``).
38
+ """
39
+
40
+ from __future__ import annotations
41
+
42
+ from robosimstudio.specs import ArmSpec, AssetSpec, EmbodimentSpec
43
+
44
+ from ..registry import register_embodiment
45
+ from .yam_look import YAM_BLACK, split_yam_white_tubes
46
+
47
+ __all__ = ["ARM_HOME", "SHOULDER_HEIGHT_DELTA_M", "YAM_I2RT_ARENA_NARROW"]
48
+
49
+ ARM_HOME = (0.0, 1.047, 1.047, 0.0, 0.0, 0.0)
50
+ """Per-arm home posture [rad] -- the arena's, unchanged, because the parity
51
+ measurement shows the two exports share joint zeros and signs."""
52
+
53
+ SHOULDER_HEIGHT_DELTA_M = 0.007517
54
+ """How much higher this arm's shoulder sits above its base origin than the
55
+ arena's did (measured by the graft generator). Subtracted from the arena's mounts."""
56
+
57
+
58
+ def _arm(side: str) -> ArmSpec:
59
+ return ArmSpec(
60
+ name=side,
61
+ # Named, not scanned by prefix: with fixed bodies kept as bodies, the
62
+ # grafted wrist, its linkages and the camera each carry a fixed joint
63
+ # under the same prefix, and a prefix scan sweeps them into the arm's
64
+ # joint list -- measured as a DOF mask that partially covered an
65
+ # object's FREE joint at build. yam_i2rt names its six for the same
66
+ # reason.
67
+ joint_names=tuple(f"{side}_joint{i}" for i in range(1, 7)),
68
+ # The arena's wrist frame, grafted verbatim: every hand constant is
69
+ # measured against it, and the wrist camera rig is stated against it.
70
+ ee_body_name=f"{side}_link_6",
71
+ gripper="yam_linear_arena",
72
+ home_q=ARM_HOME,
73
+ )
74
+
75
+
76
+ def _spec(name: str, base_offset: tuple[float, ...]) -> EmbodimentSpec:
77
+ return EmbodimentSpec(
78
+ name=name,
79
+ # No URDF, on purpose: this host is served by damped least squares, as
80
+ # the retired tool-hanging embodiment (which also named none) was. The vendor yam.urdf it
81
+ # used to name was refused by PyRoKi on both arms anyway (231.53 mm /
82
+ # 15.994 deg of drift on the level-1 pliers scene), so PyRoKi here
83
+ # already fell back to DLS. yam_i2rt's transcribed
84
+ # embodiments/yam_i2rt/yam_i2rt_arm.urdf matches this chain and PyRoKi
85
+ # accepts it (0.001 mm at the TCP over 20 configurations), but serving
86
+ # this host with PyRoKi took the tool-hanging vision graph from 15/22 to
87
+ # 1/22 (A/B, 2026-10-04). Until that is understood, DLS is the choice.
88
+ urdf="",
89
+ asset=AssetSpec(path=f"embodiments/yam_i2rt_arena/{name}_arms.xml"),
90
+ base_offset=base_offset,
91
+ # The composed arm's conventions (see yam_i2rt.py): fixed bodies stay
92
+ # bodies, so the grafted ``{side}_link_6`` keeps its label; one stated
93
+ # colour with the white tube shells cut back in; the arm's dual-purpose
94
+ # mesh geoms shown. No decomposition: the arena hand's pads are
95
+ # primitives and collide as authored.
96
+ collapse_fixed_joints=False,
97
+ color=YAM_BLACK,
98
+ appearance=split_yam_white_tubes,
99
+ show_collision_shapes=True,
100
+ enable_self_collisions=False,
101
+ # The arms collide with each other, each filtered against itself.
102
+ cross_arm_collisions=True,
103
+ arms=(_arm("left"), _arm("right")),
104
+ arm_actuation=None,
105
+ gripper_actuation=None,
106
+ ik_iterations=8,
107
+ )
108
+
109
+
110
+ YAM_I2RT_ARENA_NARROW = register_embodiment(
111
+ _spec(
112
+ "yam_i2rt_arena_narrow",
113
+ # The tool-hanging cell's mount -- 50 mm forward and 60 mm higher than
114
+ # the arena's -- less the same convention: same shoulder height as
115
+ # the retired tool-hanging embodiment.
116
+ (-0.2975, 0.0, 0.082 - SHOULDER_HEIGHT_DELTA_M, 0.0, 0.0, 0.0, 1.0),
117
+ )
118
+ )
robots/archive/yam_i2rt_arena/spec/yam_look.py ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """The real YAM's two-tone shell: black arm, white upper-arm and forearm tubes.
3
+
4
+ Ported from an earlier YAM simulation, whose numbers came out of a colour
5
+ derivation against photographs of the real arm -- and the derivation is the
6
+ reason this is a module rather than a colour constant.
7
+
8
+ The i2rt MJCF ships rainbow per-link ``rgba`` (purple base, tan link1, blue
9
+ link2, olive link3, pink link5, green gripper) left over from the CAD export.
10
+ Those are placeholder part colours, not the robot, which is why
11
+ :class:`~robosimstudio.specs.EmbodimentSpec` states one flat colour over the
12
+ lot -- :data:`YAM_BLACK`, the near-black the real arm's anodised parts read as
13
+ (it was the palette's ``ROBOT_DARK`` mid-grey, which a path tracer draws as
14
+ silver). Flat black is right for every link but three: on the real arm the
15
+ base and the upper-arm and forearm **tube shells** are white, and an arm
16
+ without them does not read as a YAM.
17
+
18
+ The tube cannot simply be a differently coloured geom, because i2rt welds one
19
+ mesh per link where the reference bimanual description
20
+ (``robots_realtime/.../yam_bimanual_scene.xml``, materials ``black`` at 0.30
21
+ and ``white`` at 0.90) has a per-part mesh set. So the tube is selected
22
+ *geometrically* inside the link mesh, in the mesh's own STL coordinates: a band
23
+ along the link's long z axis plus a radius about the tube axis, so the
24
+ forearm's side brackets stay black. Those five numbers per link were derived by
25
+ registering the reference part meshes onto the i2rt link meshes and labelling
26
+ every i2rt vertex by the reference part nearest it; the rule reproduces that
27
+ per-part labelling to within 0.3% (link2) and 1.0% (link3) of vertices.
28
+
29
+ Nothing here touches physics. The split adds two massless, non-colliding
30
+ visual shapes and hides the original's *rendering* only -- the original keeps
31
+ its collision geometry and its inertia.
32
+ """
33
+
34
+ from __future__ import annotations
35
+
36
+ import newton
37
+ import numpy as np
38
+
39
+ from robosimstudio.core.render.finish import GLOSS, SATIN, register_color_finish
40
+
41
+ __all__ = ["YAM_BLACK", "YAM_WHITE", "YAM_WHITE_LINKS", "YAM_WHITE_TUBES", "split_yam_white_tubes"]
42
+
43
+ YAM_WHITE: tuple[float, float, float] = (0.90, 0.90, 0.90)
44
+ """Material ``white`` in the reference scene: the two tube shells, and the base."""
45
+
46
+ YAM_BLACK: tuple[float, float, float] = (0.040, 0.040, 0.043)
47
+ """Everything else on the arm: anodised joints, the forearm, the printed fingers.
48
+
49
+ The reference clips read the arm's dark parts at 40-65 of 255 in sRGB, which
50
+ is an albedo near 0.04 -- black, not the ``ROBOT_DARK`` mid-grey (0.30) the
51
+ palette gives a converter-authored arm so that it is not crushed under the
52
+ tiled tracer. Under that tracer this renders around pixel 45, which is what a
53
+ black arm on a lit bench looks like, and under the path tracer it is the
54
+ black the clips show."""
55
+
56
+ register_color_finish(YAM_WHITE, GLOSS)
57
+ register_color_finish(YAM_BLACK, SATIN)
58
+
59
+ YAM_WHITE_LINKS: tuple[str, ...] = ("base_geom_0",)
60
+ """Geom-name suffixes painted white whole. The base is a white shell in every
61
+ frame of the reference clips, and it is one part, so it needs no split."""
62
+
63
+ YAM_WHITE_TUBES: dict[str, tuple[float, float, float, float, float]] = {
64
+ "link2_geom_0": (0.0580, 0.2461, 0.0745, 0.0478, 0.0385),
65
+ "link3_geom_0": (0.0856, 0.2545, 0.0119, 0.0481, 0.0448),
66
+ }
67
+ """Geom-name suffix -> ``(z_lo, z_hi, axis_x, axis_y, radius)`` [m, mesh-local].
68
+
69
+ Keyed by *suffix* rather than by the whole name: a bimanual MJCF prefixes its
70
+ geoms per side (``right_link2_geom_0``), and the tube is the same part on both
71
+ arms."""
72
+
73
+
74
+ def split_yam_white_tubes(builder: newton.ModelBuilder, shape_range: tuple[int, int]) -> int:
75
+ """Give the arm its white tubes, as visual-only shapes. Returns links split.
76
+
77
+ Called after the embodiment's flat colour has been applied, so it repaints
78
+ exactly the two links that are not flat black and leaves everything else as
79
+ the spec stated it.
80
+
81
+ A mesh that no longer spans what the derivation saw is skipped rather than
82
+ sliced at stale coordinates -- a re-exported or re-centred link would
83
+ otherwise get a white band across the wrong part of it. Returning 0 means
84
+ no link matched and the arm simply stays flat black, which is a degraded
85
+ look and never a broken model.
86
+
87
+ Args:
88
+ builder: The builder, pre-finalize.
89
+ shape_range: ``(start, end)`` shape indices this robot owns.
90
+
91
+ Returns:
92
+ How many links were split.
93
+ """
94
+ n_split = 0
95
+ for i in range(*shape_range):
96
+ tail = builder.shape_label[i].rsplit("/", 1)[-1]
97
+ if any(tail.endswith(k) for k in YAM_WHITE_LINKS):
98
+ builder.shape_color[i] = YAM_WHITE
99
+ continue
100
+ spec = next((v for k, v in YAM_WHITE_TUBES.items() if tail.endswith(k)), None)
101
+ if spec is None:
102
+ continue
103
+ source = builder.shape_source[i]
104
+ vertices = getattr(source, "vertices", None)
105
+ if vertices is None:
106
+ continue
107
+ v = np.asarray(vertices, dtype=np.float32).reshape(-1, 3)
108
+ f = np.asarray(source.indices, dtype=np.int32).reshape(-1, 3)
109
+ z_lo, z_hi, cx, cy, radius = spec
110
+ if not (v[:, 2].min() < z_lo - 0.02 and v[:, 2].max() > z_hi + 0.02):
111
+ continue
112
+ white_v = (v[:, 2] >= z_lo) & (v[:, 2] <= z_hi) & (np.hypot(v[:, 0] - cx, v[:, 1] - cy) <= radius)
113
+ white_f = white_v[f].all(axis=1)
114
+ if not white_f.any() or white_f.all():
115
+ continue
116
+ cfg = newton.ModelBuilder.ShapeConfig(density=0.0, has_shape_collision=False, has_particle_collision=False)
117
+ for faces, colour, suffix in ((f[white_f], YAM_WHITE, "_white"), (f[~white_f], YAM_BLACK, "_black")):
118
+ builder.add_shape_mesh(
119
+ body=int(builder.shape_body[i]),
120
+ xform=builder.shape_transform[i],
121
+ mesh=newton.Mesh(v, faces.reshape(-1), compute_inertia=False, is_solid=False),
122
+ cfg=cfg,
123
+ color=colour,
124
+ label=builder.shape_label[i] + suffix,
125
+ )
126
+ builder.shape_flags[i] = int(builder.shape_flags[i]) & ~int(newton.ShapeFlags.VISIBLE)
127
+ n_split += 1
128
+ return n_split
robots/archive/yam_i2rt_arena/yam_i2rt_arena_narrow_arms.xml ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <mujoco model="yam_i2rt_arena_narrow">
2
+ <compiler angle="radian" meshdir="assets" boundmass="0.001" boundinertia="0.001" />
3
+ <default>
4
+ <default class="yam">
5
+ <position inheritrange="1" />
6
+ <joint frictionloss="0.01" damping="0.5" axis="0 0 1" />
7
+ <default class="dm4340">
8
+ <joint armature="0.032" />
9
+ <position kp="80" kv="6" forcerange="-28 28" />
10
+ </default>
11
+ <default class="dm4310">
12
+ <joint armature="0.0018" />
13
+ <position kp="30" kv="2" forcerange="-10 10" />
14
+ </default>
15
+ <default class="visual">
16
+ <geom type="mesh" contype="0" conaffinity="0" density="0" group="2" material="black" />
17
+ </default>
18
+ <default class="collision">
19
+ <geom group="3" type="capsule" friction="1.0 0.1 0.01" condim="6" solimp="0.998 0.998 0.001" solref="0.004 1" />
20
+ <default class="sphere_collision">
21
+ <geom size="0.0006 0 0" type="sphere" rgba="1 0 0 1" friction="1.0 0.1 0.01" condim="6" solimp="0.998 0.998 0.001" solref="0.004 1" />
22
+ </default>
23
+ </default>
24
+ <default class="finger">
25
+ <joint type="slide" armature="0.1" frictionloss="0.1" />
26
+ <position ctrlrange="0.0 0.0495" kp="200" kv="14" forcerange="-100 100" inheritrange="0" />
27
+ </default>
28
+ </default>
29
+ <default class="cp2">
30
+ <geom type="mesh" condim="6" friction="3.0 0.1 0.01" density="0" solref="0.004 1" solimp="0.998 0.998 0.001" priority="1" />
31
+ </default>
32
+ </default>
33
+ <asset>
34
+ <mesh name="base" file="base.stl" />
35
+ <mesh name="link1" file="link1.stl" />
36
+ <mesh name="link2" file="link2.stl" />
37
+ <mesh name="link3" file="link3.stl" />
38
+ <mesh name="link4" file="link4.stl" />
39
+ <mesh name="link5" file="link5.stl" />
40
+ <mesh file="model2__12.stl" />
41
+ <mesh file="model2__13.stl" />
42
+ <mesh file="model2__14.stl" />
43
+ <mesh file="model2__15.stl" />
44
+ <mesh file="model2__16.stl" />
45
+ <mesh file="model2__17.stl" />
46
+ <mesh name="camera_d405" file="d405.stl" />
47
+ <material name="black" rgba="0.30 0.30 0.30 1" />
48
+ <material name="white" rgba="0.9 0.9 0.9 1" />
49
+ </asset>
50
+ <worldbody>
51
+ <body name="right_base" gravcomp="1" pos="0 -0.17 0">
52
+ <geom pos="-0.0374966 -0.0464005 0.187501" quat="0.707105 0 0.707108 0" type="mesh" rgba="0.317647 0.121569 0.498039 1" mesh="base" />
53
+ <body name="right_link1" pos="0 0 0.067" quat="0.707105 0 0 -0.707108" gravcomp="1">
54
+ <inertial pos="-0.00261782 0.00744082 0.0237251" quat="0.602276 0.365837 0.642523 0.300984" mass="0.104154" diaginertia="0.000139023 0.000109628 4.8478e-05" />
55
+ <joint name="right_joint1" pos="0 0 0" axis="0 0 1" range="-2.61799 3.05433" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
56
+ <geom pos="-0.0464 0.0374968 0.119501" quat="0.499998 0.5 0.5 -0.500002" type="mesh" rgba="0.72549 0.45098 0.317647 1" mesh="link1" />
57
+ <body name="right_link2" pos="-0.0329 0.02 0.0455" quat="0.499998 0.5 -0.500002 -0.5" gravcomp="1">
58
+ <inertial pos="0.129165 0.000134495 -0.0321253" quat="0.499976 0.500008 0.500105 0.499911" mass="1.46908" diaginertia="0.0146686 0.014599 0.000800089" />
59
+ <joint name="right_joint2" pos="0 0 0" axis="0 0 1" range="0 3.65" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
60
+ <geom pos="-0.0174977 -0.0740001 -0.07925" quat="0.499998 0.5 0.500002 0.5" type="mesh" rgba="0 0.4 0.6 1" mesh="link2" />
61
+ <body name="right_link3" pos="0.264 4.08431e-07 -0.06375" quat="9.38184e-07 -0.707105 -0.707108 9.38187e-07" gravcomp="1">
62
+ <inertial pos="0.0556042 -0.135083 -0.0340514" quat="0.704407 0.697077 0.121918 -0.0550519" mass="0.982553" diaginertia="0.00765198 0.0076296 0.000876442" />
63
+ <joint name="right_joint3" pos="0 0 0" axis="0 0 1" range="0 3.66519" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
64
+ <geom pos="0.0740003 -0.281499 -0.0813" quat="9.38184e-07 9.38187e-07 -0.707108 -0.707105" type="mesh" rgba="0.552941 0.580392 0.203922 1" mesh="link3" />
65
+ <body name="right_link4" pos="0.0600003 -0.244999 -0.00205" quat="1.32679e-06 0 0 -1" gravcomp="1">
66
+ <inertial pos="-0.0543529 0.057068 -0.0332231" quat="0.636075 0.627088 0.370444 0.254833" mass="0.46678" diaginertia="0.000817855 0.000791274 0.000295776" />
67
+ <joint name="right_joint4" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
68
+ <geom pos="-0.0138003 0.0364989 -0.0787882" quat="0.707105 0.707108 0 0" type="mesh" rgba="0.545098 0.52549 0.419608 1" mesh="link4" />
69
+ <body name="right_link5" pos="-0.0403003 0.0703851 -0.0323887" quat="9.38184e-07 -0.707105 -9.38187e-07 -0.707108" gravcomp="1">
70
+ <inertial pos="-3.55003e-05 -0.00717397 0.0375847" quat="0.911516 0.411243 -0.00302177 -0.00303654" mass="0.403307" diaginertia="0.000219794 0.000195686 0.000169647" />
71
+ <joint name="right_joint5" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
72
+ <geom pos="-0.0463995 0.0311519 0.0265" quat="0.499998 -0.5 -0.5 -0.500002" type="mesh" rgba="0.827451 0.623529 0.784314 1" mesh="link5" />
73
+ <body name="right_link6" pos="2.39858e-07 -0.0419481 0.0404996" quat="0.499998 -0.5 -0.5 -0.500002" gravcomp="1">
74
+ <inertial pos="0 0 0" mass="1e-6" diaginertia="1e-9 1e-9 1e-9" />
75
+ <joint name="right_joint6" pos="0 0 0" axis="0 0 -1" range="-2.0944 2.0944" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
76
+ <body name="right_link_6" pos="0 0 0" quat="0 -1 1 0" gravcomp="1" childclass="yam">
77
+ <inertial pos="-0.000217767 7.37059e-05 0.0270545" quat="1 1 0 0" mass="0.367476" diaginertia="0.000265958 0.000242686 0.000227409" />
78
+ <geom class="visual" pos="0 -0.164101 -0.110597" quat="1 -1 0 0" mesh="model2__12" />
79
+ <geom class="visual" pos="0 -0.164101 -0.110597" quat="1 -1 0 0" mesh="model2__13" />
80
+ <geom class="collision" size="0.01 0.035" pos="0 0.039 0.052" quat="1 0 1 0" />
81
+ <geom class="collision" size="0.030 0.005" pos="0 0.0 0.03" quat="1 0 0 1" />
82
+ <geom class="collision" size="0.01 0.035" pos="0 -0.039 0.052" quat="1 0 1 0" />
83
+ <site name="right_tcp_site" pos="0 0 0" quat="1 0 0 -1" size="0.005" rgba="1 0 0 1" group="4" />
84
+ <site name="right_grasp_site" pos="0 0 0.1347" quat="1 0 0 -1" size="0.005" rgba="0 1 0 1" group="4" />
85
+ <body name="right_camera_d405" pos="-0.0107 0.079729 0.066021" quat="0.906 0.423 0 0">
86
+ <geom type="mesh" contype="0" conaffinity="0" group="3" density="0.001" mass="0.001" rgba="0 0 0 0" mesh="camera_d405" />
87
+ <geom name="right_cam_col" type="sphere" size="0.02" pos="0 0 0" group="3" rgba="0 0 1 0.0" mass="0.001" />
88
+ <body name="right_camera_frame" pos="0.009 0 0" quat="0 0 0 1">
89
+ <camera name="right" pos="0 0 0" quat="0 1 0 0" fovy="58" />
90
+ </body>
91
+ </body>
92
+ <body name="right_link_left_finger" pos="-0.037 0.0392 0.0605" quat="1 0 1 0" gravcomp="1">
93
+ <inertial pos="-0.0192995 -0.0365902 0.039774" quat="0.757351 0.568898 -0.3199 0.0" mass="0.118" diaginertia="0.000159084 0.000154909 4.63655e-05" />
94
+ <joint class="finger" name="right_left_finger" range="-0.00205 0.0475" />
95
+ <geom class="visual" pos="0.171097 -0.203301 0.037" quat="1 -1 -1 -1" mesh="model2__14" />
96
+ <geom class="visual" pos="0.171097 -0.203301 0.037" quat="1 -1 -1 -1" mesh="model2__15" />
97
+ <body name="right_lf_rot" quat="1 -1 -1 1" pos="0.0 -0.0392 0.037" gravcomp="1">
98
+ <geom class="collision" size="0.01 0.03" pos="0.0 -0.02 0.012" quat="1 0 1 0" rgba="0.381493 0.492734 0.780446 1" />
99
+ <geom class="collision" size="0.01 0.02" pos="-0.02 -0.01 0.032" quat="1 0 2.5 0" rgba="0.381493 0.492734 0.780446 1" />
100
+ <body name="right_lf_down" quat="1 0 0 0" pos="-0.044 0.0 0.0" gravcomp="1">
101
+ <geom class="collision" size="0.01 0.01" pos="0.0 -0.020 0.012" quat="1 -0.1 0 0" rgba="0.381493 0.492734 0.780446 1" />
102
+ <geom class="collision" size="0.003 0.022" pos="0.005 -0.014 0.04" quat="1 -0.2 0 0" rgba="0.381493 0.492734 0.780446 1" />
103
+ <geom class="collision" size="0.003 0.022" pos="-0.005 -0.014 0.04" quat="1 -0.2 0 0" rgba="0.381493 0.492734 0.780446 1" />
104
+ <geom class="collision" type="box" size="0.006 0.002 0.04" pos="0 -0.0024 0.046" quat="1 0 0 0" rgba="0.381493 0.492734 0.780446 1" />
105
+ <geom class="collision" type="box" size="0.006 0.002 0.039" pos="0.027 -0.0024 0.053" quat="1 0 2.5 0" rgba="0.381493 0.492734 0.780446 1" />
106
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.078" />
107
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.078" />
108
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.07" />
109
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.07" />
110
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.06" />
111
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.06" />
112
+ </body>
113
+ </body>
114
+ </body>
115
+ <body name="right_link_right_finger" pos="0.037 -0.0392 0.0605" quat="1 0 1 0" gravcomp="1">
116
+ <inertial pos="-0.0192995 0.0365902 -0.039774" quat="-0.757351 0.568898 -0.3199 0" mass="0.118" diaginertia="0.000159084 0.000154909 4.63655e-05" />
117
+ <joint class="finger" name="right_right_finger" range="-0.0475 0.00205" />
118
+ <geom class="visual" pos="0.171097 -0.124901 -0.037" quat="1 -1 -1 -1" mesh="model2__16" />
119
+ <geom class="visual" pos="0.171097 -0.124901 -0.037" quat="1 -1 -1 -1" mesh="model2__17" />
120
+ <body name="right_rf_rot" quat="1 1 -1 -1" pos="0.0 0.0392 -0.037" gravcomp="1">
121
+ <geom class="collision" size="0.01 0.03" pos="0.0 -0.02 0.012" quat="1 0 1 0" rgba="0.381493 0.492734 0.780446 1" />
122
+ <geom class="collision" size="0.01 0.02" pos="0.02 -0.01 0.032" quat="1 0 -2.5 0" rgba="0.381493 0.492734 0.780446 1" />
123
+ <body name="right_rf_down" quat="1 0 0 0" pos="0.044 0.0 0.0" gravcomp="1">
124
+ <geom class="collision" size="0.01 0.01" pos="0.0 -0.020 0.012" quat="1 -0.1 0 0" rgba="0.381493 0.492734 0.780446 1" />
125
+ <geom class="collision" size="0.003 0.022" pos="0.005 -0.014 0.04" quat="1 -0.2 0 0" rgba="0.381493 0.492734 0.780446 1" />
126
+ <geom class="collision" size="0.003 0.022" pos="-0.005 -0.014 0.04" quat="1 -0.2 0 0" rgba="0.381493 0.492734 0.780446 1" />
127
+ <geom class="collision" type="box" size="0.006 0.002 0.04" pos="0 -0.0024 0.046" quat="1 0 0 0" rgba="0.381493 0.492734 0.780446 1" />
128
+ <geom class="collision" type="box" size="0.006 0.002 0.039" pos="-0.027 -0.0024 0.053" quat="1 0 -2.5 0" rgba="0.381493 0.492734 0.780446 1" />
129
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.078" />
130
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.078" />
131
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.07" />
132
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.07" />
133
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.06" />
134
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.06" />
135
+ </body>
136
+ </body>
137
+ </body>
138
+ </body>
139
+ </body>
140
+ </body>
141
+ </body>
142
+ </body>
143
+ </body>
144
+ </body>
145
+ </body>
146
+ <body name="left_base" gravcomp="1" pos="0 0.17 0">
147
+ <geom pos="-0.0374966 -0.0464005 0.187501" quat="0.707105 0 0.707108 0" type="mesh" rgba="0.317647 0.121569 0.498039 1" mesh="base" />
148
+ <body name="left_link1" pos="0 0 0.067" quat="0.707105 0 0 -0.707108" gravcomp="1">
149
+ <inertial pos="-0.00261782 0.00744082 0.0237251" quat="0.602276 0.365837 0.642523 0.300984" mass="0.104154" diaginertia="0.000139023 0.000109628 4.8478e-05" />
150
+ <joint name="left_joint1" pos="0 0 0" axis="0 0 1" range="-2.61799 3.05433" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
151
+ <geom pos="-0.0464 0.0374968 0.119501" quat="0.499998 0.5 0.5 -0.500002" type="mesh" rgba="0.72549 0.45098 0.317647 1" mesh="link1" />
152
+ <body name="left_link2" pos="-0.0329 0.02 0.0455" quat="0.499998 0.5 -0.500002 -0.5" gravcomp="1">
153
+ <inertial pos="0.129165 0.000134495 -0.0321253" quat="0.499976 0.500008 0.500105 0.499911" mass="1.46908" diaginertia="0.0146686 0.014599 0.000800089" />
154
+ <joint name="left_joint2" pos="0 0 0" axis="0 0 1" range="0 3.65" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
155
+ <geom pos="-0.0174977 -0.0740001 -0.07925" quat="0.499998 0.5 0.500002 0.5" type="mesh" rgba="0 0.4 0.6 1" mesh="link2" />
156
+ <body name="left_link3" pos="0.264 4.08431e-07 -0.06375" quat="9.38184e-07 -0.707105 -0.707108 9.38187e-07" gravcomp="1">
157
+ <inertial pos="0.0556042 -0.135083 -0.0340514" quat="0.704407 0.697077 0.121918 -0.0550519" mass="0.982553" diaginertia="0.00765198 0.0076296 0.000876442" />
158
+ <joint name="left_joint3" pos="0 0 0" axis="0 0 1" range="0 3.66519" actuatorfrcrange="-27 27" armature="0.0192" damping="0.032" frictionloss="0.12" />
159
+ <geom pos="0.0740003 -0.281499 -0.0813" quat="9.38184e-07 9.38187e-07 -0.707108 -0.707105" type="mesh" rgba="0.552941 0.580392 0.203922 1" mesh="link3" />
160
+ <body name="left_link4" pos="0.0600003 -0.244999 -0.00205" quat="1.32679e-06 0 0 -1" gravcomp="1">
161
+ <inertial pos="-0.0543529 0.057068 -0.0332231" quat="0.636075 0.627088 0.370444 0.254833" mass="0.46678" diaginertia="0.000817855 0.000791274 0.000295776" />
162
+ <joint name="left_joint4" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
163
+ <geom pos="-0.0138003 0.0364989 -0.0787882" quat="0.707105 0.707108 0 0" type="mesh" rgba="0.545098 0.52549 0.419608 1" mesh="link4" />
164
+ <body name="left_link5" pos="-0.0403003 0.0703851 -0.0323887" quat="9.38184e-07 -0.707105 -9.38187e-07 -0.707108" gravcomp="1">
165
+ <inertial pos="-3.55003e-05 -0.00717397 0.0375847" quat="0.911516 0.411243 -0.00302177 -0.00303654" mass="0.403307" diaginertia="0.000219794 0.000195686 0.000169647" />
166
+ <joint name="left_joint5" pos="0 0 0" axis="0 0 1" range="-1.5708 1.5708" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
167
+ <geom pos="-0.0463995 0.0311519 0.0265" quat="0.499998 -0.5 -0.5 -0.500002" type="mesh" rgba="0.827451 0.623529 0.784314 1" mesh="link5" />
168
+ <body name="left_link6" pos="2.39858e-07 -0.0419481 0.0404996" quat="0.499998 -0.5 -0.5 -0.500002" gravcomp="1">
169
+ <inertial pos="0 0 0" mass="1e-6" diaginertia="1e-9 1e-9 1e-9" />
170
+ <joint name="left_joint6" pos="0 0 0" axis="0 0 -1" range="-2.0944 2.0944" actuatorfrcrange="-10 10" armature="0.0012" damping="0.002" frictionloss="0.04" />
171
+ <body name="left_link_6" pos="0 0 0" quat="0 -1 1 0" gravcomp="1" childclass="yam">
172
+ <inertial pos="-0.000217767 7.37059e-05 0.0270545" quat="1 1 0 0" mass="0.367476" diaginertia="0.000265958 0.000242686 0.000227409" />
173
+ <geom class="visual" pos="0 -0.164101 -0.110597" quat="1 -1 0 0" mesh="model2__12" />
174
+ <geom class="visual" pos="0 -0.164101 -0.110597" quat="1 -1 0 0" mesh="model2__13" />
175
+ <geom class="collision" size="0.01 0.035" pos="0 0.039 0.052" quat="1 0 1 0" />
176
+ <geom class="collision" size="0.030 0.005" pos="0 0.0 0.03" quat="1 0 0 1" />
177
+ <geom class="collision" size="0.01 0.035" pos="0 -0.039 0.052" quat="1 0 1 0" />
178
+ <site name="left_tcp_site" pos="0 0 0" quat="1 0 0 -1" size="0.005" rgba="1 0 0 1" group="4" />
179
+ <site name="left_grasp_site" pos="0 0 0.1347" quat="1 0 0 -1" size="0.005" rgba="0 1 0 1" group="4" />
180
+ <body name="left_camera_d405" pos="-0.0107 0.079729 0.066021" quat="0.906 0.423 0 0">
181
+ <geom type="mesh" contype="0" conaffinity="0" group="3" density="0.001" mass="0.001" rgba="0 0 0 0" mesh="camera_d405" />
182
+ <geom name="left_cam_col" type="sphere" size="0.02" pos="0 0 0" group="3" rgba="0 0 1 0.0" mass="0.001" />
183
+ <body name="left_camera_frame" pos="0.009 0 0" quat="0 0 0 1">
184
+ <camera name="left" pos="0 0 0" quat="0 1 0 0" fovy="58" />
185
+ </body>
186
+ </body>
187
+ <body name="left_link_left_finger" pos="-0.037 0.0392 0.0605" quat="1 0 1 0" gravcomp="1">
188
+ <inertial pos="-0.0192995 -0.0365902 0.039774" quat="0.757351 0.568898 -0.3199 0.0" mass="0.118" diaginertia="0.000159084 0.000154909 4.63655e-05" />
189
+ <joint class="finger" name="left_left_finger" range="-0.00205 0.0475" />
190
+ <geom class="visual" pos="0.171097 -0.203301 0.037" quat="1 -1 -1 -1" mesh="model2__14" />
191
+ <geom class="visual" pos="0.171097 -0.203301 0.037" quat="1 -1 -1 -1" mesh="model2__15" />
192
+ <body name="left_lf_rot" quat="1 -1 -1 1" pos="0.0 -0.0392 0.037" gravcomp="1">
193
+ <geom class="collision" size="0.01 0.03" pos="0.0 -0.02 0.012" quat="1 0 1 0" rgba="0.381493 0.492734 0.780446 1" />
194
+ <geom class="collision" size="0.01 0.02" pos="-0.02 -0.01 0.032" quat="1 0 2.5 0" rgba="0.381493 0.492734 0.780446 1" />
195
+ <body name="left_lf_down" quat="1 0 0 0" pos="-0.044 0.0 0.0" gravcomp="1">
196
+ <geom class="collision" size="0.01 0.01" pos="0.0 -0.020 0.012" quat="1 -0.1 0 0" rgba="0.381493 0.492734 0.780446 1" />
197
+ <geom class="collision" size="0.003 0.022" pos="0.005 -0.014 0.04" quat="1 -0.2 0 0" rgba="0.381493 0.492734 0.780446 1" />
198
+ <geom class="collision" size="0.003 0.022" pos="-0.005 -0.014 0.04" quat="1 -0.2 0 0" rgba="0.381493 0.492734 0.780446 1" />
199
+ <geom class="collision" type="box" size="0.006 0.002 0.04" pos="0 -0.0024 0.046" quat="1 0 0 0" rgba="0.381493 0.492734 0.780446 1" />
200
+ <geom class="collision" type="box" size="0.006 0.002 0.039" pos="0.027 -0.0024 0.053" quat="1 0 2.5 0" rgba="0.381493 0.492734 0.780446 1" />
201
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.078" />
202
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.078" />
203
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.07" />
204
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.07" />
205
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.06" />
206
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.06" />
207
+ </body>
208
+ </body>
209
+ </body>
210
+ <body name="left_link_right_finger" pos="0.037 -0.0392 0.0605" quat="1 0 1 0" gravcomp="1">
211
+ <inertial pos="-0.0192995 0.0365902 -0.039774" quat="-0.757351 0.568898 -0.3199 0" mass="0.118" diaginertia="0.000159084 0.000154909 4.63655e-05" />
212
+ <joint class="finger" name="left_right_finger" range="-0.0475 0.00205" />
213
+ <geom class="visual" pos="0.171097 -0.124901 -0.037" quat="1 -1 -1 -1" mesh="model2__16" />
214
+ <geom class="visual" pos="0.171097 -0.124901 -0.037" quat="1 -1 -1 -1" mesh="model2__17" />
215
+ <body name="left_rf_rot" quat="1 1 -1 -1" pos="0.0 0.0392 -0.037" gravcomp="1">
216
+ <geom class="collision" size="0.01 0.03" pos="0.0 -0.02 0.012" quat="1 0 1 0" rgba="0.381493 0.492734 0.780446 1" />
217
+ <geom class="collision" size="0.01 0.02" pos="0.02 -0.01 0.032" quat="1 0 -2.5 0" rgba="0.381493 0.492734 0.780446 1" />
218
+ <body name="left_rf_down" quat="1 0 0 0" pos="0.044 0.0 0.0" gravcomp="1">
219
+ <geom class="collision" size="0.01 0.01" pos="0.0 -0.020 0.012" quat="1 -0.1 0 0" rgba="0.381493 0.492734 0.780446 1" />
220
+ <geom class="collision" size="0.003 0.022" pos="0.005 -0.014 0.04" quat="1 -0.2 0 0" rgba="0.381493 0.492734 0.780446 1" />
221
+ <geom class="collision" size="0.003 0.022" pos="-0.005 -0.014 0.04" quat="1 -0.2 0 0" rgba="0.381493 0.492734 0.780446 1" />
222
+ <geom class="collision" type="box" size="0.006 0.002 0.04" pos="0 -0.0024 0.046" quat="1 0 0 0" rgba="0.381493 0.492734 0.780446 1" />
223
+ <geom class="collision" type="box" size="0.006 0.002 0.039" pos="-0.027 -0.0024 0.053" quat="1 0 -2.5 0" rgba="0.381493 0.492734 0.780446 1" />
224
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.078" />
225
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.078" />
226
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.07" />
227
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.07" />
228
+ <geom class="sphere_collision" pos="0.003 -0.0004 0.06" />
229
+ <geom class="sphere_collision" pos="-0.003 -0.0004 0.06" />
230
+ </body>
231
+ </body>
232
+ </body>
233
+ </body>
234
+ </body>
235
+ </body>
236
+ </body>
237
+ </body>
238
+ </body>
239
+ </body>
240
+ </body>
241
+ </worldbody>
242
+ <equality>
243
+ <joint joint1="right_left_finger" joint2="right_right_finger" polycoef="0 -1 0 0 0" solref="0.004 1" solimp="0.95 0.99 0.001" />
244
+ <joint joint1="left_left_finger" joint2="left_right_finger" polycoef="0 -1 0 0 0" solref="0.004 1" solimp="0.95 0.99 0.001" />
245
+ </equality>
246
+ <actuator>
247
+ <position name="right_joint1" joint="right_joint1" class="dm4340" />
248
+ <position name="right_joint2" joint="right_joint2" class="dm4340" />
249
+ <position name="right_joint3" joint="right_joint3" class="dm4340" />
250
+ <position name="right_joint4" joint="right_joint4" class="dm4310" />
251
+ <position name="right_joint5" joint="right_joint5" class="dm4310" />
252
+ <position name="right_joint6" joint="right_joint6" class="dm4310" />
253
+ <position class="finger" name="right_gripper" joint="right_left_finger" />
254
+ <position name="left_joint1" joint="left_joint1" class="dm4340" />
255
+ <position name="left_joint2" joint="left_joint2" class="dm4340" />
256
+ <position name="left_joint3" joint="left_joint3" class="dm4340" />
257
+ <position name="left_joint4" joint="left_joint4" class="dm4310" />
258
+ <position name="left_joint5" joint="left_joint5" class="dm4310" />
259
+ <position name="left_joint6" joint="left_joint6" class="dm4310" />
260
+ <position class="finger" name="left_gripper" joint="left_left_finger" />
261
+ </actuator>
262
+ </mujoco>
robots/robotiq_2f85/2f85.xml ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <mujoco model="robotiq_2f85">
2
+ <compiler angle="radian" meshdir="assets" autolimits="true"/>
3
+
4
+ <option cone="elliptic" impratio="10"/>
5
+
6
+ <asset>
7
+ <material name="metal" rgba="0.58 0.58 0.58 1"/>
8
+ <material name="silicone" rgba="0.1882 0.1882 0.1882 1"/>
9
+ <material name="gray" rgba="0.4627 0.4627 0.4627 1"/>
10
+ <material name="black" rgba="0.149 0.149 0.149 1"/>
11
+
12
+ <mesh class="2f85" file="base_mount.stl"/>
13
+ <mesh class="2f85" file="base.stl"/>
14
+ <mesh class="2f85" file="driver.stl"/>
15
+ <mesh class="2f85" file="coupler.stl"/>
16
+ <mesh class="2f85" file="follower.stl"/>
17
+ <mesh class="2f85" file="pad.stl"/>
18
+ <mesh class="2f85" file="silicone_pad.stl"/>
19
+ <mesh class="2f85" file="spring_link.stl"/>
20
+ </asset>
21
+
22
+ <default>
23
+ <default class="2f85">
24
+ <mesh scale="0.001 0.001 0.001"/>
25
+ <general biastype="affine"/>
26
+
27
+ <joint axis="1 0 0"/>
28
+ <default class="driver">
29
+ <joint range="0 0.8" armature="0.005" damping="0.1" solimplimit="0.95 0.99 0.001" solreflimit="0.005 1"/>
30
+ </default>
31
+ <default class="follower">
32
+ <joint range="-0.872664 0.872664" armature="0.001" pos="0 -0.018 0.0065" solimplimit="0.95 0.99 0.001" solreflimit="0.005 1"/>
33
+ </default>
34
+ <default class="spring_link">
35
+ <!-- stiffness/damping raised 10x from upstream (0.05/0.00125): at the
36
+ stock values this joint has no restoring authority against the
37
+ inertial coupling a fast arm reach imparts through base_mount, so at
38
+ many wrist orientations, not this hand's own home pose, where the
39
+ stock values look fine, a partial close buckles the passive
40
+ follower into the encompassing branch instead of holding the parallel
41
+ one, before any object contact asks it to. There are no locking pins
42
+ modeled here (the hardware's answer to the same failure mode) and
43
+ Newton's generic builder has no field for this MJCF-only spring, so
44
+ it is corrected at the source rather than overridden after import, as
45
+ every other per-joint fact in this file is. Below 0.3 to 0.4 the fold
46
+ still happens; 0.5 clears it with margin and costs about 5 mm off the
47
+ 98 mm open span, which set_grip's own calibration already reads
48
+ live rather than assuming. -->
49
+ <joint range="-0.29670597283 0.8" armature="0.001" stiffness="0.5" springref="2.62" damping="0.02"/>
50
+ </default>
51
+ <default class="coupler">
52
+ <joint range="-1.57 0" armature="0.001" solimplimit="0.95 0.99 0.001" solreflimit="0.005 1"/>
53
+ </default>
54
+
55
+ <default class="visual">
56
+ <geom type="mesh" contype="0" conaffinity="0" group="2"/>
57
+ </default>
58
+ <default class="collision">
59
+ <geom type="mesh" group="3"/>
60
+ <default class="pad_box1">
61
+ <geom mass="0" type="box" pos="0 -0.0026 0.028125" size="0.011 0.004 0.009375" friction="0.7"
62
+ solimp="0.95 0.99 0.001" solref="0.004 1" priority="1" rgba="0.55 0.55 0.55 1"/>
63
+ </default>
64
+ <default class="pad_box2">
65
+ <geom mass="0" type="box" pos="0 -0.0026 0.009375" size="0.011 0.004 0.009375" friction="0.6"
66
+ solimp="0.95 0.99 0.001" solref="0.004 1" priority="1" rgba="0.45 0.45 0.45 1"/>
67
+ </default>
68
+ </default>
69
+ </default>
70
+ </default>
71
+
72
+ <worldbody>
73
+ <body name="base_mount" pos="0 0 0.007" childclass="2f85">
74
+ <geom class="visual" mesh="base_mount" material="black"/>
75
+ <geom class="collision" mesh="base_mount"/>
76
+ <body name="base" pos="0 0 0.0038" quat="1 0 0 -1">
77
+ <inertial mass="0.777441" pos="0 -2.70394e-05 0.0354675" quat="1 -0.00152849 0 0"
78
+ diaginertia="0.000260285 0.000225381 0.000152708"/>
79
+ <geom class="visual" mesh="base" material="black"/>
80
+ <geom class="collision" mesh="base"/>
81
+ <site name="pinch" pos="0 0 0.145" type="sphere" group="5" rgba="0.9 0.9 0.9 1" size="0.005"/>
82
+ <!-- Right-hand side 4-bar linkage -->
83
+ <body name="right_driver" pos="0 0.0306011 0.054904">
84
+ <inertial mass="0.00899563" pos="2.96931e-12 0.0177547 0.00107314" quat="0.681301 0.732003 0 0"
85
+ diaginertia="1.72352e-06 1.60906e-06 3.22006e-07"/>
86
+ <joint name="right_driver_joint" class="driver"/>
87
+ <geom class="visual" mesh="driver" material="gray"/>
88
+ <geom class="collision" mesh="driver"/>
89
+ <body name="right_coupler" pos="0 0.0315 -0.0041">
90
+ <inertial mass="0.0140974" pos="0 0.00301209 0.0232175" quat="0.705636 -0.0455904 0.0455904 0.705636"
91
+ diaginertia="4.16206e-06 3.52216e-06 8.88131e-07"/>
92
+ <joint name="right_coupler_joint" class="coupler"/>
93
+ <geom class="visual" mesh="coupler" material="black"/>
94
+ <geom class="collision" mesh="coupler"/>
95
+ </body>
96
+ </body>
97
+ <body name="right_spring_link" pos="0 0.0132 0.0609">
98
+ <inertial mass="0.0221642" pos="-8.65005e-09 0.0181624 0.0212658" quat="0.663403 -0.244737 0.244737 0.663403"
99
+ diaginertia="8.96853e-06 6.71733e-06 2.63931e-06"/>
100
+ <joint name="right_spring_link_joint" class="spring_link"/>
101
+ <geom class="visual" mesh="spring_link" material="black"/>
102
+ <geom class="collision" mesh="spring_link"/>
103
+ <body name="right_follower" pos="0 0.055 0.0375">
104
+ <inertial mass="0.0125222" pos="0 -0.011046 0.0124786" quat="1 0.1664 0 0"
105
+ diaginertia="2.67415e-06 2.4559e-06 6.02031e-07"/>
106
+ <joint name="right_follower_joint" class="follower"/>
107
+ <geom class="visual" mesh="follower" material="black"/>
108
+ <geom class="collision" mesh="follower"/>
109
+ <body name="right_pad" pos="0 -0.0189 0.01352">
110
+ <geom class="pad_box1" name="right_pad1"/>
111
+ <geom class="pad_box2" name="right_pad2"/>
112
+ <inertial mass="0.0035" pos="0 -0.0025 0.0185" quat="0.707107 0 0 0.707107"
113
+ diaginertia="4.73958e-07 3.64583e-07 1.23958e-07"/>
114
+ <geom class="visual" mesh="pad"/>
115
+ <body name="right_silicone_pad">
116
+ <geom class="visual" mesh="silicone_pad" material="black"/>
117
+ </body>
118
+ </body>
119
+ </body>
120
+ </body>
121
+ <!-- Left-hand side 4-bar linkage -->
122
+ <body name="left_driver" pos="0 -0.0306011 0.054904" quat="0 0 0 1">
123
+ <inertial mass="0.00899563" pos="0 0.0177547 0.00107314" quat="0.681301 0.732003 0 0"
124
+ diaginertia="1.72352e-06 1.60906e-06 3.22006e-07"/>
125
+ <joint name="left_driver_joint" class="driver"/>
126
+ <geom class="visual" mesh="driver" material="gray"/>
127
+ <geom class="collision" mesh="driver"/>
128
+ <body name="left_coupler" pos="0 0.0315 -0.0041">
129
+ <inertial mass="0.0140974" pos="0 0.00301209 0.0232175" quat="0.705636 -0.0455904 0.0455904 0.705636"
130
+ diaginertia="4.16206e-06 3.52216e-06 8.88131e-07"/>
131
+ <joint name="left_coupler_joint" class="coupler"/>
132
+ <geom class="visual" mesh="coupler" material="black"/>
133
+ <geom class="collision" mesh="coupler"/>
134
+ </body>
135
+ </body>
136
+ <body name="left_spring_link" pos="0 -0.0132 0.0609" quat="0 0 0 1">
137
+ <inertial mass="0.0221642" pos="-8.65005e-09 0.0181624 0.0212658" quat="0.663403 -0.244737 0.244737 0.663403"
138
+ diaginertia="8.96853e-06 6.71733e-06 2.63931e-06"/>
139
+ <joint name="left_spring_link_joint" class="spring_link"/>
140
+ <geom class="visual" mesh="spring_link" material="black"/>
141
+ <geom class="collision" mesh="spring_link"/>
142
+ <body name="left_follower" pos="0 0.055 0.0375">
143
+ <inertial mass="0.0125222" pos="0 -0.011046 0.0124786" quat="1 0.1664 0 0"
144
+ diaginertia="2.67415e-06 2.4559e-06 6.02031e-07"/>
145
+ <joint name="left_follower_joint" class="follower"/>
146
+ <geom class="visual" mesh="follower" material="black"/>
147
+ <geom class="collision" mesh="follower"/>
148
+ <body name="left_pad" pos="0 -0.0189 0.01352">
149
+ <geom class="pad_box1" name="left_pad1"/>
150
+ <geom class="pad_box2" name="left_pad2"/>
151
+ <inertial mass="0.0035" pos="0 -0.0025 0.0185" quat="1 0 0 1"
152
+ diaginertia="4.73958e-07 3.64583e-07 1.23958e-07"/>
153
+ <geom class="visual" mesh="pad"/>
154
+ <body name="left_silicone_pad">
155
+ <geom class="visual" mesh="silicone_pad" material="black"/>
156
+ </body>
157
+ </body>
158
+ </body>
159
+ </body>
160
+ </body>
161
+ </body>
162
+ </worldbody>
163
+
164
+ <contact>
165
+ <exclude body1="base" body2="left_driver"/>
166
+ <exclude body1="base" body2="right_driver"/>
167
+ <exclude body1="base" body2="left_spring_link"/>
168
+ <exclude body1="base" body2="right_spring_link"/>
169
+ <exclude body1="right_coupler" body2="right_follower"/>
170
+ <exclude body1="left_coupler" body2="left_follower"/>
171
+ </contact>
172
+
173
+ <!--
174
+ This adds stability to the model by having a tendon that distributes the forces between both
175
+ joints, such that the equality constraint doesn't have to do that much work in order to equalize
176
+ both joints. Since both joints share the same sign, we split the force between both equally by
177
+ setting coef=0.5
178
+ -->
179
+ <tendon>
180
+ <fixed name="split">
181
+ <joint joint="right_driver_joint" coef="0.5"/>
182
+ <joint joint="left_driver_joint" coef="0.5"/>
183
+ </fixed>
184
+ </tendon>
185
+
186
+ <equality>
187
+ <connect anchor="0 0 0" body1="right_follower" body2="right_coupler" solimp="0.95 0.99 0.001" solref="0.005 1"/>
188
+ <connect anchor="0 0 0" body1="left_follower" body2="left_coupler" solimp="0.95 0.99 0.001" solref="0.005 1"/>
189
+ <joint joint1="right_driver_joint" joint2="left_driver_joint" polycoef="0 1 0 0 0" solimp="0.95 0.99 0.001"
190
+ solref="0.005 1"/>
191
+ </equality>
192
+
193
+ <!--
194
+ The general actuator below is a customized position actuator (with some damping) where
195
+ gainprm[0] != kp (see http://mujoco.org/book/modeling.html#position).
196
+ The reason why gainprm[0] != kp is because the control input range has to be re-scaled to
197
+ [0, 255]. The joint range is currently set at [0, 0.8], the control range is [0, 255] and
198
+ kp = 100. Tau = Kp * scale * control_input - Kp * error, max(Kp * scale * control_input) = 0.8,
199
+ hence scale = 0.8 * 100 / 255
200
+ -->
201
+ <actuator>
202
+ <general class="2f85" name="fingers_actuator" tendon="split" forcerange="-5 5" ctrlrange="0 255"
203
+ gainprm="0.3137255 0 0" biasprm="0 -100 -10"/>
204
+ </actuator>
205
+ </mujoco>
robots/robotiq_2f85/LICENSE ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2013, ROS-Industrial
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ Redistributions in binary form must reproduce the above copyright notice, this
11
+ list of conditions and the following disclaimer in the documentation and/or
12
+ other materials provided with the distribution.
13
+
14
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
18
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
21
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
robots/robotiq_2f85/PROVENANCE.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## `embodiments/robotiq_2f85/` — Robotiq 2F-85, from MuJoCo Menagerie
2
+
3
+ **Source:** `google-deepmind/mujoco_menagerie` @ `affef083`, folder
4
+ `robotiq_2f85`. The commit is Newton's own `MENAGERIE_REF`, read off
5
+ `newton._src.utils.download_assets`, and fetched by a development script not in
6
+ this repository. The model is **BSD 2-Clause**: `LICENSE` is the file
7
+ Menagerie ships beside it, "Copyright (c) 2013, ROS-Industrial", and the
8
+ vendored `README.md` says the same.
9
+
10
+ **Files:** Menagerie's bytes, unmodified (`2f85.xml`, `assets/*.stl`,
11
+ `LICENSE`), and its `README.md` with the two links to files not vendored here
12
+ (`CHANGELOG.md`, `2f85.png`) pointed at Menagerie.
13
+
14
+ **At build**, `EntityEmbodiment._attach_hands` imports it with `parent_body` set
15
+ to the arm's flange, switches its MuJoCo actuators to `JOINT_TARGET` (a live
16
+ tendon actuator fights a joint target; Newton's composer test uses the same
17
+ setting), and puts `right_driver_joint` / `left_driver_joint` in position mode.
18
+ Nothing on disk changes.
19
+
20
+ **Measured** on a tool-sorting scene, welded to a UR5e, closing under physics:
21
+ pad centres 0.09793 m apart at full open and 0.01252 m at full closed, i.e.
22
+ **0.0854 m of travel against the published 0.085 m stroke**. Closing axis
23
+ tool-local ±x, a right angle from the `GripperSpec` default. `housing_half`
24
+ measures 0.0424 here against the Isaac stage export's 0.0425.
25
+
26
+ ---
27
+
robots/robotiq_2f85/README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Robotiq 2F-85 Description (MJCF)
2
+
3
+ > [!IMPORTANT]
4
+ > Requires MuJoCo 2.2.2 or later.
5
+
6
+ ## Changelog
7
+
8
+ See [CHANGELOG.md](https://github.com/google-deepmind/mujoco_menagerie/tree/main/robotiq_2f85/CHANGELOG.md) in MuJoCo Menagerie for a full history of
9
+ changes (not vendored here).
10
+
11
+ ## Overview
12
+
13
+ This package contains a simplified robot description (MJCF) of the [Robotiq 85mm
14
+ 2-Finger Adaptive
15
+ Gripper](https://robotiq.com/products/2f85-140-adaptive-robot-gripper) developed
16
+ by [Robotiq](https://robotiq.com/). It is derived from the [publicly available
17
+ URDF
18
+ description](https://github.com/ros-industrial/robotiq/tree/kinetic-devel/robotiq_2f_85_gripper_visualization).
19
+
20
+ A picture of the gripper is [`2f85.png`](https://github.com/google-deepmind/mujoco_menagerie/tree/main/robotiq_2f85/2f85.png) in MuJoCo Menagerie
21
+ (not vendored here).
22
+
23
+ ## URDF → MJCF derivation steps
24
+
25
+ 1. Added `<mujoco> <compiler discardvisual="false"/> </mujoco>` to the URDF's
26
+ `<robot>` clause in order to preserve visual geometries.
27
+ 2. Loaded the URDF into MuJoCo and saved a corresponding MJCF.
28
+ 3. Manually edited the MJCF to extract common properties into the `<default>` section.
29
+ 4. Added `<exclude>` clauses to prevent collisions between the linkage bodies.
30
+ 5. Broke up collision pads into two pads for more contacts.
31
+ 6. Increased pad friction and priority.
32
+ 7. Added `impratio=10` for better noslip.
33
+ 8. Added `scene.xml` which includes the robot, with a textured groundplane, skybox, and haze.
34
+ 9. Added hanging box to `scene.xml`.
35
+
36
+ ## License
37
+
38
+ This model is released under a [BSD-2-Clause License](LICENSE).
robots/robotiq_2f85/assets/base.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c7b9f2bd92d705fc4e897c94e905973a3c05f406845e942229433deb7041453
3
+ size 1712484
robots/robotiq_2f85/assets/base_mount.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87971dfdd6e5311b5a723e7b73c4701ebf5c2364df671500f30dfc1c53c8e61a
3
+ size 1091784
robots/robotiq_2f85/assets/coupler.stl ADDED
Binary file (89.1 kB). View file
 
robots/robotiq_2f85/assets/driver.stl ADDED
Binary file (67.1 kB). View file
 
robots/robotiq_2f85/assets/follower.stl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:633793332c081641ce200df27a40643cc293b29956e3cb5cb29cb811c33ef1c7
3
+ size 110484
robots/robotiq_2f85/assets/pad.stl ADDED
Binary file (15.1 kB). View file
 
robots/robotiq_2f85/assets/silicone_pad.stl ADDED
Binary file (15.1 kB). View file
 
robots/robotiq_2f85/assets/spring_link.stl ADDED
Binary file (84.9 kB). View file