Skip to content

Commit

Permalink
adding Friction coefficient
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimhroob committed Jan 22, 2025
1 parent cad3fc3 commit 5f82bd7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hunter_description/description/meshes.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,14 @@
</visual>
</xacro:macro>

<xacro:macro name="gazebo_friction" params="reference">
<gazebo reference="${reference}">
<mu1 value="1.0"/>
<mu2 value="0.5"/>
<kp value="10000000.0" />
<kd value="1.0" />
<fdir1 value="1 0 0"/>
</gazebo>
</xacro:macro>

</robot>
2 changes: 2 additions & 0 deletions hunter_description/description/robot_core.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<dynamics damping="0.2" friction="15"/>
<limit effort="10.0" velocity="10.0"/>
</joint>
<xacro:gazebo_friction reference="rear_left_wheel"/>

<link name="rear_right_wheel">
<xacro:mesh name="rear_right_wheel"/>
Expand All @@ -51,6 +52,7 @@
<limit effort="10.0" velocity="10.0"/>
<mimic joint="rear_left_wheel_joint" multiplier="1.0" offset="0.0"/>
</joint>
<xacro:gazebo_friction reference="rear_right_wheel"/>

<link name="front_left_steering_link">
<xacro:virtual/>
Expand Down

0 comments on commit 5f82bd7

Please sign in to comment.