|
1 | 1 | <?xml version="1.0"?>
|
2 | 2 | <robot xmlns:xacro="http://wiki.ros.org/xacro" name="r6bot">
|
3 |
| - <!-- helper macro --> |
4 |
| - <xacro:include filename="$(find ros2_control_demo_example_7)/urdf/inc/create_link.xacro"/> |
| 3 | + |
| 4 | + <!-- Import r6bot macro --> |
| 5 | + <xacro:include filename="$(find ros2_control_demo_description)/r6bot/urdf/r6bot_description.urdf.xacro"/> |
5 | 6 |
|
6 | 7 | <!-- create link fixed to the "world" -->
|
7 | 8 | <link name="world"/>
|
8 | 9 |
|
9 |
| - <xacro:create_link |
10 |
| - link_name="base_link" |
11 |
| - xyz_offset="0 0 0" |
12 |
| - rpy_offset="0 0 0" |
13 |
| - mesh_package="ros2_control_demo_example_7" |
14 |
| - mesh_name="link_0" |
15 |
| - /> |
16 |
| - |
17 |
| - <xacro:create_link |
18 |
| - link_name="link_1" |
19 |
| - xyz_offset="0 0 0" |
20 |
| - rpy_offset="0 0 0" |
21 |
| - mesh_package="ros2_control_demo_example_7" |
22 |
| - mesh_name="link_1" |
23 |
| - /> |
24 |
| - |
25 |
| - <xacro:create_link |
26 |
| - link_name="link_2" |
27 |
| - xyz_offset="0 0 0" |
28 |
| - rpy_offset="0 0 0" |
29 |
| - mesh_package="ros2_control_demo_example_7" |
30 |
| - mesh_name="link_2" |
31 |
| - /> |
32 |
| - |
33 |
| - <xacro:create_link |
34 |
| - link_name="link_3" |
35 |
| - xyz_offset="0 0 0" |
36 |
| - rpy_offset="0 0 0" |
37 |
| - mesh_package="ros2_control_demo_example_7" |
38 |
| - mesh_name="link_3" |
39 |
| - /> |
40 |
| - |
41 |
| - <xacro:create_link |
42 |
| - link_name="link_4" |
43 |
| - xyz_offset="0 0 0" |
44 |
| - rpy_offset="0 0 0" |
45 |
| - mesh_package="ros2_control_demo_example_7" |
46 |
| - mesh_name="link_4" |
47 |
| - /> |
48 |
| - |
49 |
| - <xacro:create_link |
50 |
| - link_name="link_5" |
51 |
| - xyz_offset="0 0 0" |
52 |
| - rpy_offset="0 0 0" |
53 |
| - mesh_package="ros2_control_demo_example_7" |
54 |
| - mesh_name="link_5" |
55 |
| - /> |
56 |
| - |
57 |
| - <xacro:create_link |
58 |
| - link_name="link_6" |
59 |
| - xyz_offset="0 0 0" |
60 |
| - rpy_offset="0 0 0" |
61 |
| - mesh_package="ros2_control_demo_example_7" |
62 |
| - mesh_name="link_6" |
63 |
| - /> |
64 |
| - |
65 |
| - <link name="ft_frame"/> |
66 |
| - <link name="tool0"/> |
67 |
| - |
68 |
| - <!-- base_joint fixes base_link to the environment --> |
69 |
| - <joint name="base_joint" type="fixed"> |
70 |
| - <parent link="world"/> |
71 |
| - <child link="base_link"/> |
72 |
| - <origin xyz="0 0 0" rpy="0 0 0"/> |
73 |
| - <axis xyz="0 0 1"/> |
74 |
| - </joint> |
75 |
| - |
76 |
| - <!-- joints - main serial chain --> |
77 |
| - <joint name="joint_1" type="revolute"> |
78 |
| - <parent link="base_link"/> |
79 |
| - <child link="link_1"/> |
80 |
| - <origin xyz="0 0 0.061584" rpy="0 0 0"/> |
81 |
| - <axis xyz="0 0 1"/> |
82 |
| - <limit effort="1000.0" lower="${-pi}" upper="${pi}" velocity="2.5"/> |
83 |
| - </joint> |
84 |
| - |
85 |
| - <joint name="joint_2" type="revolute"> |
86 |
| - <parent link="link_1"/> |
87 |
| - <child link="link_2"/> |
88 |
| - <origin xyz="-0.101717 0 0.182284" rpy="${-pi/2} -${pi/3} ${pi/2}"/> |
89 |
| - <axis xyz="0 0 1"/> |
90 |
| - <limit effort="1000.0" lower="${-pi}" upper="${pi}" velocity="2.5"/> |
91 |
| - </joint> |
92 |
| - |
93 |
| - <joint name="joint_3" type="revolute"> |
94 |
| - <parent link="link_2"/> |
95 |
| - <child link="link_3"/> |
96 |
| - <origin xyz="0.685682 0 0.041861" rpy="0 ${pi} ${pi+pi/2}"/> |
97 |
| - <axis xyz="0 0 1"/> |
98 |
| - <limit effort="1000.0" lower="${-pi}" upper="${pi}" velocity="2.5"/> |
99 |
| - </joint> |
100 |
| - |
101 |
| - <joint name="joint_4" type="revolute"> |
102 |
| - <parent link="link_3"/> |
103 |
| - <child link="link_4"/> |
104 |
| - <origin xyz="0.518777 0 0.067458" rpy="0 ${pi} ${pi+pi/6}"/> |
105 |
| - <axis xyz="0 0 1"/> |
106 |
| - <limit effort="1000.0" lower="${-pi}" upper="${pi}" velocity="2.5"/> |
107 |
| - </joint> |
108 |
| - |
109 |
| - <joint name="joint_5" type="revolute"> |
110 |
| - <parent link="link_4"/> |
111 |
| - <child link="link_5"/> |
112 |
| - <origin xyz="0.112654 0 0.110903" rpy="${pi/2} ${pi} ${pi/2}"/> |
113 |
| - <axis xyz="0 0 1"/> |
114 |
| - <limit effort="1000.0" lower="${-pi}" upper="${pi}" velocity="2.5"/> |
115 |
| - </joint> |
116 |
| - |
117 |
| - <joint name="joint_6" type="revolute"> |
118 |
| - <parent link="link_5"/> |
119 |
| - <child link="link_6"/> |
120 |
| - <origin xyz="-0.085976 0 0.133436" rpy="0 ${-pi/2} 0"/> |
121 |
| - <axis xyz="0 0 1"/> |
122 |
| - <limit effort="1000.0" lower="${-pi}" upper="${pi}" velocity="2.5"/> |
123 |
| - </joint> |
124 |
| - |
125 |
| - <joint name="joint-ft_frame" type="fixed"> |
126 |
| - <parent link="link_6"/> |
127 |
| - <child link="ft_frame"/> |
128 |
| - <origin xyz="0 0 0" rpy="0 0 0"/> |
129 |
| - </joint> |
130 |
| - |
131 |
| - <joint name="joint-tool" type="fixed"> |
132 |
| - <parent link="ft_frame"/> |
133 |
| - <child link="tool0"/> |
134 |
| - <origin xyz="0 0 .185" rpy="0 0 0"/> |
135 |
| - </joint> |
| 10 | + <xacro:r6bot_description/> |
136 | 11 |
|
137 |
| - <!-- ros2 control tag --> |
138 | 12 | <!-- Import r6bot ros2_control description -->
|
139 | 13 | <xacro:include filename="$(find ros2_control_demo_example_7)/ros2_control/r6bot.ros2_control.xacro" />
|
140 | 14 | <xacro:r6bot_ros2_control name="r6bot"/>
|
|
0 commit comments