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

SDF <-> USD: Convert <collision><surface><friction> to USD Material and viceversa #3

Open
ahcorde opened this issue Apr 7, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request usd

Comments

@ahcorde
Copy link
Collaborator

ahcorde commented Apr 7, 2022

By able to convert <collision><surface><friction>

<collision name='back_collision'>
   <pose relative_to="base_link"> -0.364 0 0.373 0 0 0 </pose>
   <geometry>
     <box>
       <size>0.048 0.705 0.186</size>
       </box>
   </geometry>
   <surface>
     <friction>
       <ode>
         <mu>0.6</mu>
         <mu2>0.6</mu2>
       </ode>
     </friction>
   </surface>
 </collision>

To USD Materials


       rel material:binding:physics = </World/PhysicsMaterial> (
           bindMaterialAs = "weakerThanDescendants"
       )


    def Material "PhysicsMaterial" (
       prepend apiSchemas = ["PhysicsMaterialAPI", "PhysxMaterialAPI"]
   )
   {
       float physics:density = 1
       float physics:dynamicFriction = 0.6
       float physics:restitution = 0.4
       float physics:staticFriction = 0.8
       uniform token physxMaterial:frictionCombineMode = "min"
       uniform token physxMaterial:restitutionCombineMode = "min"
   }
@ahcorde
Copy link
Collaborator Author

ahcorde commented Apr 18, 2022

PR gazebosim/sdformat#975

@chapulina chapulina transferred this issue from gazebosim/sdformat Jul 29, 2022
@adlarkin adlarkin removed their assignment Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request usd
Projects
None yet
Development

No branches or pull requests

2 participants