Read raw USD properties in python

Hi, May I know if it is possible to read the raw USD properties in python?
I added a force sensor to a link, I when I tried the official API (link below) to read the sensor data, it failed.

https://docs.omniverse.nvidia.com/app_isaacsim/app_isaacsim/isaac_sim_sensors_physics_articulation_force.html

And, I noticed the raw USD properties have the same value as the sensor. I am wondering it I can read it.

Thank you.

Hi @berternats

You can read any prim property using the get_prim_property function as show in the next example:

import omni.isaac.core.utils.prims as prims_utils

force = prims_utils.get_prim_property(prim_path="PATH_TO_FORCE_SENSOR", property_name="physxArticulationForceSensor:force")
print(force)

The name of the property is indicated through the GUI in the prim’s property tooltip.

Screenshot from 2023-03-17 11-49-04

Ok thank you so much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.