aboutsummaryrefslogtreecommitdiff
path: root/res/robot.sdf
blob: d6f8ab14bfd165802898562147f8554f75300cd8 (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
<?xml version="1.0"?>
<sdf version="1.12">
  <model name="robot" canonical_link="foundation">
    <!--
    <material name="static_m">  <color rgba="0.5 0.5 0.5 1"/></material>
    <material name="shoulder_m"><color rgba="0.7 0.3 0.3 1"/></material>
    <material name="rod_m">     <color rgba="0.3 0.3 0.7 1"/></material>
    <material name="carriage_m"><color rgba="0.3 0.7 0.3 1"/></material>
      -->

    <link name="foundation">
      <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>
      <visual name="foundation_v"><geometry><mesh><uri>file://meshes/foundation.stl</uri></mesh></geometry></visual>
      <collision name="foundation_c"><geometry><mesh><uri>file://meshes/foundation.stl</uri></mesh></geometry></collision>
    </link>

    <link name="base_link">
      <pose relative_to="base_link_joint">0 0 0 0 0 0</pose>
      <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>
      <visual name="base_v"><geometry><mesh><uri>file://meshes/base-link.stl</uri></mesh></geometry></visual>
      <collision name="base_c"><geometry><mesh><uri>file://meshes/base-link.stl</uri></mesh></geometry></collision>
    </link>

    <link name="shoulder_left">
      <pose>0.274 -0.15 1.48 0 0.261799 1.047198</pose>
      <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>
      <visual name="shoulder_left_v"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></visual>
      <collision name="shoulder_left_c"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></collision>
    </link>

    <link name="rod_left_lower">
      <pose relative_to="shoulder_left">0.549 -0.02 -0.04 -0.139626 0 -1.396263</pose>
      <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>
      <visual name="rod_left_lower_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
      <collision name="rod_left_lower_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
    </link>

    <link name="rod_left_upper">
      <pose relative_to="shoulder_left">0.549 -0.02 0 -0.139626 3.141593 -1.745329</pose>
      <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>
      <visual name="rod_left_upper_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
      <collision name="rod_left_upper_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
    </link>

    <link name="shoulder_right">
      <pose>0.305 0.15 1.6 3.141593 -0.261799 1.047198</pose>
      <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>
      <visual name="shoulder_right_v"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></visual>
      <collision name="shoulder_right_c"><geometry><mesh><uri>file://meshes/shoulder-horizontal.stl</uri></mesh></geometry></collision>
    </link>

    <link name="rod_right_lower">
      <pose>0.549 -0.02 0.04 -0.0523599 3.141593 -1.396263</pose>
      <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>
      <visual name="rod_right_lower_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
      <collision name="rod_right_lower_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
    </link>

    <link name="rod_right_upper">
      <pose>0.549 -0.02 -0.04 -0.0523599 0 -1.745329</pose>
      <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>
      <visual name="rod_right_upper_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
      <collision name="rod_right_upper_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
    </link>

    <link name="shoulder_upper">
      <pose>0.282 -0.02 1.684 -1.570796 0 -0.523599</pose>
      <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>
      <visual name="shoulder_upper_v"><geometry><mesh><uri>file://meshes/shoulder-vertical.stl</uri></mesh></geometry></visual>
      <collision name="shoulder_upper_c"><geometry><mesh><uri>file://meshes/shoulder-vertical.stl</uri></mesh></geometry></collision>
    </link>

    <link name="rod_upper_left">
      <!--
      <pose>0.552 0.022 -0.05 0 0 1.48353</pose>
        -->
      <pose relative_to="shoulder_upper">0 0 0 0 0 0</pose>
      <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>
      <visual name="rod_upper_left_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
      <collision name="rod_upper_left_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
    </link>

    <link name="rod_upper_right">
      <pose>0.552 0.022 0.05 3.141593 0 -1.832596</pose>
      <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>
      <visual name="rod_upper_right_v"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></visual>
      <collision name="rod_upper_right_c"><geometry><mesh><uri>file://meshes/rod.stl</uri></mesh></geometry></collision>
    </link>

    <link name="carriage">
      <pose>1.170 -0.004 1.332 0 0 0</pose>
      <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>
      <visual name="carriage_v"><geometry><mesh><uri>file://meshes/carriage.stl</uri></mesh></geometry></visual>
      <collision name="carriage_c"><geometry><mesh><uri>file://meshes/carriage.stl</uri></mesh></geometry></collision>
    </link>

    <joint name="base_link_joint" type="fixed">
      <pose relative_to="foundation">0 0 0.19 0 0 0</pose>
      <parent>foundation</parent>
      <child>base_link</child>
      <axis><xyz>0 0 1</xyz></axis>
    </joint>

    <joint name="shoulder_left_joint" type="revolute"><parent>base_link</parent><child>shoulder_left</child><axis><xyz>0 0 1</xyz></axis></joint>
    <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>
    <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>

    <joint name="shoulder_right_joint" type="revolute"><parent>base_link</parent><child>shoulder_right</child><axis><xyz>0 0 1</xyz></axis></joint>
    <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>
    <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>

    <joint name="shoulder_upper_joint" type="revolute"><parent>base_link</parent><child>shoulder_upper</child><axis><xyz>0 0 1</xyz></axis></joint>
    <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>
    <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>

    <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>
    <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>
    <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>
    <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>
    <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>
    <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>
  </model>
</sdf>