chupakabra1996

SDF friction (ROS 2)

Nov 10th, 2025
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.21 KB | None | 0 0
  1. <xacro:macro name="wheel_friction" params="link">
  2.     <gazebo reference="${link}">
  3.         <collision>
  4.             <surface>
  5.                 <friction>
  6.                     <ode>
  7.                         <mu>2.0</mu>       <!-- grip for wheels -->
  8.                         <mu2>2.0</mu2>     <!-- perpendicular direction -->
  9.                        
  10.                         <slip1>0.1</slip1> <!-- longitudinal slip -->
  11.                         <slip2>0.05</slip2> <!-- lateral slip -->                        
  12.                     </ode>
  13.                 </friction>
  14.                
  15.                 <!-- Contact parameters -->
  16.                 <contact>
  17.                     <ode>
  18.                         <kp>1e6</kp>       <!-- Contact stiffness (обычно большие значения ставят, не увлекаться - начнет скакать) -->
  19.                         <kd>1000</kd>      <!-- Contact damping (упругость) -->
  20.                         <min_depth>0.001</min_depth> <!-- penetration depth (для трения нужно значение > 0 -->
  21.                     </ode>
  22.                 </contact>
  23.             </surface>
  24.         </collision>
  25.     </gazebo>
  26. </xacro:macro>
Advertisement
Add Comment
Please, Sign In to add comment