[Question] Is there a native method to sample point clouds at the surface of the mesh? #2688
Replies: 1 comment
-
Thank you for posting this. You can leverage several native features in Isaac Lab and Isaac Sim, especially through their integration with USD and PhysX. I'll move this post to our Discussions for follow up. Here’s a summary that may help. Collision Geometry Representation in Isaac Lab & Isaac SimCollision Approximations:
You can apply these approximations via the Omniverse UI or programmatically using Python. For example, to apply a convex hull or convex decomposition: from pxr import UsdPhysics, PhysxSchema
prim = stage.GetPrimAtPath("/Path/To/Prim")
# Apply Convex Hull
UsdPhysics.CollisionAPI.Apply(prim)
PhysxSchema.PhysxCollisionAPI(prim).CreateCollisionApproximationAttr("convexHull")
# Or for convex decomposition
PhysxSchema.PhysxCollisionAPI(prim).CreateCollisionApproximationAttr("convexDecomposition") This sets up the collision geometry that PhysX will use for simulation and collision queries1. Collision Visualization:
Surface Sampling and Geometry PrimitivesSurface Point Sampling:
Accessing Geometry Primitives:
from pxr import UsdGeom
boundable = UsdGeom.Boundable(prim)
bbox = boundable.ComputeWorldBound(0, "default") This gives you an axis-aligned bounding box which can be used for broad-phase collision checks1. Integration with Motion Planning
Summary Table
References Footnotes |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I'm now developing a motion planning module in isaaclab. For this, I need a geometrical & spatial representation of the world (for collision check in/outside isaaclab). Is there a native method in isaaclab for this purpose? For example, sampling a number of points on the surface of a mesh in the USD stage (specified by providing the prim path), or getting a number of geometry primitives that can approximate a mesh in the USD stage?
Beta Was this translation helpful? Give feedback.
All reactions