|
3 | 3 | <xacro:include filename="$(find custom_robots)/models/turtlebot3/turtlebot3_gz.urdf.xacro"/> |
4 | 4 |
|
5 | 5 | <xacro:macro name="turtlebot3"> |
| 6 | + <!-- Init colour --> |
| 7 | + <material name="black"> |
| 8 | + <color rgba="0.0 0.0 0.0 1.0"/> |
| 9 | + </material> |
| 10 | + |
| 11 | + <material name="dark"> |
| 12 | + <color rgba="0.3 0.3 0.3 1.0"/> |
| 13 | + </material> |
| 14 | + |
| 15 | + <material name="light_black"> |
| 16 | + <color rgba="0.4 0.4 0.4 1.0"/> |
| 17 | + </material> |
| 18 | + |
| 19 | + <material name="white"> |
| 20 | + <color rgba="1.0 1.0 1.0 1.0"/> |
| 21 | + </material> |
| 22 | + |
6 | 23 |
|
7 | 24 | <link name="base_footprint"></link> |
8 | 25 |
|
|
20 | 37 | <visual > |
21 | 38 | <origin rpy="0 0 0" xyz="-0.064 0 0"/> |
22 | 39 | <geometry> |
23 | | - <mesh filename="$(find custom_robots)/model/turtlebot3/meshes/waffle_base.dae" scale="0.001 0.001 0.001"/> |
| 40 | + <mesh filename="file://$(find custom_robots)/models/turtlebot3/meshes/waffle_base.dae" scale="0.001 0.001 0.001"/> |
24 | 41 | </geometry> |
25 | | - <gazebo> |
26 | | - <material> |
27 | | - <ambient>1 1 1 1</ambient> |
28 | | - <diffuse>1 1 1 1</diffuse> |
29 | | - <specular>0.2 0.2 0.2 1</specular> |
30 | | - <emissive>0 0 0 1</emissive> |
31 | | - <script> |
32 | | - <name>Gazebo/Grey</name> |
33 | | - </script> |
34 | | - </material> |
35 | | - </gazebo> |
| 42 | + <material name="light_black"/> |
36 | 43 | </visual> |
37 | 44 | </link> |
38 | 45 |
|
39 | 46 | <link name="wheel_left_link"> |
40 | 47 | <inertial> |
41 | | - <origin rpy="-1.57 0 0" xyz="0.0 0.144 0.023"/> |
42 | 48 | <mass value="0.1"/> |
43 | 49 | <inertia ixx="1.1175580e-05" ixy="0" ixz="0" iyy="1.1175580e-05" iyz="0" izz="2.0712558e-05"/> |
44 | 50 | </inertial> |
45 | 51 | <collision> |
46 | | - <origin rpy="-1.57 0 0" xyz="0.0 0.144 0.023"/> |
47 | 52 | <geometry> |
48 | 53 | <cylinder radius="0.033" length="0.018"/> |
49 | 54 | </geometry> |
|
73 | 78 | </gazebo> |
74 | 79 | </collision> |
75 | 80 | <visual > |
76 | | - <origin rpy="0 0 0" xyz="0.0 0.144 0.023"/> |
| 81 | + <origin rpy="1.57 0 0" xyz="0 0 0"/> |
77 | 82 | <geometry> |
78 | | - <mesh filename="$(find custom_robots)/model/turtlebot3/meshes/tire.dae" scale="0.001 0.001 0.001"/> |
| 83 | + <mesh filename="file://$(find custom_robots)/models/turtlebot3/meshes/tire.dae" scale="0.001 0.001 0.001"/> |
79 | 84 | </geometry> |
80 | | - <gazebo> |
81 | | - <material> |
82 | | - <ambient>1 1 1 1</ambient> |
83 | | - <diffuse>1 1 1 1</diffuse> |
84 | | - <specular>0.2 0.2 0.2 1</specular> |
85 | | - <emissive>0 0 0 1</emissive> |
86 | | - </material> |
87 | | - </gazebo> |
| 85 | + <material name="black"/> |
88 | 86 | </visual> |
89 | 87 | </link> |
90 | 88 |
|
91 | 89 | <link name="wheel_right_link"> |
92 | 90 | <inertial> |
93 | | - <origin rpy="-1.57 0 0" xyz="0.0 -0.144 0.023"/> |
94 | 91 | <mass value="0.1"/> |
95 | 92 | <inertia ixx="1.1175580e-05" ixy="0" ixz="0" iyy="1.1175580e-05" iyz="0" izz="2.0712558e-05"/> |
96 | 93 | </inertial> |
97 | 94 | <collision> |
98 | | - <origin rpy="-1.57 0 0" xyz="0.0 -0.144 0.023"/> |
99 | 95 | <geometry> |
100 | 96 | <cylinder radius="0.033" length="0.018"/> |
101 | 97 | </geometry> |
|
125 | 121 | </gazebo> |
126 | 122 | </collision> |
127 | 123 | <visual > |
128 | | - <origin rpy="0 0 0" xyz="0.0 -0.144 0.023"/> |
| 124 | + <origin rpy="1.57 0 0" xyz="0 0 0"/> |
129 | 125 | <geometry> |
130 | | - <mesh filename="$(find custom_robots)/model/turtlebot3/meshes/tire.dae" scale="0.001 0.001 0.001"/> |
| 126 | + <mesh filename="file://$(find custom_robots)/models/turtlebot3/meshes/tire.dae" scale="0.001 0.001 0.001"/> |
131 | 127 | </geometry> |
132 | | - <gazebo> |
133 | | - <material> |
134 | | - <ambient>1 1 1 1</ambient> |
135 | | - <diffuse>1 1 1 1</diffuse> |
136 | | - <specular>0.2 0.2 0.2 1</specular> |
137 | | - <emissive>0 0 0 1</emissive> |
138 | | - </material> |
139 | | - </gazebo> |
| 128 | + <material name="black"/> |
140 | 129 | </visual> |
141 | 130 | </link> |
142 | 131 |
|
|
0 commit comments