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

feat: add URDF and STL importers #649

Merged
merged 17 commits into from
Jun 9, 2024
Merged

feat: add URDF and STL importers #649

merged 17 commits into from
Jun 9, 2024

Conversation

sebcrozet
Copy link
Member

@sebcrozet sebcrozet commented Jun 9, 2024

This PR introduces two new crates:

  • rapier3d-urdf for loading URDF files into rapier3d. This will load the rigid-bodies, colliders, and joints.
  • rapier3d-stl for loading an STL file as a collision shape.

Added

  • Add Collider::converted_trimesh and MeshConverter for building a collider with a shape computed from a mesh’s
    index and vertex buffers. That computed shape can currently be a TriMesh, a Cuboid (covering the mesh’s AABB or
    OBB), a convex hull, or a convex decomposition.
  • Implement Default for RigidBodyBuilder. This is equivalent to RigidBodyBuilder::dynamic().
  • Implement Default for ColliderBuilder. This is equivalent to ColliderBuilder::ball(0.5).

Modified

  • Renamed JointAxesMask::X/Y/Z to ::LIN_X/LIN_Y/LIN_Z; and renamed JointAxisMask::X/Y/Z to ::LinX/LinY/LynZ to
    make it clear it is not to be used as angular axes (the angular axis are JointAxesMask::ANG_X/ANG_Y/AngZ and
    JointAxisMask::AngX/AngY/AngZ).

@sebcrozet sebcrozet merged commit a5a4152 into master Jun 9, 2024
5 checks passed
@sebcrozet sebcrozet deleted the rapier-urdf branch June 9, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant