|
30 | 30 |
|
31 | 31 | <xacro:property name="imu_stdev" value="0.00017" /> |
32 | 32 |
|
33 | | - <xacro:macro name="actuated_wheel" params="prefix namespace locationprefix locationright"> |
| 33 | + <xacro:macro name="actuated_wheel" params="prefix locationprefix locationright"> |
34 | 34 | <joint name="${prefix}${locationprefix}_wheel_joint" type="continuous"> |
35 | 35 | <origin xyz="0.0 ${-mir_100_act_wheel_dy * locationright} ${mir_100_act_wheel_radius}" rpy="0 0 0" /> |
36 | 36 | <parent link="${prefix}base_link" /> |
|
62 | 62 | </gazebo> |
63 | 63 | </xacro:macro> |
64 | 64 |
|
65 | | - <xacro:macro name="caster_wheel" params="prefix locationprefix locationright wheel_base_dx"> |
| 65 | + <xacro:macro name="caster_wheel" params="prefix ns locationprefix locationright wheel_base_dx"> |
66 | 66 | <!-- caster hub --> |
67 | 67 | <joint name="${prefix}${locationprefix}_caster_rotation_joint" type="continuous"> |
68 | 68 | <origin xyz="${wheel_base_dx} ${-mir_100_caster_wheel_base_dy * locationright} ${mir_100_caster_wheel_base_dz}" rpy="0 0 0" /> |
|
75 | 75 | <gazebo> |
76 | 76 | <plugin name="${locationprefix}_caster_rotation_joint_states" filename="libgazebo_ros_joint_state_publisher.so"> |
77 | 77 | <ros> |
| 78 | + <namespace>${ns}</namespace> |
78 | 79 | </ros> |
79 | 80 | <update_rate>200.0</update_rate> |
80 | 81 | <joint_name>${prefix}${locationprefix}_caster_rotation_joint</joint_name> |
|
123 | 124 | <gazebo> |
124 | 125 | <plugin name="${locationprefix}_caster_wheel_joint_states" filename="libgazebo_ros_joint_state_publisher.so"> |
125 | 126 | <ros> |
126 | | - <namespace>${namespace}</namespace> |
| 127 | + <namespace>${ns}</namespace> |
127 | 128 | </ros> |
128 | 129 | <update_rate>200.0</update_rate> |
129 | 130 | <joint_name>${prefix}${locationprefix}_caster_wheel_joint</joint_name> |
|
153 | 154 | </gazebo> |
154 | 155 | </xacro:macro> |
155 | 156 |
|
156 | | - <xacro:macro name="mir_100" params="prefix namespace"> |
| 157 | + <xacro:macro name="mir_100" params="prefix ns"> |
157 | 158 | <link name="${prefix}base_footprint" /> |
158 | 159 |
|
159 | 160 | <joint name="${prefix}base_joint" type="fixed"> |
|
221 | 222 | <child link="${prefix}front_laser_link" /> |
222 | 223 | <origin xyz="0.4288 0.2358 0.1914" rpy="0.0 0.0 ${0.25 * pi}" /> <!-- from visually matching up the meshes of the MiR and the laser scanner --> |
223 | 224 | </joint> |
224 | | - <xacro:sick_s300 prefix="${prefix}" namespace="${namespace}" link="front_laser_link" topic="f_scan" /> |
| 225 | + <xacro:sick_s300 prefix="${prefix}" link="front_laser_link" topic="f_scan" /> |
225 | 226 |
|
226 | 227 | <joint name="${prefix}base_link_to_back_laser_joint" type="fixed"> |
227 | 228 | <parent link="${prefix}base_link" /> |
228 | 229 | <child link="${prefix}back_laser_link" /> |
229 | 230 | <origin xyz="-0.3548 -0.2352 0.1914" rpy="0.0 0.0 ${-0.75 * pi}" /> <!-- from visually matching up the meshes of the MiR and the laser scanner --> |
230 | 231 | </joint> |
231 | 232 |
|
232 | | - <xacro:sick_s300 prefix="${prefix}" namespace="${namespace}" link="back_laser_link" topic="b_scan" /> |
| 233 | + <xacro:sick_s300 prefix="${prefix}" link="back_laser_link" topic="b_scan" /> |
233 | 234 |
|
234 | 235 | <!-- Ultrasound sensors --> |
235 | 236 | <joint name="${prefix}us_1_joint" type="fixed"> <!-- right ultrasound --> |
|
249 | 250 | <link name="${prefix}us_2_frame" /> |
250 | 251 |
|
251 | 252 | <!-- wheels --> |
252 | | - <xacro:actuated_wheel prefix="${prefix}" namespace="${namespace}" locationprefix="left" locationright="-1"/> |
253 | | - <xacro:actuated_wheel prefix="${prefix}" namespace="${namespace}" locationprefix="right" locationright="1"/> |
254 | | - <xacro:caster_wheel prefix="${prefix}" locationprefix="fl" locationright="-1" wheel_base_dx="${mir_100_front_caster_wheel_base_dx}"/> |
255 | | - <xacro:caster_wheel prefix="${prefix}" locationprefix="fr" locationright="1" wheel_base_dx="${mir_100_front_caster_wheel_base_dx}"/> |
256 | | - <xacro:caster_wheel prefix="${prefix}" locationprefix="bl" locationright="-1" wheel_base_dx="${mir_100_back_caster_wheel_base_dx}"/> |
257 | | - <xacro:caster_wheel prefix="${prefix}" locationprefix="br" locationright="1" wheel_base_dx="${mir_100_back_caster_wheel_base_dx}"/> |
| 253 | + <xacro:actuated_wheel prefix="${prefix}" locationprefix="left" locationright="-1"/> |
| 254 | + <xacro:actuated_wheel prefix="${prefix}" locationprefix="right" locationright="1"/> |
| 255 | + <xacro:caster_wheel prefix="${prefix}" ns="${ns}" locationprefix="fl" locationright="-1" wheel_base_dx="${mir_100_front_caster_wheel_base_dx}"/> |
| 256 | + <xacro:caster_wheel prefix="${prefix}" ns="${ns}" locationprefix="fr" locationright="1" wheel_base_dx="${mir_100_front_caster_wheel_base_dx}"/> |
| 257 | + <xacro:caster_wheel prefix="${prefix}" ns="${ns}" locationprefix="bl" locationright="-1" wheel_base_dx="${mir_100_back_caster_wheel_base_dx}"/> |
| 258 | + <xacro:caster_wheel prefix="${prefix}" ns="${ns}" locationprefix="br" locationright="1" wheel_base_dx="${mir_100_back_caster_wheel_base_dx}"/> |
258 | 259 |
|
259 | 260 | <joint name="${prefix}base_link_surface_joint" type="fixed"> |
260 | 261 | <origin xyz="${mir_100_act_wheel_dx} 0 0.352" rpy="0 0 0" /> |
|
270 | 271 | <!-- set the gazebo friction parameters for the wheels --> |
271 | 272 | <xacro:set_all_wheel_frictions prefix="${prefix}"/> |
272 | 273 |
|
273 | | - <xacro:p3d_base_controller prefix="${prefix}" namespace="${namespace}"/> |
| 274 | + <xacro:p3d_base_controller prefix="${prefix}"/> |
274 | 275 | </xacro:macro> |
275 | 276 | </robot> |
0 commit comments