-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathtorso.urdf.xacro
154 lines (138 loc) · 4.89 KB
/
torso.urdf.xacro
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
<?xml version="1.0" ?>
<!--
Copyright (c) 2015, PAL Robotics, S.L.
All rights reserved.
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/ or send a letter to
Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
-->
<robot xmlns:xacro="http://ros.org/wiki/xacro">
<!--File includes-->
<xacro:include filename="$(find tiago_description)/urdf/deg_to_rad.xacro" />
<xacro:include filename="$(find tiago_description)/urdf/torso/torso.transmission.xacro" />
<!--Constant parameters-->
<xacro:property name="torso_max_vel" value="0.07" />
<xacro:property name="torso_eps" value="0.02" />
<xacro:macro name="tiago_torso" params="name parent">
<!-- Bottom fixed part of column -->
<link name="${name}_fixed_link">
<inertial>
<origin xyz="0.02435 -0.00464 0.15900" rpy="0.00000 0.00000 0.00000"/>
<mass value="14.01360"/>
<inertia ixx="0.38341100000" ixy="0.00036400000" ixz="-0.02438900000"
iyy="0.40577300000" iyz="-0.00078200000"
izz="0.07699800000"/>
</inertial>
<visual>
<origin rpy="0 0 0" xyz="0 0 0" />
<geometry>
<mesh filename="package://tiago_description/meshes/torso/torso_fix.stl" scale="1 1 1"/>
</geometry>
<material name="LightGrey"/>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0.085 0.0 0.02" />
<geometry>
<box size="0.4 0.25 0.04"/>
</geometry>
</collision>
<collision>
<origin rpy="0 0 0" xyz="0 0 0.05" />
<geometry>
<box size="0.25 0.25 0.1"/>
</geometry>
</collision>
</link>
<joint name="${name}_fixed_joint" type="fixed">
<origin rpy="0 0 0" xyz="-0.062 0.0 0.193" />
<parent link="${parent}" />
<child link="${name}_fixed_link" />
<axis xyz="0 0 0" />
</joint>
<!-- Middle extending -->
<link name="${name}_fixed_column_link">
<inertial>
<origin rpy="0 0 0" xyz="0 0 0" />
<mass value="0.01" />
<inertia ixx="0.000001" ixy="0" ixz="0"
iyy="0.000001" iyz="0"
izz="0.000001" />
</inertial>
<visual>
<origin rpy="0 0 0" xyz="0 0 0.275" />
<geometry>
<box size="0.18 0.2 0.55"/>
</geometry>
<material name="DarkGrey"/>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0.275" />
<geometry>
<box size="0.23 0.23 0.55"/>
</geometry>
<material name="DarkGrey"/>
</collision>
</link>
<gazebo reference="${name}_fixed_column_link">
<material>Gazebo/DarkGrey</material>
</gazebo>
<joint name="${name}_fixed_column_joint" type="fixed">
<origin rpy="0 0 0" xyz="-0.062 0 0.195" />
<parent link="${parent}" />
<child link="${name}_fixed_column_link" />
<axis xyz="0 0 0" />
</joint>
<link name="${name}_lift_link">
<inertial>
<origin xyz="0.04361 -0.00116 -0.17334" rpy="0.00000 0.00000 0.00000"/>
<mass value="6.93198"/>
<inertia ixx="0.24487000000" ixy="-0.00145600000" ixz="-0.00974200000"
iyy="0.24926900000" iyz="0.00828100000"
izz="0.09039500000"/>
</inertial>
<!-- Lifting body -->
<visual>
<origin rpy="0 0 0" xyz="0 0 0" />
<geometry>
<mesh filename="package://tiago_description/meshes/torso/torso_lift_with_arm.stl" scale="1 1 1"/>
</geometry>
<material name="White"/>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0" />
<geometry>
<mesh filename="package://tiago_description/meshes/torso/torso_lift_collision_core.dae" scale="1 1 1"/>
</geometry>
<material name="LightGrey"/>
</collision>
<collision>
<origin rpy="0 0 0" xyz="0 0 0" />
<geometry>
<mesh filename="package://tiago_description/meshes/torso/torso_lift_collision_shoulder.dae" scale="1 1 1"/>
</geometry>
<material name="LightGrey"/>
</collision>
<collision>
<origin rpy="0 0 0" xyz="0 0 0" />
<geometry>
<mesh filename="package://tiago_description/meshes/torso/torso_lift_collision_neck.dae" scale="1 1 1"/>
</geometry>
<material name="LightGrey"/>
</collision>
</link>
<joint name="${name}_lift_joint" type="prismatic">
<origin rpy="0.0 0.0 0.0" xyz="0.0 0.0 0.597" />
<parent link="${name}_fixed_link" />
<child link="${name}_lift_link" />
<axis xyz="0 0 1" />
<limit effort="2000" lower="0" upper="0.35" velocity="${torso_max_vel}" />
<calibration rising="0.0" />
<dynamics damping="1000" />
<safety_controller k_position="20"
k_velocity="20"
soft_lower_limit="0.0"
soft_upper_limit="0.35" />
</joint>
<xacro:torso_simple_transmission name="torso_lift" reduction="1.0"/>
</xacro:macro>
</robot>