|
1 | 1 | <?xml version="1.0"?> |
2 | 2 |
|
3 | | -<!-- Brief: Standard IMU --> |
| 3 | +<!-- Brief: IMU --> |
4 | 4 | <!-- Shape, Collision, Inertia: Box with relevant collision and constant inertia --> |
5 | 5 | <!-- Mounting Location: Bottom center of the IMU --> |
6 | 6 | <!-- Joint Type: fixed --> |
7 | 7 | <!-- Plugin: libgazebo_ros_imu_sensor.so --> |
8 | 8 | <!-- Param name: the name of the IMU. Published topic is /{name}_controller/out --> |
9 | | -<!-- Param mass: mass of the IMU --> |
10 | | -<!-- Param length: length of the IMU --> |
11 | | -<!-- Param width: width of the IMU --> |
12 | | -<!-- Param height: height of the IMU --> |
13 | 9 | <!-- Param parent: name of the parent link, defaulted to base_link --> |
14 | 10 | <!-- Param joint_origin: location of the IMU relative to parent link --> |
15 | 11 | <robot xmlns:xacro="http://ros.org/wiki/xacro" name="caster"> |
16 | | - <xacro:macro name="imu" params="name mass length width height parent:=base_link *joint_origin"> |
| 12 | + <xacro:macro name="imu" params="name parent:=base_link *joint_origin"> |
17 | 13 | <!-- Includes --> |
18 | 14 | <xacro:include filename="$(find common_xacro)/urdf/physics/inertia.xacro"/> |
19 | 15 |
|
|
30 | 26 |
|
31 | 27 | <!-- Imu link --> |
32 | 28 | <link name="${name}_link"> |
33 | | - <xacro:box_inertia mass="${mass}" length="${length}" width="${width}" height="${height}"> |
| 29 | + <xacro:box_inertia mass="0.025" length="0.05" width="0.03" height="0.01"> |
34 | 30 | <origin xyz="0 0 0" rpy="0 0 0" /> |
35 | 31 | </xacro:box_inertia> |
36 | 32 |
|
37 | 33 | <visual> |
38 | 34 | <origin xyz="0 0 0" rpy="0 0 0"/> |
39 | 35 | <geometry> |
40 | | - <box size="${length} ${width} ${height}"/> |
| 36 | + <box size="0.05 0.03 0.01"/> |
41 | 37 | </geometry> |
42 | 38 | </visual> |
43 | 39 |
|
44 | 40 | <collision> |
45 | 41 | <origin xyz="0 0 0" rpy="0 0 0"/> |
46 | 42 | <geometry> |
47 | | - <box size="${length} ${width} ${height}"/> |
| 43 | + <box size="0.05 0.03 0.01"/> |
48 | 44 | </geometry> |
49 | 45 | </collision> |
50 | 46 | </link> |
51 | 47 |
|
52 | 48 | <joint name="${name}_joint" type="fixed"> |
53 | | - <origin xyz="0 0 ${height/2}" rpy="0 0 0"/> |
| 49 | + <origin xyz="0 0 0.005" rpy="0 0 0"/> |
54 | 50 | <parent link="${name}_base_link" /> |
55 | 51 | <child link="${name}_link" /> |
56 | 52 | </joint> |
|
0 commit comments