blob: 122d7d66942252db59731890ac4b0b2a7ada0baf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
<mujoco model="robot">
<option timestep="0.001"
viscosity="1"
density="1"
integrator="implicitfast">
<flag contact="disable"
warmstart="disable"
equality="enable"
frictionloss="disable"
midphase="enable"
nativeccd="enable"
override="disable"
fwdinv="disable"
invdiscrete="disable"
multiccd="enable"/>
</option>
<compiler alignfree="true"
balanceinertia="true"
angle="degree"/>
<default>
<geom contype="1" condim="1"/>
<site size=".0081"/>
<position kp="100" kv="10"/>
<default class="foundation">
<geom type="mesh" mesh="foundation" material="static"/>
</default>
<default class="base-link">
<geom type="mesh" mesh="base-link" material="static"/>
</default>
<default class="arm">
</default>
<default class="shoulder">
<geom type="mesh" material="shoulder"
contype="2" conaffinity="3"/>
<joint type="hinge" axis="0 0 1"/>
</default>
<default class="rod">
<geom type="mesh" mesh="rod" material="rod"
contype="4" conaffinity="5"/>
<joint type="ball"/>
<site pos=".65 0 0"/>
</default>
<default class="carriage">
<geom type="mesh" mesh="carriage" material="carriage"
contype="8" conaffinity="9"/>
</default>
</default>
<visual>
<global offwidth="1200" offheight="900"/>
<quality shadowsize="2048"/>
<map znear="0.01"/>
</visual>
<asset>
<texture name="grid" type="2d" builtin="checker" rgb1=".1 .2 .3"
rgb2=".2 .3 .4" width="300" height="300"/>
<material name="grid" texture="grid" texrepeat="8 8" reflectance=".2"/>
<material name="static" rgba=".5 .5 .5 1" shininess=".5"/>
<material name="shoulder" rgba=".7 .3 .3 1" shininess=".5"/>
<material name="rod" rgba=".3 .3 .7 1" shininess=".5"/>
<material name="carriage" rgba=".3 .7 .3 1" shininess=".5"/>
<mesh name="foundation" file="meshes/foundation.stl"/>
<mesh name="base-link" file="meshes/base-link.stl"/>
<mesh name="shoulder-horizontal" file="meshes/shoulder-horizontal.stl"/>
<mesh name="shoulder-vertical" file="meshes/shoulder-vertical.stl"/>
<mesh name="rod" file="meshes/rod.stl"/>
<mesh name="carriage" file="meshes/carriage.stl"/>
</asset>
<worldbody>
<geom name="ground" type="plane" material="grid"
pos=".5 0 0" size="1 1 0.1"/>
<light directional="true" diffuse=".8 .8 .8" specular=".3 .3 .3"
pos="0 0 5" dir="0 0 -1"/>
<body childclass="foundation" name="foundation">
<geom/>
<body childclass="base-link" name="base-link">
<geom pos="0 0 .19"/>
<body childclass="arm" name="arm-left"
pos=".274 -.15 1.48" euler="0 15 60">
<body childclass="shoulder" name="shoulder-left">
<geom mesh="shoulder-horizontal"/>
<joint name="shoulder-left"/>
<body childclass="rod" name="rods-left"
pos=".549 -.02 0" euler="-8 0 0">
<body name="rod-left-lower" pos="0 0 -.04" euler="0 0 -80">
<geom/>
<joint name="shoulder-left-rod-lower"/>
<site name="rod-left-lower"/>
</body>
<body name="rod-left-upper" pos="0 0 .04" euler="0 180 -100">
<geom/>
<joint name="shoulder-left-rod-upper"/>
<site name="rod-left-upper"/>
</body>
</body>
</body>
</body>
<body childclass="arm" name="arm-right"
pos=".305 .15 1.595" euler="180 -15 60">
<body childclass="shoulder" name="shoulder-right">
<geom mesh="shoulder-horizontal"/>
<joint name="shoulder-right"/>
<body childclass="rod" name="rods-right"
pos=".549 -.02 0" euler="-3 0 0">
<body name="rod-right-lower" pos="0 0 .04" euler="0 180 -80">
<geom/>
<joint name="shoulder-right-rod-lower"/>
<site name="rod-right-lower"/>
</body>
<body name="rod-right-upper" pos="0 0 -.04" euler="0 0 -100">
<geom/>
<joint name="shoulder-right-rod-upper"/>
<site name="rod-right-upper"/>
</body>
</body>
</body>
</body>
<body childclass="arm" name="arm-upper"
pos=".282 -.02 1.684" euler="-90 0 -30">
<body childclass="shoulder" name="shoulder-upper">
<geom mesh="shoulder-vertical"/>
<joint name="shoulder-upper"/>
<body childclass="rod" name="rods-upper"
pos=".552 .022 0" euler="0 0 -10">
<body name="rod-upper-left" pos="0 0 -.05" euler="0 0 95">
<geom/>
<joint name="shoulder-upper-rod-left"/>
<site name="rod-upper-left"/>
</body>
<body name="rod-upper-right" pos="0 0 .05" euler="180 0 -95">
<geom/>
<joint name="shoulder-upper-rod-right"/>
<site name="rod-upper-right"/>
</body>
</body>
</body>
</body>
</body>
</body>
<body childclass="carriage" name="carriage" pos="1.170 -.004 1.332">
<!-- <freejoint/> -->
<joint type="slide" axis="1 0 0"/>
<joint type="slide" axis="0 1 0"/>
<joint type="slide" axis="0 0 1"/>
<geom/>
<site name="carriage-left-lower" pos="-.0472 +.057498 -.0367589"/>
<site name="carriage-left-upper" pos="-.0275 +.057498 +.0367589"/>
<site name="carriage-right-lower" pos="-.0472 -.057498 -.0367589"/>
<site name="carriage-right-upper" pos="-.0275 -.057498 +.0367589"/>
<site name="carriage-upper-left" pos="+.0000 -.050555 +.0397000"/>
<site name="carriage-upper-right" pos="+.0000 +.050555 +.0397000"/>
</body>
</worldbody>
<equality>
<connect site1="carriage-left-lower" site2="rod-left-lower"/>
<connect site1="carriage-left-upper" site2="rod-left-upper"/>
<connect site1="carriage-right-lower" site2="rod-right-lower"/>
<connect site1="carriage-right-upper" site2="rod-right-upper"/>
<connect site1="carriage-upper-left" site2="rod-upper-left"/>
<connect site1="carriage-upper-right" site2="rod-upper-right"/>
</equality>
<actuator>
<position name="servo-left" joint="shoulder-left"/>
<position name="servo-right" joint="shoulder-right"/>
<position name="servo-upper" joint="shoulder-upper"/>
</actuator>
</mujoco>
|