2
2
3
3
<robot name =" iai_kitchen_wall_robohow" xmlns : xacro =" http://ros.org/wiki/xacro" >
4
4
5
- <xacro : macro name =" iai_kitchen_wall_robohow" params =" parent *origin" >
5
+ <xacro : macro name =" iai_kitchen_wall_robohow" params =" parent *origin include_wall_7:=true " >
6
6
<!-- LINKS -->
7
-
7
+
8
8
<link name =" kitchen_wall_1" >
9
9
<xacro : sphere_inertia radius =" 0" mass =" 0" />
10
10
<visual >
20
20
</geometry >
21
21
</collision >
22
22
</link >
23
-
23
+
24
24
<link name =" kitchen_wall_2" >
25
25
<xacro : sphere_inertia radius =" 0" mass =" 0" />
26
26
<visual >
36
36
</geometry >
37
37
</collision >
38
38
</link >
39
-
39
+
40
40
<link name =" kitchen_wall_3" >
41
41
<xacro : sphere_inertia radius =" 0" mass =" 0" />
42
42
<visual >
52
52
</geometry >
53
53
</collision >
54
54
</link >
55
-
55
+
56
56
<link name =" kitchen_wall_4" >
57
57
<xacro : sphere_inertia radius =" 0" mass =" 0" />
58
58
<visual >
68
68
</geometry >
69
69
</collision >
70
70
</link >
71
-
71
+
72
72
<link name =" kitchen_wall_5" >
73
73
<xacro : sphere_inertia radius =" 0" mass =" 0" />
74
74
<visual >
84
84
</geometry >
85
85
</collision >
86
86
</link >
87
-
88
-
89
-
87
+
88
+
89
+
90
90
<link name =" kitchen_wall_6" >
91
91
<xacro : sphere_inertia radius =" 0" mass =" 0" />
92
92
<visual >
101
101
<box size =" 1 0.15 0.7" />
102
102
</geometry >
103
103
</collision >
104
- </link >
104
+ </link >
105
105
106
+ <xacro : if value =" ${include_wall_7 == 'true'}" >
106
107
<link name =" kitchen_wall_7" >
107
108
<xacro : sphere_inertia radius =" 0" mass =" 0" />
108
109
<visual >
118
119
</geometry >
119
120
</collision >
120
121
</link >
121
-
122
+
123
+ </xacro : if >
124
+
122
125
<!-- JOINTS -->
123
-
126
+
124
127
<link name =" kitchen_walls" />
125
-
128
+
126
129
<joint name =" walls_main_joint" type =" fixed" >
127
130
<xacro : insert_block name =" origin" />
128
131
<parent link =" ${parent}" />
129
132
<child link =" kitchen_walls" />
130
133
</joint >
131
-
134
+
132
135
<joint name =" wall_1_joint" type =" fixed" >
133
136
<origin xyz =" 2.38151 -2.516 0" rpy =" 0 -0 3.14159" />
134
137
<parent link =" kitchen_walls" />
135
138
<child link =" kitchen_wall_1" />
136
139
</joint >
137
- <!--
140
+ <!--
138
141
<joint name="wall_1_joint" type="fixed">
139
142
<origin xyz="1 0.562175 0" rpy="0 0 0" />
140
143
<parent link="kitchen_walls"/>
141
144
<child link="kitchen_wall_1"/>
142
145
</joint>
143
- -->
146
+ -->
144
147
<joint name =" wall_2_joint" type =" fixed" >
145
148
<origin xyz =" 2.87551 0 0" rpy =" 0 -0 1.5708" />
146
149
<parent link =" kitchen_walls" />
147
150
<child link =" kitchen_wall_2" />
148
151
</joint >
149
-
152
+
150
153
<joint name =" wall_3_joint" type =" fixed" >
151
154
<origin xyz =" 0 2.516 0" rpy =" 0 -0 3.14159" />
152
155
<parent link =" kitchen_walls" />
153
156
<child link =" kitchen_wall_3" />
154
157
</joint >
155
-
158
+
156
159
<joint name =" wall_4_joint" type =" fixed" >
157
160
<origin xyz =" -2.87549 0.466 0" rpy =" 0 0 -1.5708" />
158
161
<parent link =" kitchen_walls" />
159
162
<child link =" kitchen_wall_4" />
160
163
</joint >
161
-
164
+
162
165
<joint name =" wall_5_joint" type =" fixed" >
163
166
<origin xyz =" -1.81385 -1.70376 0" rpy =" 0 -0 0.000157" />
164
167
<parent link =" kitchen_walls" />
165
168
<child link =" kitchen_wall_5" />
166
169
</joint >
167
-
170
+
168
171
<joint name =" wall_6_joint" type =" fixed" >
169
172
<origin xyz =" -0.65 -2.12851 0" rpy =" 0 0 -1.5708" />
170
173
<parent link =" kitchen_walls" />
171
174
<child link =" kitchen_wall_6" />
172
175
</joint >
173
-
176
+ < xacro : if value = " ${include_wall_7 == 'true'} " >
174
177
<joint name =" wall_7_joint" type =" fixed" >
175
178
<origin xyz =" 1.01271 -2.556 0" rpy =" 0 -0 3.14159" />
176
179
<parent link =" kitchen_walls" />
177
180
<child link =" kitchen_wall_7" />
178
181
</joint >
179
-
182
+ </ xacro : if >
180
183
<gazebo reference =" kitchen_wall_6" >
181
184
<material >Gazebo/DarkGrey</material >
182
185
</gazebo >
183
186
</xacro : macro >
184
- </robot >
187
+ </robot >
0 commit comments