Skip to content

Commit 00dd69d

Browse files
committed
feat: added mjcf xarm7
1 parent 41b43a7 commit 00dd69d

24 files changed

Lines changed: 321 additions & 4 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../xarm7/stl
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../xarm7/mjcf/xarm7.xml
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<mujoco model="xarm7 scene">
2+
<include file="robot.xml"/>
3+
4+
<statistic center="0.2 0 0.4" extent=".65"/>
5+
6+
<visual>
7+
<headlight diffuse="0.6 0.6 0.6" ambient="0.3 0.3 0.3" specular="0 0 0"/>
8+
<rgba haze="0.15 0.25 0.35 1"/>
9+
<global azimuth="150" elevation="-20"/>
10+
</visual>
11+
12+
<asset>
13+
<texture type="skybox" builtin="gradient" rgb1="0.3 0.5 0.7" rgb2="0 0 0" width="512" height="3072"/>
14+
<texture type="2d" name="groundplane" builtin="checker" mark="edge" rgb1="0.2 0.3 0.4" rgb2="0.1 0.2 0.3"
15+
markrgb="0.8 0.8 0.8" width="300" height="300"/>
16+
<material name="groundplane" texture="groundplane" texuniform="true" texrepeat="5 5" reflectance="0.2"/>
17+
</asset>
18+
19+
<worldbody>
20+
<light pos="0 0 1.5" dir="0 0 -1" directional="true"/>
21+
<geom name="floor" size="0 0 0.05" type="plane" material="groundplane"/>
22+
<geom type="cylinder" size=".06 .06" pos="0 0 .06" rgba="1 1 1 1"/>
23+
</worldbody>
24+
</mujoco>

assets/xarm7/mjcf/xarm7.xml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<mujoco model="xarm7 nohand">
2+
<compiler angle="radian" autolimits="true" meshdir="assets"/>
3+
4+
<option integrator="implicitfast"/>
5+
6+
<asset>
7+
<material name="white" rgba="1 1 1 1"/>
8+
<material name="gray" rgba="0.753 0.753 0.753 1"/>
9+
10+
<mesh file="link_base.stl"/>
11+
<mesh file="link1.stl"/>
12+
<mesh file="link2.stl"/>
13+
<mesh file="link3.stl"/>
14+
<mesh file="link4.stl"/>
15+
<mesh file="link5.stl"/>
16+
<mesh file="link6.stl"/>
17+
<mesh file="link7.stl"/>
18+
<mesh file="end_tool.stl"/>
19+
</asset>
20+
21+
<default>
22+
<default class="xarm7">
23+
<geom type="mesh" material="white"/>
24+
<joint axis="0 0 1" armature="0.1" range="-6.28319 6.28319" frictionloss="1"/>
25+
<general biastype="affine" ctrlrange="-6.28319 6.28319"/>
26+
<default class="size1">
27+
<joint damping="10" actuatorgravcomp="true"/>
28+
<general gainprm="1500" biasprm="0 -1500 -150" forcerange="-50 50"/>
29+
</default>
30+
<default class="size2">
31+
<joint damping="5" actuatorgravcomp="true"/>
32+
<general gainprm="1000" biasprm="0 -1000 -100" forcerange="-30 30"/>
33+
</default>
34+
<default class="size3">
35+
<joint damping="2" actuatorgravcomp="true"/>
36+
<general gainprm="800" biasprm="0 -800 -80" forcerange="-20 20"/>
37+
</default>
38+
<site size="0.001" rgba="1 0 0 1" group="4"/>
39+
</default>
40+
</default>
41+
42+
<worldbody>
43+
<body name="base" pos="0 0 .12" childclass="xarm7" gravcomp="1">
44+
<inertial pos="-0.021131 -0.0016302 0.056488" quat="0.696843 0.20176 0.10388 0.680376" mass="0.88556"
45+
diaginertia="0.00382023 0.00335282 0.00167725"/>
46+
<geom mesh="link_base"/>
47+
<body name="link1" pos="0 0 0.267" gravcomp="1">
48+
<inertial pos="-0.0002 0.02905 -0.01233" quat="0.978953 -0.202769 -0.00441617 -0.0227264" mass="2.382"
49+
diaginertia="0.00569127 0.00533384 0.00293865"/>
50+
<joint name="joint1" class="size1"/>
51+
<geom mesh="link1"/>
52+
<body name="link2" quat="1 -1 0 0" gravcomp="1">
53+
<inertial pos="0.00022 -0.12856 0.01735" quat="0.50198 0.86483 -0.00778841 0.00483285" mass="1.869"
54+
diaginertia="0.00959898 0.00937717 0.00201315"/>
55+
<joint name="joint2" range="-2.059 2.0944" class="size1"/>
56+
<geom mesh="link2"/>
57+
<body name="link3" pos="0 -0.293 0" quat="1 1 0 0" gravcomp="1">
58+
<inertial pos="0.0466 -0.02463 -0.00768" quat="0.913819 0.289775 0.281481 -0.0416455" mass="1.6383"
59+
diaginertia="0.00351721 0.00294089 0.00195868"/>
60+
<joint name="joint3" class="size2"/>
61+
<geom mesh="link3"/>
62+
<body name="link4" pos="0.0525 0 0" quat="1 1 0 0" gravcomp="1">
63+
<inertial pos="0.07047 -0.11575 0.012" quat="0.422108 0.852026 -0.126025 0.282832" mass="1.7269"
64+
diaginertia="0.00657137 0.00647948 0.00186763"/>
65+
<joint name="joint4" range="-0.19198 3.927" class="size2"/>
66+
<geom mesh="link4"/>
67+
<body name="link5" pos="0.0775 -0.3425 0" quat="1 1 0 0" gravcomp="1">
68+
<inertial pos="-0.00032 0.01604 -0.026" quat="0.999311 -0.0304457 0.000577067 0.0212082" mass="1.3203"
69+
diaginertia="0.00534729 0.00499076 0.0013489"/>
70+
<joint name="joint5" class="size2"/>
71+
<geom mesh="link5"/>
72+
<body name="link6" quat="1 1 0 0" gravcomp="1">
73+
<inertial pos="0.06469 0.03278 0.02141" quat="-0.217672 0.772419 0.16258 0.574069" mass="1.325"
74+
diaginertia="0.00245421 0.00221646 0.00107273"/>
75+
<joint name="joint6" range="-1.69297 3.14159" class="size3"/>
76+
<geom mesh="link6"/>
77+
<body name="link7" pos="0.076 0.097 0" quat="1 -1 0 0" gravcomp="1">
78+
<inertial pos="0 -0.00677 -0.01098" quat="0.487612 0.512088 -0.512088 0.487612" mass="0.17"
79+
diaginertia="0.000132176 9.3e-05 5.85236e-05"/>
80+
<joint name="joint7" class="size3"/>
81+
<geom material="gray" mesh="end_tool"/>
82+
<site name="attachment_site"/>
83+
</body>
84+
</body>
85+
</body>
86+
</body>
87+
</body>
88+
</body>
89+
</body>
90+
</body>
91+
</worldbody>
92+
93+
<actuator>
94+
<general name="act1" joint="joint1" class="size1"/>
95+
<general name="act2" joint="joint2" class="size1" ctrlrange="-2.059 2.0944"/>
96+
<general name="act3" joint="joint3" class="size2"/>
97+
<general name="act4" joint="joint4" class="size2" ctrlrange="-0.19198 3.927"/>
98+
<general name="act5" joint="joint5" class="size2"/>
99+
<general name="act6" joint="joint6" class="size3" ctrlrange="-1.69297 3.14159"/>
100+
<general name="act7" joint="joint7" class="size3"/>
101+
</actuator>
102+
103+
<keyframe>
104+
<key name="home" qpos="0 -.247 0 .909 0 1.15644 0" ctrl="0 -.247 0 .909 0 1.15644 0"/>
105+
</keyframe>
106+
</mujoco>

assets/xarm7/stl/base_link.stl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:cdaa4cff22f7c9cff05c6a8ed32f94fd2b11a69d37dd97a159ccee2d8dd32f13
3+
size 1211434

assets/xarm7/stl/end_tool.stl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:e06112781cdd615b7df536569f50addb445a6f4b4acced6d53b0742018b6c768
3+
size 13084

assets/xarm7/stl/left_finger.stl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:a44756eb72f9c214cb37e61dc209cd7073fdff3e4271a7423476ef6fd090d2d4
3+
size 242684
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:e8e48692ad26837bb3d6a97582c89784d09948fc09bfe4e5a59017859ff04dac
3+
size 366284
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:501665812b08d67e764390db781e839adc6896a9540301d60adf606f57648921
3+
size 22284

assets/xarm7/stl/link1.stl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:34b541122df84d2ef5fcb91b715eb19659dc15ad8d44a191dde481f780265636
3+
size 184184

0 commit comments

Comments
 (0)