-
Notifications
You must be signed in to change notification settings - Fork 1
/
tag.xacro
78 lines (67 loc) · 2.18 KB
/
tag.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
<?xml version="1.0"?>
<robot xmlns:xacro="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface" name="artag" >
<xacro:macro name="artag" params="name parent *origin">
<joint name="${name}_joint" type="fixed">
<xacro:insert_block name="origin" />
<parent link="${parent}"/>
<child link="${name}_link"/>
</joint>
<link name="${name}_link">
<inertial>
<origin xyz="0 0 0" />
<mass value="0.01" />
<inertia ixx="0.00000001" ixy="0.0" ixz="0.0" iyy="0.00000001" iyz="0.0" izz="0.00000001" />
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 -1.57079632679 0"/>
<geometry>
<mesh filename="package://vigir_ar_alvar_description/meshes/${name}.dae"/>
</geometry>
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://vigir_ar_alvar_description/meshes/${name}.dae"/>
</geometry>
</collision>
</link>
<joint name="${name}_background_joint" type="fixed">
<origin xyz="0 0 -0.001" rpy="0 0 0" />
<parent link="${name}_link"/>
<child link="${name}_background_link"/>
</joint>
<link name="${name}_background_link">
<inertial>
<origin xyz="0 0 0" />
<mass value="0.01" />
<inertia ixx="0.00000001" ixy="0.0" ixz="0.0" iyy="0.00000001" iyz="0.0" izz="0.00000001" />
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<box size="0.1 0.1 0.001" />
</geometry>
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<box size="0.1 0.1 0.0001" />
</geometry>
</collision>
</link>
<gazebo reference="${name}_link">
<!--
<material>artag/${name}</material>
<turnGravityOff>false</turnGravityOff>
<static>false</static>
-->
</gazebo>
<gazebo reference="${name}_background_link">
<material>Gazebo/White</material>
<!--
<turnGravityOff>false</turnGravityOff>
<static>false</static>
-->
</gazebo>
</xacro:macro>
</robot>