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

usd2sdf: capsule and ellipsoid geometries are not exported #41

Open
scpeters opened this issue Oct 3, 2024 · 0 comments
Open

usd2sdf: capsule and ellipsoid geometries are not exported #41

scpeters opened this issue Oct 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@scpeters
Copy link
Member

scpeters commented Oct 3, 2024

Environment

  • OS Version: macOS 14.7 (Sonoma)
  • Source or binary build? source build of main branch (178e136) with Gazebo Ionic

Description

  • Expected behavior: if an input file contains collisions with ellipsoid and capsule geometries, the converted output should as well
  • Actual behavior: ellipsoid and capsule geometries are not converted

Steps to reproduce

  1. Build gz-usd
  2. Download the shapes.sdf test world into the gz-usd build folder as simple_shapes.sdf
  3. From the gz-usd build folder, convert to USD with the following command:
./bin/sdf2usd simple_shapes.sdf simple_shapes.usda
  1. Verify that the simple shapes have been converted to USD (note that the last pair of def Sphere calls have a scaling parameter set and are for the ellipsoidal collision and visual):
$ grep geometry simple_shapes.usda
                def Cube "geometry"
                def Cube "geometry" (
                def Cylinder "geometry"
                def Cylinder "geometry" (
                def Sphere "geometry"
                def Sphere "geometry" (
                def Capsule "geometry"
                def Capsule "geometry" (
                def Sphere "geometry"
                def Sphere "geometry" (
  1. Convert simple_shapes.usda back to SDFormat
./bin/usd2sdf simple_shapes.usda simple_shapes_round_trip.sdf
  1. Check for <capsule> and <ellipsoid> in the round-trip SDFormat file
$ grep '<capsule>' simple_shapes_round_trip.sdf
$ grep '<ellipsoid>' simple_shapes_round_trip.sdf

Output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Inbox
Development

No branches or pull requests

1 participant