-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy pathtest_tricycle_drive.xacro.urdf
More file actions
177 lines (158 loc) · 4.51 KB
/
Copy pathtest_tricycle_drive.xacro.urdf
File metadata and controls
177 lines (158 loc) · 4.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?xml version="1.0"?>
<robot name="tricycle_drive" xmlns:xacro="http://ros.org/wiki/xacro">
<material name="Black">
<color rgba="0 0 0 1" />
</material>
<material name="Grey">
<color rgba="0.8 0.8 0.8 1" />
</material>
<material name="Orange">
<color rgba="1 0.6 0 1" />
</material>
<material name="White">
<color rgba="1 1 1 1" />
</material>
<link name="base_link" />
<!-- Chassis -->
<link name="chassis">
<collision>
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry>
<box size="2 1 0.5" />
</geometry>
</collision>
<visual>
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry>
<box size="2 1 0.5" />
</geometry>
<material name="Orange" />
</visual>
<inertial>
<origin xyz="0 0 0" rpy="0 0 0" />
<mass value="1" />
<inertia ixx="0.126164" ixy="0.0" ixz="0.0" iyy="0.416519" iyz="0.0" izz="0.481014" />
</inertial>
</link>
<joint name="chassis_joint" type="fixed">
<origin xyz="0.8 0 0.5" rpy="0 0 0" />
<parent link="base_link" />
<child link="chassis" />
</joint>
<!-- left wheel Link -->
<link name="left_wheel">
<collision>
<geometry>
<cylinder length="0.08" radius="0.3" />
</geometry>
</collision>
<visual>
<geometry>
<cylinder length="0.08" radius="0.3" />
</geometry>
<material name="Black" />
</visual>
<inertial>
<mass value="2" />
<inertia ixx="0.145833" ixy="0.0" ixz="0.0" iyy="0.145833" iyz="0.0" izz="0.125" />
</inertial>
</link>
<joint name="left_wheel_joint" type="continuous">
<origin xyz="-0.8 0.5 -0.2" rpy="-1.57 0 0" />
<parent link="chassis" />
<child link="left_wheel" />
<axis xyz="0 0 1" />
<dynamics damping="0.2" />
</joint>
<!-- right wheel Link -->
<link name="right_wheel">
<collision>
<geometry>
<cylinder length="0.08" radius="0.3" />
</geometry>
</collision>
<visual>
<geometry>
<cylinder length="0.08" radius="0.3" />
</geometry>
<material name="Black" />
</visual>
<inertial>
<mass value="2" />
<inertia ixx="0.145833" ixy="0.0" ixz="0.0" iyy="0.145833" iyz="0.0" izz="0.125" />
</inertial>
</link>
<joint name="right_wheel_joint" type="continuous">
<origin xyz="-0.8 -0.5 -0.2" rpy="-1.57 0 0" />
<parent link="chassis" />
<child link="right_wheel" />
<axis xyz="0 0 1" />
<dynamics damping="0.2" />
</joint>
<!-- Steering Link -->
<link name="steering_link">
<visual>
<geometry>
<box size="0.01 0.01 0.01" />
</geometry>
<material name="Black" />
</visual>
<inertial>
<origin xyz="0 0 0" rpy="0 0 0" />
<mass value="0.005" />
<inertia ixx="0.1" ixy="0.0" ixz="0.0" iyy="0.1" iyz="0.0" izz="0.1" />
</inertial>
</link>
<joint name="steering_joint" type="continuous">
<origin xyz="0.9 0 -0.2" rpy="0 0 0" />
<parent link="chassis" />
<child link="steering_link" />
<axis xyz="0 0 1" />
<limit effort="100" velocity="1" lower="-1.57" upper="1.57" />
</joint>
<!-- traction wheel link -->
<link name="wheel_front_link">
<visual>
<geometry>
<cylinder length="0.08" radius="0.3" />
</geometry>
<material name="Black" />
</visual>
<inertial>
<origin xyz="0 0 0" rpy="0 0 0" />
<mass value="15" />
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1" />
</inertial>
<collision>
<geometry>
<cylinder length="0.08" radius="0.3" />
</geometry>
</collision>
</link>
<joint name="traction_joint" type="continuous">
<parent link="steering_link" />
<child link="wheel_front_link" />
<origin xyz="0 0 0" rpy="-1.57 1.57 0" />
<axis xyz="0 0 1" />
<limit effort="100" velocity="1"/>
</joint>
<ros2_control name="GazeboSystem" type="system">
<hardware>
<plugin>gz_ros2_control/GazeboSimSystem</plugin>
</hardware>
<joint name="steering_joint">
<command_interface name="position" />
<state_interface name="position" />
</joint>
<joint name="traction_joint">
<command_interface name="velocity" />
<state_interface name="velocity" />
<state_interface name="position" />
</joint>
</ros2_control>
<gazebo>
<plugin filename="gz_ros2_control-system" name="gz_ros2_control::GazeboSimROS2ControlPlugin">
<parameters>$(find gz_ros2_control_demos)/config/tricycle_drive_controller.yaml</parameters>
</plugin>
</gazebo>
</robot>