@ahaidu
Do GeometryPrim and RigidPrim do similar things to your code above (Isaac Sim 4.5)? What is the correct way of instantiating the colliders and physics for prims. I would like help in instantiating in python code the same attributes that come with right clicking on a prim->Add->Physics->Rigid Body with Colliders Preset.
I am importing prims downloaded from SimReadyAssets.
prim = isaacsim.core.utils.stage.add_reference_to_stage(usd_file_path, prim_path)
object_view = GeometryPrim(
prim_paths_expr=prim_path,
positions=t,
orientations=quatWXYZ,
scales=torch.tensor([1.0, 1.0, 1.0], device=self.device).unsqueeze(0),
collisions = [True],
)
object_view.set_collision_approximations("convexHull")
but I get the following error:
[Error] [omni.physx.plugin] PhysicsUSD: Prim at path /World/object is using unknown value for physics:approximation attribute.
I get the same sort of errors when I used RigidPrim from isaacsim.core.prims
object_view = RigidPrim(
prim_paths_expr=prim_path,
positions=t,
orientations=quatWXYZ,
scales=torch.tensor([1.0, 1.0, 1.0], device=self.device).unsqueeze(0),
)
2025-03-04 20:53:47 [123,890ms] [Warning] [omni.physx.plugin] PhysicsUSD: Parse collision - triangle mesh collision (approximation None/MeshSimplification) cannot be a part of a dynamic body, falling back to convexHull approximation: /World/object27/SM_CardBoxD_01/SM_CardBoxD_01. For dynamic collision please use approximations: convex hull, convex decomposition, box, sphere or SDF approximation.
Finally, if you could help with setting linear damping. I am trying to execute your NOTE such that when the sim is played, the objects un collide. I would like to set linear damping so that when they do this process they do not move too quickly.
Thank you!