-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobot.xacro
79 lines (60 loc) · 2.23 KB
/
robot.xacro
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
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="autonomous_robot_1">
<!--include robot parts-->
<xacro:include filename="./base.xacro"/>
<xacro:include filename="./body.xacro"/>
<xacro:include filename="./wheel.xacro"/>
<xacro:include filename="./caster.xacro"/>
<xacro:include filename="./lidar.xacro"/>
<xacro:include filename="./camera.xacro"/>
<!--include robot features-->
<xacro:include filename="./inertial_macros.xacro"/>
<xacro:include filename="./material.xacro"/>
<!--create link objects-->
<xacro:base_link name="base_link"/>
<xacro:body_link name="body_link"/>
<xacro:wheel_link name="wheel1_link"/>
<xacro:wheel_link name="wheel2_link"/>
<xacro:caster_link name="caster_link"/>
<xacro:lidar_link name="lidar_link"/>
<xacro:camera_link name="camera_link"/>
<!--create joints with base-->
<!--body base joint-->
<joint name="joint_name" type="fixed">
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>
<parent link="base_link"/>
<child link="body_link"/>
</joint>
<!--wheel1 joint-->
<joint name="wheel1_base_joint" type="continuous">
<origin xyz="0.3 1.1 0.0" rpy="0.0 0.0 0.0"/>
<parent link="base_link"/>
<child link="wheel1_link"/>
<axis xyz="0.0 0.0 0.0"/>
</joint>
<!--wheel2 joint-->
<joint name="wheel2_base_joint" type="continuous">
<origin xyz="0.3 -1.1 0.0" rpy="0.0 0.0 0.0"/>
<parent link="base_link"/>
<child link="wheel2_link"/>
<axis xyz="0.0 0.0 0.0"/>
</joint>
<!--caster joint-->
<joint name="caster_base_joint" type="fixed">
<origin xyz="-0.8 0.0 0.0" rpy="0.0 0.0 0.0"/>
<parent link="base_link"/>
<child link="caster_link"/>
</joint>
<!--lidar joint-->
<joint name="lidar_base_joint" type="fixed">
<origin xyz="0.0 0.0 0.45" rpy="0.0 0.0 0.0"/>
<parent link="base_link"/>
<child link="lidar_link"/>
</joint>
<!--camera joint-->
<joint name="camera_base_joint" type="fixed">
<origin xyz="0.8 0.0 2.0" rpy="0.0 0.0 0.0"/>
<parent link="base_link"/>
<child link="camera_link"/>
</joint>
</robot>