File tree 6 files changed +60
-18
lines changed
src/xerbo_description/urdf
6 files changed +60
-18
lines changed Original file line number Diff line number Diff line change
1
+ colcon build
2
+ . install/setup.bash
3
+ ros2 launch xerbo_description display.launch.py
Original file line number Diff line number Diff line change 11
11
<inertia ixx =" 0.0001" ixy =" 0" ixz =" 0" iyy =" 0.000001" iyz =" 0" izz =" 0.0001" />
12
12
</inertial >
13
13
14
- <visual >
14
+ <collision >
15
15
<geometry >
16
16
<box size =" ${imu_x_size} ${imu_y_size} ${imu_z_size}" />
17
17
</geometry >
18
- </visual >
18
+ </collision >
19
19
20
- <collision >
20
+ <visual >
21
21
<geometry >
22
22
<box size =" ${imu_x_size} ${imu_y_size} ${imu_z_size}" />
23
23
</geometry >
24
- </collision >
25
-
24
+ <material name =" hunter-green" >
25
+ <color rgba =" 255 87 51 1" />
26
+ </material >
27
+ </visual >
26
28
</link >
27
29
28
30
<joint name =" imu_joint" type =" fixed" >
Original file line number Diff line number Diff line change 17
17
</scan >
18
18
<range >
19
19
<min >0.120000</min >
20
- <max >3.5 </max >
20
+ <max >12.0 </max >
21
21
<resolution >0.015000</resolution >
22
22
</range >
23
23
<noise >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<robot xmlns : xacro =" http://ros.org/wiki/xacro" >
3
- <xacro : property name =" lidar_radius" value =" 0.0508 " />
4
- <xacro : property name =" lidar_length" value =" 0.0555 " />
3
+ <xacro : property name =" lidar_radius" value =" 0.035 " />
4
+ <xacro : property name =" lidar_length" value =" 0.0254 " />
5
5
6
6
<link name =" lidar_link" >
7
7
<inertial >
8
8
<origin xyz =" 0 0 0" rpy =" 0 0 0" />
9
- <mass value =" 0.125 " />
9
+ <mass value =" 0.17 " />
10
10
<inertia ixx =" 0.001" ixy =" 0" ixz =" 0" iyy =" 0.001" iyz =" 0" izz =" 0.001" />
11
11
</inertial >
12
12
22
22
<geometry >
23
23
<cylinder radius =" ${lidar_radius}" length =" ${lidar_length}" />
24
24
</geometry >
25
+ <material name =" black" />
25
26
</visual >
26
27
</link >
27
28
28
29
<joint name =" lidar_joint" type =" fixed" >
29
30
<parent link =" base_link" />
30
31
<child link =" lidar_link" />
31
- <origin xyz =" 0 0 0.25 " rpy =" 0 0 0" />
32
+ <origin xyz =" 0.115 0 0.10375 " rpy =" 0 0 0" />
32
33
</joint >
33
34
34
35
<xacro : include filename =" $(find xerbo_description)/urdf/lidar.gazebo.urdf.xacro" />
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <robot xmlns : xacro =" http://ros.org/wiki/xacro" >
3
+
4
+ <xacro : property name =" mounting_plate_radius" value =" 0.1524" />
5
+ <xacro : property name =" mounting_plate_length" value =" 0.00746125" />
6
+
7
+ <xacro : macro name =" create_plate_link" params =" name_prefix origin_z" >
8
+ <link name =" ${name_prefix}_plate_link" >
9
+ <inertial >
10
+ <origin xyz =" 0 0 0" rpy =" 0 0 0" />
11
+ <mass value =" 0.205" />
12
+ <inertia ixx =" 0.001" ixy =" 0" ixz =" 0" iyy =" 0.001" iyz =" 0" izz =" 0.001" />
13
+ </inertial >
14
+
15
+ <collision >
16
+ <origin xyz =" 0 0 0" rpy =" 0 0 0" />
17
+ <geometry >
18
+ <cylinder radius =" ${mounting_plate_radius}" length =" ${mounting_plate_length}" />
19
+ </geometry >
20
+ </collision >
21
+
22
+ <visual >
23
+ <origin xyz =" 0 0 0" rpy =" 0 0 0" />
24
+ <geometry >
25
+ <cylinder radius =" ${mounting_plate_radius}" length =" ${mounting_plate_length}" />
26
+ </geometry >
27
+ <material name =" black-opaque" >
28
+ <color rgba =" 0 0 0 0.75" />
29
+ </material >
30
+ </visual >
31
+ </link >
32
+
33
+ <joint name =" ${name_prefix}_plate_joint" type =" fixed" >
34
+ <parent link =" base_link" />
35
+ <child link =" ${name_prefix}_plate_link" />
36
+ <origin xyz =" 0 0 ${origin_z}" rpy =" 0 0 0" />
37
+ </joint >
38
+ </xacro : macro >
39
+
40
+ <xacro : create_plate_link name_prefix =" first" origin_z =" 0.1497875" />
41
+ <xacro : create_plate_link name_prefix =" second" origin_z =" 0.20535" />
42
+
43
+ </robot >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<robot name =" xerbo" xmlns : xacro =" http://ros.org/wiki/xacro" >
3
3
4
- <xacro : macro name =" box_inertia" params =" m w h d" >
5
- <inertial >
6
- <origin xyz =" 0 0 0" rpy =" ${pi/2} 0 ${pi/2}" />
7
- <mass value =" ${m}" />
8
- <inertia ixx =" ${(m/12) * (h*h + d*d)}" ixy =" 0.0" ixz =" 0.0" iyy =" ${(m/12) * (w*w + d*d)}" iyz =" 0.0" izz =" ${(m/12) * (w*w + h*h)}" />
9
- </inertial >
10
- </xacro : macro >
11
-
12
4
<xacro : include filename =" $(find xerbo_description)/urdf/base.urdf.xacro" />
5
+ <xacro : include filename =" $(find xerbo_description)/urdf/mounting-frame.urdf.xacro" />
13
6
<xacro : include filename =" $(find xerbo_description)/urdf/imu.urdf.xacro" />
14
7
<xacro : include filename =" $(find xerbo_description)/urdf/lidar.urdf.xacro" />
15
8
You can’t perform that action at this time.
0 commit comments