Skip to content

Commit 5f82bd7

Browse files
committed
adding Friction coefficient
1 parent cad3fc3 commit 5f82bd7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

hunter_description/description/meshes.xacro

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,14 @@
2828
</visual>
2929
</xacro:macro>
3030

31+
<xacro:macro name="gazebo_friction" params="reference">
32+
<gazebo reference="${reference}">
33+
<mu1 value="1.0"/>
34+
<mu2 value="0.5"/>
35+
<kp value="10000000.0" />
36+
<kd value="1.0" />
37+
<fdir1 value="1 0 0"/>
38+
</gazebo>
39+
</xacro:macro>
40+
3141
</robot>

hunter_description/description/robot_core.xacro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<dynamics damping="0.2" friction="15"/>
3838
<limit effort="10.0" velocity="10.0"/>
3939
</joint>
40+
<xacro:gazebo_friction reference="rear_left_wheel"/>
4041

4142
<link name="rear_right_wheel">
4243
<xacro:mesh name="rear_right_wheel"/>
@@ -51,6 +52,7 @@
5152
<limit effort="10.0" velocity="10.0"/>
5253
<mimic joint="rear_left_wheel_joint" multiplier="1.0" offset="0.0"/>
5354
</joint>
55+
<xacro:gazebo_friction reference="rear_right_wheel"/>
5456

5557
<link name="front_left_steering_link">
5658
<xacro:virtual/>

0 commit comments

Comments
 (0)