Is it possible to get the vertex positions of an object? #4214
-
|
Hi! What I want to do is obtaining the position of the vertex of an object that is closest to a specific body of my robot. To do this, I first need access to the positions of all vertices of the object ( Is it possible to get an object’s vertex positions in Isaac Lab? If so, I would really appreciate it if you could also share a code example. Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Thank you for posting this. It is possible, but not directly via The points attribute stores all vertex positions for that mesh. Then, get the mesh’s world transform and apply it to all vertices to get world-space positions. |
Beta Was this translation helpful? Give feedback.
Thank you for posting this. It is possible, but not directly via
RigidObjectAPIs; you need to query the underlying USD mesh (and then transform those points into world or robot-body frame). Isaac Lab’sassets.RigidObjectmainly exposes rigid-body state (root pose, velocities, etc.), not per-vertex geometry.The geometry is stored in the USD stage as
UsdGeom.Meshprims, which hold the vertex array (points) in the mesh’s local frame. For example, try