-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbicycle.urdf
More file actions
89 lines (81 loc) · 2.36 KB
/
bicycle.urdf
File metadata and controls
89 lines (81 loc) · 2.36 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
<?xml version="1.0"?>
<robot name="bicycle_robot">
<!-- World link -->
<link name="world"/>
<!-- Chassis -->
<link name="base_link">
<inertial>
<mass value="1.0"/>
<origin xyz="0 0 0.15"/>
<inertia ixx="0.1" ixy="0" ixz="0" iyy="0.1" iyz="0" izz="0.1"/>
</inertial>
<visual>
<origin xyz="0 0 0.15"/>
<geometry>
<box size="0.6 0.1 0.1"/>
</geometry>
<material name="blue">
<color rgba="0.3 0.3 0.8 1"/>
</material>
</visual>
<collision>
<origin xyz="0 0 0.15"/>
<geometry>
<box size="0.6 0.1 0.1"/>
</geometry>
</collision>
</link>
<!-- Free-floating joint -->
<joint name="floating_base_joint" type="floating">
<parent link="world"/>
<child link="base_link"/>
</joint>
<!-- Rear wheel (remains fixed to the chassis) -->
<joint name="rear_wheel_joint" type="fixed">
<parent link="base_link"/>
<child link="rear_wheel"/>
<origin xyz="-0.3 0 0.1" rpy="1.5707 0 0"/>
</joint>
<link name="rear_wheel">
<visual>
<geometry>
<cylinder radius="0.1" length="0.05"/>
</geometry>
<material name="black"/>
</visual>
<collision>
<geometry>
<cylinder radius="0.1" length="0.05"/>
</geometry>
</collision>
</link>
<!-- Front Steering Joint (Revolute) -->
<!-- This joint allows the fork to turn -->
<joint name="front_steering_joint" type="revolute">
<parent link="base_link"/>
<child link="front_fork"/>
<origin xyz="0.3 0 0.15"/> <!-- Position of the steering axis -->
<axis xyz="0 0 1"/> <!-- Steers around the Z-axis of the fork's frame -->
<limit lower="-0.7" upper="0.7" effort="10" velocity="10"/>
</joint>
<link name="front_fork"/> <!-- A virtual link for the fork -->
<!-- Front Wheel (Fixed to the moving fork) -->
<joint name="front_wheel_joint" type="fixed">
<parent link="front_fork"/> <!-- Attach wheel to the fork -->
<child link="front_wheel"/>
<origin xyz="0 0 -0.05" rpy="1.5707 0 0"/> <!-- Position relative to the fork -->
</joint>
<link name="front_wheel">
<visual>
<geometry>
<cylinder radius="0.1" length="0.05"/>
</geometry>
<material name="black"/>
</visual>
<collision>
<geometry>
<cylinder radius="0.1" length="0.05"/>
</geometry>
</collision>
</link>
</robot>