Hi everyone, I’m working on an application using Isaac Sim to extract all physical data from the simulation. Based on this documentation, I implemented RigidContactView
to capture contact forces, but I’m encountering issues and it doesn’t seem to be working. You can see the problem in this video:
Here is the error:
Opening usd file at /home/giangnguyen/test/tiago_dual_in_dlr_kitchen.usda ...Done.
[18.209s] app ready
[20.633s] Simulation App Startup Complete
Loading stage...
Loading Complete
2024-10-20 17:39:17 [20,729ms] [Warning] [omni.usd] Coding Error: in AddXformOp at line 208 of /builds/omniverse/usd-ci/USD/pxr/usd/usdGeom/xformable.cpp -- XformOp </tiago_dual/tiago_dual.xformOp:translate> has typeName 'double3' which does not match the requested precision 'PrecisionFloat'. Proceeding to use existing typeName / precision.
2024-10-20 17:39:17 [20,729ms] [Warning] [omni.usd] Coding Error: in AddXformOp at line 208 of /builds/omniverse/usd-ci/USD/pxr/usd/usdGeom/xformable.cpp -- XformOp </tiago_dual/tiago_dual.xformOp:orient> has typeName 'quatd' which does not match the requested precision 'PrecisionFloat'. Proceeding to use existing typeName / precision.
2024-10-20 17:39:17 [20,734ms] [Warning] [omni.usd] Coding Error: in AddXformOp at line 208 of /builds/omniverse/usd-ci/USD/pxr/usd/usdGeom/xformable.cpp -- XformOp </milk_box/milk_box.xformOp:translate> has typeName 'double3' which does not match the requested precision 'PrecisionFloat'. Proceeding to use existing typeName / precision.
2024-10-20 17:39:17 [20,734ms] [Warning] [omni.usd] Coding Error: in AddXformOp at line 208 of /builds/omniverse/usd-ci/USD/pxr/usd/usdGeom/xformable.cpp -- XformOp </milk_box/milk_box.xformOp:orient> has typeName 'quatd' which does not match the requested precision 'PrecisionFloat'. Proceeding to use existing typeName / precision.
2024-10-20 17:39:18 [20,975ms] [Warning] [carb] Client omni.stageupdate.plugin has acquired [omni::hydra::IOmniHydra v2.0] 100 times. Consider accessing this interface with carb::getCachedInterface() (Performance warning)
2024-10-20 17:39:18 [21,190ms] [Error] [omni.physx.tensors.plugin] Size of the filter pattern list must match the size of the sensor pattern list
2024-10-20 17:39:18 [21,190ms] [Error] [omni.physx.tensors.plugin] Provided patterns for sensor and filters did not match any rigid contact entries
Traceback (most recent call last):
File "/home/giangnguyen/test/test.py", line 48, in <module>
body_contact_prim_view.initialize(simulation_context.physics_sim_view)
File "/home/giangnguyen/.local/share/ov/pkg/isaac-sim-4.2.0/exts/omni.isaac.core/omni/isaac/core/prims/rigid_contact_view.py", line 239, in initialize
self._num_shapes = self._physics_view.sensor_count
File "/home/giangnguyen/.local/share/ov/pkg/isaac-sim-4.2.0/extsPhysics/omni.physics.tensors/omni/physics/tensors/impl/api.py", line 1413, in sensor_count
return self._backend.sensor_count
AttributeError: 'NoneType' object has no attribute 'sensor_count'
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2024-10-20 17:39:18 [21,210ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Core' for removal
2024-10-20 17:39:18 [21,264ms] [Warning] [carb] Recursive unloadAllPlugins() detected!
Here is the code to reproduce:
test.zip (5.2 MB)
To reproduce, just command:
~/.local/share/ov/pkg/isaac-sim-4.2.0/python.sh test.py
Let me know how to fix this error and any optimizations I should consider to avoid further issues.