-
Notifications
You must be signed in to change notification settings - Fork 6
/
test_robot.urdf.xacro
77 lines (65 loc) · 2.33 KB
/
test_robot.urdf.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
<?xml version="1.0" ?>
<robot name="mecanum_wheel_robot" xmlns:xacro="http://ros.org/wiki/xacro">
<xacro:include filename="$(find fuji_mecanum)/urdf/mecanum_wheel_macro.xacro" />
<link name="base_link">
<visual>
<geometry>
<box size="0.7 0.4 0.3" />
</geometry>
</visual>
<collision>
<geometry>
<box size="0.7 0.4 0.3" />
</geometry>
</collision>
<inertial>
<origin xyz="0 0 0" />
<mass value="10.0" />
<inertia ixx="0.83333" ixy="0.0" ixz="0.0"
iyy="1.9333" iyz="0.0"
izz="2.1667" />
</inertial>
</link>
<gazebo reference="base_link">
<mu1 value="0.6"/>
<mu2 value="0.6"/>
<kp value="10000000.0" />
<kd value="1.0" />
<fdir1 value="0 1 0"/>
</gazebo>
<xacro:mecanum_wheel name="front_right" side="1" interface="hardware_interface/EffortJointInterface"/>
<xacro:mecanum_wheel name="front_left" side="-1" interface="hardware_interface/EffortJointInterface"/>
<xacro:mecanum_wheel name="rear_right" side="-1" interface="hardware_interface/EffortJointInterface"/>
<xacro:mecanum_wheel name="rear_left" side="1" interface="hardware_interface/EffortJointInterface"/>
<joint name="front_right_joint" type="continuous">
<origin xyz="0.3 -0.25 -0.1" rpy="0 0 ${pi/2}" />
<axis xyz="1 0 0" />
<parent link="base_link" />
<child link="front_right_wheel_link" />
</joint>
<joint name="front_left_joint" type="continuous">
<origin xyz="0.3 0.25 -0.1" rpy="0 0 ${pi/2}" />
<axis xyz="1 0 0" />
<parent link="base_link" />
<child link="front_left_wheel_link" />
</joint>
<joint name="rear_right_joint" type="continuous">
<origin xyz="-0.3 -0.25 -0.1" rpy="0 0 ${pi/2}" />
<axis xyz="1 0 0" />
<parent link="base_link" />
<child link="rear_right_wheel_link" />
</joint>
<joint name="rear_left_joint" type="continuous">
<origin xyz="-0.3 0.25 -0.1" rpy="0 0 ${pi/2}" />
<axis xyz="1 0 0" />
<parent link="base_link" />
<child link="rear_left_wheel_link" />
</joint>
<gazebo>
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
<robotNamespace>/</robotNamespace>
<robotSimType>gazebo_ros_control/DefaultRobotHWSim</robotSimType>
<legacyModeNS>true</legacyModeNS>
</plugin>
</gazebo>
</robot>