Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ros2 fix wheels friction #370

Merged
merged 4 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions panther_description/config/WH01.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ inertia: { ixx: 0.022510, iyy: 0.034850, izz: 0.022510 }
inertia_y_offset: 0.0
mesh_package: panther_description
folder_path: meshes/WH01
mecanum: False
1 change: 1 addition & 0 deletions panther_description/config/WH02.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ inertia: { ixx: 0.010050, iyy: 0.016496, izz: 0.010068 }
inertia_y_offset: 0.0
mesh_package: panther_description
folder_path: meshes/WH02
mecanum: True
1 change: 1 addition & 0 deletions panther_description/config/WH04.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ inertia: { ixx: 0.003099, iyy: 0.005849, izz: 0.003101 }
inertia_y_offset: 0.0
mesh_package: panther_description
folder_path: meshes/WH04
mecanum: False
28 changes: 15 additions & 13 deletions panther_description/urdf/wheel.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,21 @@
</link>

<xacro:if value="${use_sim}">
<gazebo reference="${prefix}_wheel_link" xmlns:ignition="http://ignitionrobotics.org/schema">
<collision>
<surface>
<friction>
<ode>
<mu>1.0</mu>
<mu2>0.0</mu2>
<fdir1 ignition:expressed_in="base_link">${fdir}</fdir1>
</ode>
</friction>
</surface>
</collision>
</gazebo>
<xacro:if value="${wheel_config['mecanum']}">
<gazebo reference="${prefix}_wheel_link" xmlns:ignition="http://ignitionrobotics.org/schema">
<collision>
<surface>
<friction>
<ode>
<mu>1.0</mu>
<mu2>0.0</mu2>
<fdir1 ignition:expressed_in="base_link">${fdir}</fdir1>
</ode>
</friction>
</surface>
</collision>
</gazebo>
</xacro:if>
</xacro:if>

</xacro:macro>
Expand Down