aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-09 17:48:23 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-09 18:03:25 +0000
commitbd1b82e7eba0695ad7bb62ca0482e756dc374ba4 (patch)
tree8cc51952853cd21cd55b48974c94d57f955ea555 /res
downloadsummer-practice-bd1b82e7eba0695ad7bb62ca0482e756dc374ba4.tar.gz
publishHEADmaster
Diffstat (limited to 'res')
-rw-r--r--res/mimic.sdf655
-rw-r--r--res/robot.mjcf186
-rw-r--r--res/robot.sdf123
-rw-r--r--res/robot.urdf241
4 files changed, 1205 insertions, 0 deletions
diff --git a/res/mimic.sdf b/res/mimic.sdf
new file mode 100644
index 0000000..7bcbdfa
--- /dev/null
+++ b/res/mimic.sdf
@@ -0,0 +1,655 @@
1<?xml version="1.0" ?>
2<!--
3 Gazebo Mimic constraint demo
4
5-->
6<sdf version="1.6">
7 <world name="default">
8 <physics name="1ms" type="ode">
9 <max_step_size>0.001</max_step_size>
10 <real_time_factor>0</real_time_factor>
11 </physics>
12
13 <light type="directional" name="sun">
14 <cast_shadows>true</cast_shadows>
15 <pose>0 0 10 0 0 0</pose>
16 <diffuse>0.8 0.8 0.8 1</diffuse>
17 <specular>0.2 0.2 0.2 1</specular>
18 <attenuation>
19 <range>1000</range>
20 <constant>0.9</constant>
21 <linear>0.01</linear>
22 <quadratic>0.001</quadratic>
23 </attenuation>
24 <direction>-0.5 0.1 -0.9</direction>
25 </light>
26
27 <model name="ground_plane">
28 <static>true</static>
29 <link name="link">
30 <collision name="collision">
31 <geometry>
32 <plane>
33 <normal>0 0 1</normal>
34 <size>100 100</size>
35 </plane>
36 </geometry>
37 </collision>
38 <visual name="visual">
39 <geometry>
40 <plane>
41 <normal>0 0 1</normal>
42 <size>100 100</size>
43 </plane>
44 </geometry>
45 <material>
46 <ambient>0.8 0.8 0.8 1</ambient>
47 <diffuse>0.8 0.8 0.8 1</diffuse>
48 <specular>0.8 0.8 0.8 1</specular>
49 </material>
50 </visual>
51 </link>
52 </model>
53
54 <model name="pendulum_with_base">
55 <pose>0 0 0 0 0 0</pose>
56 <link name="base">
57 <inertial>
58 <mass>100</mass>
59 </inertial>
60 <visual name="vis_plate_on_ground">
61 <pose>0 0 0.01 0 0 0</pose>
62 <geometry>
63 <cylinder>
64 <radius>0.8</radius>
65 <length>0.02</length>
66 </cylinder>
67 </geometry>
68 <material>
69 <ambient>0.8 0.8 0.8 1</ambient>
70 <diffuse>0.8 0.8 0.8 1</diffuse>
71 <specular>0.8 0.8 0.8 1</specular>
72 </material>
73 </visual>
74 <visual name="vis_pole">
75 <pose>-0.275 0 1.1 0 0 0</pose>
76 <geometry>
77 <box>
78 <size>0.2 0.2 2.2</size>
79 </box>
80 </geometry>
81 <material>
82 <ambient>0.8 0.8 0.8 1</ambient>
83 <diffuse>0.8 0.8 0.8 1</diffuse>
84 <specular>0.8 0.8 0.8 1</specular>
85 </material>
86 </visual>
87 <collision name="col_plate_on_ground">
88 <pose>0 0 0.01 0 0 0</pose>
89 <geometry>
90 <cylinder>
91 <radius>0.8</radius>
92 <length>0.02</length>
93 </cylinder>
94 </geometry>
95 </collision>
96 <collision name="col_pole">
97 <pose>-0.275 0 1.1 0 0 0</pose>
98 <geometry>
99 <box>
100 <size>0.2 0.2 2.2</size>
101 </box>
102 </geometry>
103 </collision>
104 </link>
105
106 <!-- upper link 1, length 1, IC -90 degrees -->
107 <link name="upper_link_1">
108 <pose>0 0 2.1 -1.5708 0 0</pose>
109 <self_collide>0</self_collide>
110 <inertial>
111 <mass>1.0</mass>
112 <pose>0 0 0.5 0 0 0</pose>
113 <inertia>
114 <ixx>0.087</ixx>
115 <ixy>0</ixy>
116 <ixz>0</ixz>
117 <iyy>0.087</iyy>
118 <iyz>0</iyz>
119 <izz>0.006</izz>
120 </inertia>
121 </inertial>
122 <visual name="vis_upper_joint">
123 <pose>-0.05 0 0 0 1.5708 0</pose>
124 <geometry>
125 <cylinder>
126 <radius>0.1</radius>
127 <length>0.3</length>
128 </cylinder>
129 </geometry>
130 <material>
131 <ambient>0.8 0.8 0.8 1</ambient>
132 <diffuse>0.8 0.8 0.8 1</diffuse>
133 <specular>0.8 0.8 0.8 1</specular>
134 </material>
135 </visual>
136 <visual name="vis_cylinder">
137 <pose>0 0 0.5 0 0 0</pose>
138 <geometry>
139 <cylinder>
140 <radius>0.1</radius>
141 <length>1.0</length>
142 </cylinder>
143 </geometry>
144 <material>
145 <ambient>0.8 0.8 0.8 1</ambient>
146 <diffuse>0.8 0.8 0.8 1</diffuse>
147 <specular>0.8 0.8 0.8 1</specular>
148 </material>
149 </visual>
150 <collision name="col_upper_joint">
151 <pose>-0.05 0 0 0 1.5708 0</pose>
152 <geometry>
153 <cylinder>
154 <radius>0.1</radius>
155 <length>0.3</length>
156 </cylinder>
157 </geometry>
158 </collision>
159 <collision name="col_cylinder">
160 <pose>0 0 0.5 0 0 0</pose>
161 <geometry>
162 <cylinder>
163 <radius>0.1</radius>
164 <length>1.0</length>
165 </cylinder>
166 </geometry>
167 </collision>
168 </link>
169
170 <!-- upper link 2, length 0.5, IC -90 degrees -->
171 <link name="upper_link_2">
172 <pose>-0.5 0 2.1 -1.5708 0 0</pose>
173 <self_collide>0</self_collide>
174 <inertial>
175 <mass>1.0</mass>
176 <pose>0 0 0.25 0 0 0</pose>
177 <inertia>
178 <ixx>0.024</ixx>
179 <ixy>0</ixy>
180 <ixz>0</ixz>
181 <iyy>0.024</iyy>
182 <iyz>0</iyz>
183 <izz>0.006</izz>
184 </inertia>
185 </inertial>
186 <visual name="vis_upper_joint_2">
187 <pose>0.05 0 0 0 1.5708 0</pose>
188 <geometry>
189 <cylinder>
190 <radius>0.1</radius>
191 <length>0.3</length>
192 </cylinder>
193 </geometry>
194 <material>
195 <ambient>0.8 0.8 0.8 1</ambient>
196 <diffuse>0.8 0.8 0.8 1</diffuse>
197 <specular>0.8 0.8 0.8 1</specular>
198 </material>
199 </visual>
200 <visual name="vis_cylinder_2">
201 <pose>0 0 0.25 0 0 0</pose>
202 <geometry>
203 <cylinder>
204 <radius>0.1</radius>
205 <length>0.5</length>
206 </cylinder>
207 </geometry>
208 <material>
209 <ambient>0.8 0.8 0.8 1</ambient>
210 <diffuse>0.8 0.8 0.8 1</diffuse>
211 <specular>0.8 0.8 0.8 1</specular>
212 </material>
213 </visual>
214 <collision name="col_upper_joint_2">
215 <pose>0.05 0 0 0 1.5708 0</pose>
216 <geometry>
217 <cylinder>
218 <radius>0.1</radius>
219 <length>0.3</length>
220 </cylinder>
221 </geometry>
222 </collision>
223 <collision name="col_cylinder_2">
224 <pose>0 0 0.2 0 0 0</pose>
225 <geometry>
226 <cylinder>
227 <radius>0.1</radius>
228 <length>0.5</length>
229 </cylinder>
230 </geometry>
231 </collision>
232 </link>
233
234 <joint name="upper_joint_1" type="revolute">
235 <parent>base</parent>
236 <child>upper_link_1</child>
237 <axis>
238 <xyz>1.0 0 0</xyz>
239 </axis>
240 </joint>
241
242 <joint name="upper_joint_2" type="revolute">
243 <parent>base</parent>
244 <child>upper_link_2</child>
245 <axis>
246 <xyz>1.0 0 0</xyz>
247 </axis>
248 </joint>
249
250 </model>
251
252 <model name="pendulum_with_base_mimic_big_follows_small">
253 <pose>0 3 0 0 0 0</pose>
254 <link name="base">
255 <inertial>
256 <mass>100</mass>
257 </inertial>
258 <visual name="vis_plate_on_ground">
259 <pose>0 0 0.01 0 0 0</pose>
260 <geometry>
261 <cylinder>
262 <radius>0.8</radius>
263 <length>0.02</length>
264 </cylinder>
265 </geometry>
266 <material>
267 <ambient>0.8 0.8 0.8 1</ambient>
268 <diffuse>0.8 0.8 0.8 1</diffuse>
269 <specular>0.8 0.8 0.8 1</specular>
270 </material>
271 </visual>
272 <visual name="vis_pole">
273 <pose>-0.275 0 1.1 0 0 0</pose>
274 <geometry>
275 <box>
276 <size>0.2 0.2 2.2</size>
277 </box>
278 </geometry>
279 <material>
280 <ambient>0.8 0.8 0.8 1</ambient>
281 <diffuse>0.8 0.8 0.8 1</diffuse>
282 <specular>0.8 0.8 0.8 1</specular>
283 </material>
284 </visual>
285 <collision name="col_plate_on_ground">
286 <pose>0 0 0.01 0 0 0</pose>
287 <geometry>
288 <cylinder>
289 <radius>0.8</radius>
290 <length>0.02</length>
291 </cylinder>
292 </geometry>
293 </collision>
294 <collision name="col_pole">
295 <pose>-0.275 0 1.1 0 0 0</pose>
296 <geometry>
297 <box>
298 <size>0.2 0.2 2.2</size>
299 </box>
300 </geometry>
301 </collision>
302 </link>
303
304 <!-- upper link 1, length 1, IC -90 degrees -->
305 <link name="upper_link_1">
306 <pose>0 0 2.1 -1.5708 0 0</pose>
307 <self_collide>0</self_collide>
308 <inertial>
309 <mass>1.0</mass>
310 <pose>0 0 0.5 0 0 0</pose>
311 <inertia>
312 <ixx>0.087</ixx>
313 <ixy>0</ixy>
314 <ixz>0</ixz>
315 <iyy>0.087</iyy>
316 <iyz>0</iyz>
317 <izz>0.006</izz>
318 </inertia>
319 </inertial>
320 <visual name="vis_upper_joint">
321 <pose>-0.05 0 0 0 1.5708 0</pose>
322 <geometry>
323 <cylinder>
324 <radius>0.1</radius>
325 <length>0.3</length>
326 </cylinder>
327 </geometry>
328 <material>
329 <ambient>0.8 0.8 0.8 1</ambient>
330 <diffuse>0.8 0.8 0.8 1</diffuse>
331 <specular>0.8 0.8 0.8 1</specular>
332 </material>
333 </visual>
334 <visual name="vis_cylinder">
335 <pose>0 0 0.5 0 0 0</pose>
336 <geometry>
337 <cylinder>
338 <radius>0.1</radius>
339 <length>1.0</length>
340 </cylinder>
341 </geometry>
342 <material>
343 <ambient>0.8 0.8 0.8 1</ambient>
344 <diffuse>0.8 0.8 0.8 1</diffuse>
345 <specular>0.8 0.8 0.8 1</specular>
346 </material>
347 </visual>
348 <collision name="col_upper_joint">
349 <pose>-0.05 0 0 0 1.5708 0</pose>
350 <geometry>
351 <cylinder>
352 <radius>0.1</radius>
353 <length>0.3</length>
354 </cylinder>
355 </geometry>
356 </collision>
357 <collision name="col_cylinder">
358 <pose>0 0 0.5 0 0 0</pose>
359 <geometry>
360 <cylinder>
361 <radius>0.1</radius>
362 <length>1.0</length>
363 </cylinder>
364 </geometry>
365 </collision>
366 </link>
367
368 <!-- upper link 2, length 0.5, IC -90 degrees -->
369 <link name="upper_link_2">
370 <pose>-0.5 0 2.1 -1.5708 0 0</pose>
371 <self_collide>0</self_collide>
372 <inertial>
373 <mass>1.0</mass>
374 <pose>0 0 0.25 0 0 0</pose>
375 <inertia>
376 <ixx>0.024</ixx>
377 <ixy>0</ixy>
378 <ixz>0</ixz>
379 <iyy>0.024</iyy>
380 <iyz>0</iyz>
381 <izz>0.006</izz>
382 </inertia>
383 </inertial>
384 <visual name="vis_upper_joint_2">
385 <pose>0.05 0 0 0 1.5708 0</pose>
386 <geometry>
387 <cylinder>
388 <radius>0.1</radius>
389 <length>0.3</length>
390 </cylinder>
391 </geometry>
392 <material>
393 <ambient>0.8 0.8 0.8 1</ambient>
394 <diffuse>0.8 0.8 0.8 1</diffuse>
395 <specular>0.8 0.8 0.8 1</specular>
396 </material>
397 </visual>
398 <visual name="vis_cylinder_2">
399 <pose>0 0 0.25 0 0 0</pose>
400 <geometry>
401 <cylinder>
402 <radius>0.1</radius>
403 <length>0.5</length>
404 </cylinder>
405 </geometry>
406 <material>
407 <ambient>0.8 0.8 0.8 1</ambient>
408 <diffuse>0.8 0.8 0.8 1</diffuse>
409 <specular>0.8 0.8 0.8 1</specular>
410 </material>
411 </visual>
412 <collision name="col_upper_joint_2">
413 <pose>0.05 0 0 0 1.5708 0</pose>
414 <geometry>
415 <cylinder>
416 <radius>0.1</radius>
417 <length>0.3</length>
418 </cylinder>
419 </geometry>
420 </collision>
421 <collision name="col_cylinder_2">
422 <pose>0 0 0.2 0 0 0</pose>
423 <geometry>
424 <cylinder>
425 <radius>0.1</radius>
426 <length>0.5</length>
427 </cylinder>
428 </geometry>
429 </collision>
430 </link>
431
432 <joint name="upper_joint_1" type="revolute">
433 <parent>base</parent>
434 <child>upper_link_1</child>
435 <axis>
436 <xyz>1.0 0 0</xyz>
437 <mimic joint="upper_joint_2" axis="axis">
438 <multiplier>1</multiplier>
439 </mimic>
440 </axis>
441 </joint>
442
443 <joint name="upper_joint_2" type="revolute">
444 <parent>base</parent>
445 <child>upper_link_2</child>
446 <axis>
447 <xyz>1.0 0 0</xyz>
448 </axis>
449 </joint>
450
451 </model>
452
453 <model name="pendulum_with_base_mimic_small_follows_big">
454 <pose>0 -3 0 0 0 0</pose>
455 <link name="base">
456 <inertial>
457 <mass>100</mass>
458 </inertial>
459 <visual name="vis_plate_on_ground">
460 <pose>0 0 0.01 0 0 0</pose>
461 <geometry>
462 <cylinder>
463 <radius>0.8</radius>
464 <length>0.02</length>
465 </cylinder>
466 </geometry>
467 <material>
468 <ambient>0.8 0.8 0.8 1</ambient>
469 <diffuse>0.8 0.8 0.8 1</diffuse>
470 <specular>0.8 0.8 0.8 1</specular>
471 </material>
472 </visual>
473 <visual name="vis_pole">
474 <pose>-0.275 0 1.1 0 0 0</pose>
475 <geometry>
476 <box>
477 <size>0.2 0.2 2.2</size>
478 </box>
479 </geometry>
480 <material>
481 <ambient>0.8 0.8 0.8 1</ambient>
482 <diffuse>0.8 0.8 0.8 1</diffuse>
483 <specular>0.8 0.8 0.8 1</specular>
484 </material>
485 </visual>
486 <collision name="col_plate_on_ground">
487 <pose>0 0 0.01 0 0 0</pose>
488 <geometry>
489 <cylinder>
490 <radius>0.8</radius>
491 <length>0.02</length>
492 </cylinder>
493 </geometry>
494 </collision>
495 <collision name="col_pole">
496 <pose>-0.275 0 1.1 0 0 0</pose>
497 <geometry>
498 <box>
499 <size>0.2 0.2 2.2</size>
500 </box>
501 </geometry>
502 </collision>
503 </link>
504
505 <!-- upper link 1, length 1, IC -90 degrees -->
506 <link name="upper_link_1">
507 <pose>0 0 2.1 -1.5708 0 0</pose>
508 <self_collide>0</self_collide>
509 <inertial>
510 <mass>1.0</mass>
511 <pose>0 0 0.5 0 0 0</pose>
512 <inertia>
513 <ixx>0.087</ixx>
514 <ixy>0</ixy>
515 <ixz>0</ixz>
516 <iyy>0.087</iyy>
517 <iyz>0</iyz>
518 <izz>0.006</izz>
519 </inertia>
520 </inertial>
521 <visual name="vis_upper_joint">
522 <pose>-0.05 0 0 0 1.5708 0</pose>
523 <geometry>
524 <cylinder>
525 <radius>0.1</radius>
526 <length>0.3</length>
527 </cylinder>
528 </geometry>
529 <material>
530 <ambient>0.8 0.8 0.8 1</ambient>
531 <diffuse>0.8 0.8 0.8 1</diffuse>
532 <specular>0.8 0.8 0.8 1</specular>
533 </material>
534 </visual>
535 <visual name="vis_cylinder">
536 <pose>0 0 0.5 0 0 0</pose>
537 <geometry>
538 <cylinder>
539 <radius>0.1</radius>
540 <length>1.0</length>
541 </cylinder>
542 </geometry>
543 <material>
544 <ambient>0.8 0.8 0.8 1</ambient>
545 <diffuse>0.8 0.8 0.8 1</diffuse>
546 <specular>0.8 0.8 0.8 1</specular>
547 </material>
548 </visual>
549 <collision name="col_upper_joint">
550 <pose>-0.05 0 0 0 1.5708 0</pose>
551 <geometry>
552 <cylinder>
553 <radius>0.1</radius>
554 <length>0.3</length>
555 </cylinder>
556 </geometry>
557 </collision>
558 <collision name="col_cylinder">
559 <pose>0 0 0.5 0 0 0</pose>
560 <geometry>
561 <cylinder>
562 <radius>0.1</radius>
563 <length>1.0</length>
564 </cylinder>
565 </geometry>
566 </collision>
567 </link>
568
569 <!-- upper link 2, length 0.5, IC -90 degrees -->
570 <link name="upper_link_2">
571 <pose>-0.5 0 2.1 -1.5708 0 0</pose>
572 <self_collide>0</self_collide>
573 <inertial>
574 <mass>1.0</mass>
575 <pose>0 0 0.25 0 0 0</pose>
576 <inertia>
577 <ixx>0.024</ixx>
578 <ixy>0</ixy>
579 <ixz>0</ixz>
580 <iyy>0.024</iyy>
581 <iyz>0</iyz>
582 <izz>0.006</izz>
583 </inertia>
584 </inertial>
585 <visual name="vis_upper_joint_2">
586 <pose>0.05 0 0 0 1.5708 0</pose>
587 <geometry>
588 <cylinder>
589 <radius>0.1</radius>
590 <length>0.3</length>
591 </cylinder>
592 </geometry>
593 <material>
594 <ambient>0.8 0.8 0.8 1</ambient>
595 <diffuse>0.8 0.8 0.8 1</diffuse>
596 <specular>0.8 0.8 0.8 1</specular>
597 </material>
598 </visual>
599 <visual name="vis_cylinder_2">
600 <pose>0 0 0.25 0 0 0</pose>
601 <geometry>
602 <cylinder>
603 <radius>0.1</radius>
604 <length>0.5</length>
605 </cylinder>
606 </geometry>
607 <material>
608 <ambient>0.8 0.8 0.8 1</ambient>
609 <diffuse>0.8 0.8 0.8 1</diffuse>
610 <specular>0.8 0.8 0.8 1</specular>
611 </material>
612 </visual>
613 <collision name="col_upper_joint_2">
614 <pose>0.05 0 0 0 1.5708 0</pose>
615 <geometry>
616 <cylinder>
617 <radius>0.1</radius>
618 <length>0.3</length>
619 </cylinder>
620 </geometry>
621 </collision>
622 <collision name="col_cylinder_2">
623 <pose>0 0 0.2 0 0 0</pose>
624 <geometry>
625 <cylinder>
626 <radius>0.1</radius>
627 <length>0.5</length>
628 </cylinder>
629 </geometry>
630 </collision>
631 </link>
632
633 <joint name="upper_joint_1" type="revolute">
634 <parent>base</parent>
635 <child>upper_link_1</child>
636 <axis>
637 <xyz>1.0 0 0</xyz>
638 </axis>
639 </joint>
640
641 <joint name="upper_joint_2" type="revolute">
642 <parent>base</parent>
643 <child>upper_link_2</child>
644 <axis>
645 <xyz>1.0 0 0</xyz>
646 <mimic joint="upper_joint_1" axis="axis">
647 <multiplier>1</multiplier>
648 </mimic>
649 </axis>
650 </joint>
651
652 </model>
653
654 </world>
655</sdf>
diff --git a/res/robot.mjcf b/res/robot.mjcf
new file mode 100644
index 0000000..122d7d6
--- /dev/null
+++ b/res/robot.mjcf
@@ -0,0 +1,186 @@
1<mujoco model="robot">
2 <option timestep="0.001"
3 viscosity="1"
4 density="1"
5 integrator="implicitfast">
6 <flag contact="disable"
7 warmstart="disable"
8 equality="enable"
9 frictionloss="disable"
10 midphase="enable"
11 nativeccd="enable"
12 override="disable"
13 fwdinv="disable"
14 invdiscrete="disable"
15 multiccd="enable"/>
16 </option>
17
18 <compiler alignfree="true"
19 balanceinertia="true"
20 angle="degree"/>
21
22 <default>
23 <geom contype="1" condim="1"/>
24 <site size=".0081"/>
25 <position kp="100" kv="10"/>
26
27 <default class="foundation">
28 <geom type="mesh" mesh="foundation" material="static"/>
29 </default>
30
31 <default class="base-link">
32 <geom type="mesh" mesh="base-link" material="static"/>
33 </default>
34
35 <default class="arm">
36 </default>
37
38 <default class="shoulder">
39 <geom type="mesh" material="shoulder"
40 contype="2" conaffinity="3"/>
41 <joint type="hinge" axis="0 0 1"/>
42 </default>
43
44 <default class="rod">
45 <geom type="mesh" mesh="rod" material="rod"
46 contype="4" conaffinity="5"/>
47 <joint type="ball"/>
48 <site pos=".65 0 0"/>
49 </default>
50
51 <default class="carriage">
52 <geom type="mesh" mesh="carriage" material="carriage"
53 contype="8" conaffinity="9"/>
54 </default>
55 </default>
56
57 <visual>
58 <global offwidth="1200" offheight="900"/>
59 <quality shadowsize="2048"/>
60 <map znear="0.01"/>
61 </visual>
62
63 <asset>
64 <texture name="grid" type="2d" builtin="checker" rgb1=".1 .2 .3"
65 rgb2=".2 .3 .4" width="300" height="300"/>
66 <material name="grid" texture="grid" texrepeat="8 8" reflectance=".2"/>
67 <material name="static" rgba=".5 .5 .5 1" shininess=".5"/>
68 <material name="shoulder" rgba=".7 .3 .3 1" shininess=".5"/>
69 <material name="rod" rgba=".3 .3 .7 1" shininess=".5"/>
70 <material name="carriage" rgba=".3 .7 .3 1" shininess=".5"/>
71
72 <mesh name="foundation" file="meshes/foundation.stl"/>
73 <mesh name="base-link" file="meshes/base-link.stl"/>
74 <mesh name="shoulder-horizontal" file="meshes/shoulder-horizontal.stl"/>
75 <mesh name="shoulder-vertical" file="meshes/shoulder-vertical.stl"/>
76 <mesh name="rod" file="meshes/rod.stl"/>
77 <mesh name="carriage" file="meshes/carriage.stl"/>
78 </asset>
79
80 <worldbody>
81 <geom name="ground" type="plane" material="grid"
82 pos=".5 0 0" size="1 1 0.1"/>
83 <light directional="true" diffuse=".8 .8 .8" specular=".3 .3 .3"
84 pos="0 0 5" dir="0 0 -1"/>
85
86 <body childclass="foundation" name="foundation">
87 <geom/>
88 <body childclass="base-link" name="base-link">
89 <geom pos="0 0 .19"/>
90
91 <body childclass="arm" name="arm-left"
92 pos=".274 -.15 1.48" euler="0 15 60">
93 <body childclass="shoulder" name="shoulder-left">
94 <geom mesh="shoulder-horizontal"/>
95 <joint name="shoulder-left"/>
96 <body childclass="rod" name="rods-left"
97 pos=".549 -.02 0" euler="-8 0 0">
98 <body name="rod-left-lower" pos="0 0 -.04" euler="0 0 -80">
99 <geom/>
100 <joint name="shoulder-left-rod-lower"/>
101 <site name="rod-left-lower"/>
102 </body>
103 <body name="rod-left-upper" pos="0 0 .04" euler="0 180 -100">
104 <geom/>
105 <joint name="shoulder-left-rod-upper"/>
106 <site name="rod-left-upper"/>
107 </body>
108 </body>
109 </body>
110 </body>
111
112 <body childclass="arm" name="arm-right"
113 pos=".305 .15 1.595" euler="180 -15 60">
114 <body childclass="shoulder" name="shoulder-right">
115 <geom mesh="shoulder-horizontal"/>
116 <joint name="shoulder-right"/>
117 <body childclass="rod" name="rods-right"
118 pos=".549 -.02 0" euler="-3 0 0">
119 <body name="rod-right-lower" pos="0 0 .04" euler="0 180 -80">
120 <geom/>
121 <joint name="shoulder-right-rod-lower"/>
122 <site name="rod-right-lower"/>
123 </body>
124 <body name="rod-right-upper" pos="0 0 -.04" euler="0 0 -100">
125 <geom/>
126 <joint name="shoulder-right-rod-upper"/>
127 <site name="rod-right-upper"/>
128 </body>
129 </body>
130 </body>
131 </body>
132
133 <body childclass="arm" name="arm-upper"
134 pos=".282 -.02 1.684" euler="-90 0 -30">
135 <body childclass="shoulder" name="shoulder-upper">
136 <geom mesh="shoulder-vertical"/>
137 <joint name="shoulder-upper"/>
138 <body childclass="rod" name="rods-upper"
139 pos=".552 .022 0" euler="0 0 -10">
140 <body name="rod-upper-left" pos="0 0 -.05" euler="0 0 95">
141 <geom/>
142 <joint name="shoulder-upper-rod-left"/>
143 <site name="rod-upper-left"/>
144 </body>
145 <body name="rod-upper-right" pos="0 0 .05" euler="180 0 -95">
146 <geom/>
147 <joint name="shoulder-upper-rod-right"/>
148 <site name="rod-upper-right"/>
149 </body>
150 </body>
151 </body>
152 </body>
153 </body>
154 </body>
155
156 <body childclass="carriage" name="carriage" pos="1.170 -.004 1.332">
157 <!-- <freejoint/> -->
158 <joint type="slide" axis="1 0 0"/>
159 <joint type="slide" axis="0 1 0"/>
160 <joint type="slide" axis="0 0 1"/>
161
162 <geom/>
163 <site name="carriage-left-lower" pos="-.0472 +.057498 -.0367589"/>
164 <site name="carriage-left-upper" pos="-.0275 +.057498 +.0367589"/>
165 <site name="carriage-right-lower" pos="-.0472 -.057498 -.0367589"/>
166 <site name="carriage-right-upper" pos="-.0275 -.057498 +.0367589"/>
167 <site name="carriage-upper-left" pos="+.0000 -.050555 +.0397000"/>
168 <site name="carriage-upper-right" pos="+.0000 +.050555 +.0397000"/>
169 </body>
170 </worldbody>
171
172 <equality>
173 <connect site1="carriage-left-lower" site2="rod-left-lower"/>
174 <connect site1="carriage-left-upper" site2="rod-left-upper"/>
175 <connect site1="carriage-right-lower" site2="rod-right-lower"/>
176 <connect site1="carriage-right-upper" site2="rod-right-upper"/>
177 <connect site1="carriage-upper-left" site2="rod-upper-left"/>
178 <connect site1="carriage-upper-right" site2="rod-upper-right"/>
179 </equality>
180
181 <actuator>
182 <position name="servo-left" joint="shoulder-left"/>
183 <position name="servo-right" joint="shoulder-right"/>
184 <position name="servo-upper" joint="shoulder-upper"/>
185 </actuator>
186</mujoco>
diff --git a/res/robot.sdf b/res/robot.sdf
new file mode 100644
index 0000000..d6f8ab1
--- /dev/null
+++ b/res/robot.sdf
@@ -0,0 +1,123 @@
1<?xml version="1.0"?>
2<sdf version="1.12">
3 <model name="robot" canonical_link="foundation">
4 <!--
5 <material name="static_m"> <color rgba="0.5 0.5 0.5 1"/></material>
6 <material name="shoulder_m"><color rgba="0.7 0.3 0.3 1"/></material>
7 <material name="rod_m"> <color rgba="0.3 0.3 0.7 1"/></material>
8 <material name="carriage_m"><color rgba="0.3 0.7 0.3 1"/></material>
9 -->
10
11 <link name="foundation">
12 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
13 <visual name="foundation_v"><geometry><mesh><uri>file://meshes/foundation.stl</uri></mesh></geometry></visual>
14 <collision name="foundation_c"><geometry><mesh><uri>file://meshes/foundation.stl</uri></mesh></geometry></collision>
15 </link>
16
17 <link name="base_link">
18 <pose relative_to="base_link_joint">0 0 0 0 0 0</pose>
19 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
20 <visual name="base_v"><geometry><mesh><uri>file://meshes/base-link.stl</uri></mesh></geometry></visual>
21 <collision name="base_c"><geometry><mesh><uri>file://meshes/base-link.stl</uri></mesh></geometry></collision>
22 </link>
23
24 <link name="shoulder_left">
25 <pose>0.274 -0.15 1.48 0 0.261799 1.047198</pose>
26 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
27 <visual name="shoulder_left_v"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></visual>
28 <collision name="shoulder_left_c"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></collision>
29 </link>
30
31 <link name="rod_left_lower">
32 <pose relative_to="shoulder_left">0.549 -0.02 -0.04 -0.139626 0 -1.396263</pose>
33 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
34 <visual name="rod_left_lower_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
35 <collision name="rod_left_lower_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
36 </link>
37
38 <link name="rod_left_upper">
39 <pose relative_to="shoulder_left">0.549 -0.02 0 -0.139626 3.141593 -1.745329</pose>
40 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
41 <visual name="rod_left_upper_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
42 <collision name="rod_left_upper_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
43 </link>
44
45 <link name="shoulder_right">
46 <pose>0.305 0.15 1.6 3.141593 -0.261799 1.047198</pose>
47 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
48 <visual name="shoulder_right_v"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></visual>
49 <collision name="shoulder_right_c"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></collision>
50 </link>
51
52 <link name="rod_right_lower">
53 <pose>0.549 -0.02 0.04 -0.0523599 3.141593 -1.396263</pose>
54 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
55 <visual name="rod_right_lower_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
56 <collision name="rod_right_lower_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
57 </link>
58
59 <link name="rod_right_upper">
60 <pose>0.549 -0.02 -0.04 -0.0523599 0 -1.745329</pose>
61 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
62 <visual name="rod_right_upper_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
63 <collision name="rod_right_upper_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
64 </link>
65
66 <link name="shoulder_upper">
67 <pose>0.282 -0.02 1.684 -1.570796 0 -0.523599</pose>
68 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
69 <visual name="shoulder_upper_v"><geometry><mesh><uri>file://meshes/shoulder-vertical.stl</uri></mesh></geometry></visual>
70 <collision name="shoulder_upper_c"><geometry><mesh><uri>file://meshes/shoulder-vertical.stl</uri></mesh></geometry></collision>
71 </link>
72
73 <link name="rod_upper_left">
74 <!--
75 <pose>0.552 0.022 -0.05 0 0 1.48353</pose>
76 -->
77 <pose relative_to="shoulder_upper">0 0 0 0 0 0</pose>
78 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
79 <visual name="rod_upper_left_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
80 <collision name="rod_upper_left_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
81 </link>
82
83 <link name="rod_upper_right">
84 <pose>0.552 0.022 0.05 3.141593 0 -1.832596</pose>
85 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
86 <visual name="rod_upper_right_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
87 <collision name="rod_upper_right_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
88 </link>
89
90 <link name="carriage">
91 <pose>1.170 -0.004 1.332 0 0 0</pose>
92 <inertial><mass>1</mass><inertia><ixx>0.001</ixx><iyy>0.001</iyy><izz>0.001</izz><ixy>0</ixy><ixz>0</ixz><iyz>0</iyz></inertia></inertial>
93 <visual name="carriage_v"><geometry><mesh><uri>file://meshes/carriage.stl</uri></mesh></geometry></visual>
94 <collision name="carriage_c"><geometry><mesh><uri>file://meshes/carriage.stl</uri></mesh></geometry></collision>
95 </link>
96
97 <joint name="base_link_joint" type="fixed">
98 <pose relative_to="foundation">0 0 0.19 0 0 0</pose>
99 <parent>foundation</parent>
100 <child>base_link</child>
101 <axis><xyz>0 0 1</xyz></axis>
102 </joint>
103
104 <joint name="shoulder_left_joint" type="revolute"><parent>base_link</parent><child>shoulder_left</child><axis><xyz>0 0 1</xyz></axis></joint>
105 <joint name="shoulder_left_rod_lower_joint" type="ball"><parent>shoulder_left</parent><child>rod_left_lower</child><axis><xyz>0 0 1</xyz></axis></joint>
106 <joint name="shoulder_left_rod_upper_joint" type="ball"><parent>shoulder_left</parent><child>rod_left_upper</child><axis><xyz>0 0 1</xyz></axis></joint>
107
108 <joint name="shoulder_right_joint" type="revolute"><parent>base_link</parent><child>shoulder_right</child><axis><xyz>0 0 1</xyz></axis></joint>
109 <joint name="shoulder_right_rod_lower_joint" type="ball"><parent>shoulder_right</parent><child>rod_right_lower</child><axis><xyz>0 0 1</xyz></axis></joint>
110 <joint name="shoulder_right_rod_upper_joint" type="ball"><parent>shoulder_right</parent><child>rod_right_upper</child><axis><xyz>0 0 1</xyz></axis></joint>
111
112 <joint name="shoulder_upper_joint" type="revolute"><parent>base_link</parent><child>shoulder_upper</child><axis><xyz>0 0 1</xyz></axis></joint>
113 <joint name="shoulder_upper_rod_left_joint" type="ball"><parent>shoulder_upper</parent><child>rod_upper_left </child><axis><xyz>0 0 1</xyz></axis></joint>
114 <joint name="shoulder_upper_rod_right_joint" type="ball"><parent>shoulder_upper</parent><child>rod_upper_right</child><axis><xyz>0 0 1</xyz></axis></joint>
115
116 <joint name="carriage_rod_left_lower_joint" type="ball"><parent>rod_left_lower </parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint>
117 <joint name="carriage_rod_left_upper_joint" type="ball"><parent>rod_left_upper </parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint>
118 <joint name="carriage_rod_right_lower_joint" type="ball"><parent>rod_right_lower</parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint>
119 <joint name="carriage_rod_right_upper_joint" type="ball"><parent>rod_right_upper</parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint>
120 <joint name="carriage_rod_upper_left_joint" type="ball"><parent>rod_upper_left </parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint>
121 <joint name="carriage_rod_upper_right_joint" type="ball"><parent>rod_upper_right</parent><child>carriage</child><axis><xyz>0 0 1</xyz></axis></joint>
122 </model>
123</sdf>
diff --git a/res/robot.urdf b/res/robot.urdf
new file mode 100644
index 0000000..57a3509
--- /dev/null
+++ b/res/robot.urdf
@@ -0,0 +1,241 @@
1<?xml version="1.0"?>
2<robot name="robot">
3 <mujoco>
4 <compiler discardvisual="false"/>
5 </mujoco>
6
7 <material name="static">
8 <color rgba="0.5 0.5 0.5 1"/>
9 </material>
10 <material name="shoulder">
11 <color rgba="0.7 0.3 0.3 1"/>
12 </material>
13 <material name="rod">
14 <color rgba="0.3 0.3 0.7 1"/>
15 </material>
16 <material name="carriage">
17 <color rgba="0.3 0.7 0.3 1"/>
18 </material>
19
20 <link name="foundation">
21 <visual>
22 <geometry>
23 <mesh filename="foundation.stl"/>
24 </geometry>
25 <material name="static"/>
26 </visual>
27 </link>
28
29 <link name="base-link">
30 <visual>
31 <geometry>
32 <mesh filename="base-link.stl"/>
33 </geometry>
34 <material name="static"/>
35 </visual>
36 </link>
37 <joint name="foundation_to_base-link" type="fixed">
38 <parent link="foundation"/>
39 <child link="base-link"/>
40 <origin xyz="0 0 .19"/>
41 </joint>
42
43 <link name="shoulder-left">
44 <visual>
45 <geometry>
46 <mesh filename="shoulder-horizontal.stl"/>
47 </geometry>
48 <material name="shoulder"/>
49 </visual>
50 <inertial>
51 <mass value="1"/>
52 <inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100"/>
53 </inertial>
54 </link>
55 <joint name="base-link_to_shoulder-left" type="continuous">
56 <parent link="base-link"/>
57 <child link="shoulder-left"/>
58 <origin xyz=".274 -.15 1.29" rpy="0 0.261799387799 0"/>
59 <axis xyz="0 0 1"/>
60 </joint>
61
62 <link name="shoulder-left_rod-left-lower_1">
63 <inertial>
64 <mass value="1e-15"/>
65 <inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
66 </inertial>
67 </link>
68 <joint name="shoulder-left_to_shoulder-left_rod-left-lower_1" type="continuous">
69 <parent link="shoulder-left" />
70 <child link="shoulder-left_rod-left-lower_1" />
71 <axis xyz="1 0 0" />
72 <origin xyz=".549 -.02 -.04" rpy="0 0 0"/>
73 <dynamics damping="0.005" />
74 </joint>
75
76 <link name="shoulder-left_rod-left-lower_2">
77 <inertial>
78 <mass value="1e-15"/>
79 <inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
80 </inertial>
81 </link>
82 <joint name="rod-left-lower_1_to_rod-left-lower_2" type="continuous">
83 <parent link="shoulder-left_rod-left-lower_1"/>
84 <child link="shoulder-left_rod-left-lower_2"/>
85 <axis xyz="0 1 0" />
86 <dynamics damping="0.005" />
87 </joint>
88
89 <link name="rod-left-lower">
90 <visual>
91 <geometry>
92 <mesh filename="rod.stl"/>
93 </geometry>
94 <material name="rod"/>
95 </visual>
96 <inertial>
97 <mass value="1"/>
98 <inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100"/>
99 </inertial>
100 </link>
101 <joint name="shoulder-left_rod-left-lower_2_to_rod-left-lower" type="continuous" >
102 <parent link="shoulder-left_rod-left-lower_2"/>
103 <child link="rod-left-lower"/>
104 <axis xyz="1 0 0" />
105 <dynamics damping="0.005" />
106 </joint>
107
108
109
110
111
112
113
114
115 <link name="shoulder-left_rod-left-upper_1">
116 <inertial>
117 <mass value="1e-15"/>
118 <inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
119 </inertial>
120 </link>
121 <joint name="shoulder-left_to_shoulder-left_rod-left-upper_1" type="continuous">
122 <parent link="shoulder-left" />
123 <child link="shoulder-left_rod-left-upper_1" />
124 <axis xyz="1 0 0" />
125 <origin xyz=".549 -.02 +.04" rpy="3.14159265359 0 0"/>
126 <dynamics damping="0.005" />
127 </joint>
128
129 <link name="shoulder-left_rod-left-upper_2">
130 <inertial>
131 <mass value="1e-15"/>
132 <inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
133 </inertial>
134 </link>
135 <joint name="rod-left-upper_1_to_rod-left-upper_2" type="continuous">
136 <parent link="shoulder-left_rod-left-upper_1"/>
137 <child link="shoulder-left_rod-left-upper_2"/>
138 <axis xyz="0 1 0" />
139 <dynamics damping="0.005" />
140 </joint>
141
142 <link name="rod-left-upper">
143 <visual>
144 <geometry>
145 <mesh filename="rod.stl"/>
146 </geometry>
147 <material name="rod"/>
148 </visual>
149 <inertial>
150 <mass value="1"/>
151 <inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100"/>
152 </inertial>
153 </link>
154 <joint name="shoulder-left_rod-left-upper_2_to_rod-left-upper" type="continuous" >
155 <parent link="shoulder-left_rod-left-upper_2"/>
156 <child link="rod-left-upper"/>
157 <axis xyz="1 0 0" />
158 <dynamics damping="0.005" />
159 </joint>
160
161
162
163
164
165
166
167
168
169
170
171
172
173 <link name="shoulder-right">
174 <visual>
175 <geometry>
176 <mesh filename="shoulder-horizontal.stl"/>
177 </geometry>
178 <material name="shoulder"/>
179 </visual>
180 <inertial>
181 <mass value="1"/>
182 <inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100"/>
183 </inertial>
184 </link>
185
186 <joint name="base-link_to_shoulder-right" type="continuous">
187 <parent link="base-link"/>
188 <child link="shoulder-right"/>
189 <origin xyz=".305 .15 1.41" rpy="3.14159265359 0.261799387799 0"/>
190 <axis xyz="0 0 1"/>
191 </joint>
192
193 <link name="shoulder-upper">
194 <visual>
195 <geometry>
196 <mesh filename="shoulder-vertical.stl"/>
197 </geometry>
198 <material name="shoulder"/>
199 </visual>
200 <inertial>
201 <mass value="1"/>
202 <inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100"/>
203 </inertial>
204 </link>
205 <joint name="base-link_to_shoulder-upper" type="continuous">
206 <parent link="base-link"/>
207 <child link="shoulder-upper"/>
208 <origin xyz=".282 -.02 1.494" rpy="-1.5707963268 0 0"/>
209 <axis xyz="0 0 1"/>
210 </joint>
211
212
213
214
215
216 <link name="carriage">
217 <visual>
218 <geometry>
219 <mesh filename="carriage.stl"/>
220 </geometry>
221 <material name="carriage"/>
222 </visual>
223 <inertial>
224 <mass value="1"/>
225 <inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100"/>
226 </inertial>
227 </link>
228 <joint name="rod-left-lower_to_carriage" type="continuous">
229 <parent link="rod-left-lower"/>
230 <child link="carriage"/>
231 <origin xyz=".282 -.02 1.494" rpy="-1.5707963268 0 0"/>
232 <axis xyz="0 0 1"/>
233 </joint>
234 <joint name="rod-left-upper_to_carriage" type="continuous">
235 <parent link="rod-left-upper"/>
236 <child link="carriage"/>
237 <origin xyz=".282 -.02 1.494" rpy="-1.5707963268 0 0"/>
238 <axis xyz="0 0 1"/>
239 </joint>
240
241</robot>