Hello,
I would like to create a force sensor with python in order to measure the forces exerted on a link.
I use this lines of code to create the sensor but I’m wondering what the different functions do? And do I need to set the values to True or False ?
sensorAPI = PhysxSchema.PhysxArticulationForceSensorAPI.Apply(sensorXform.GetPrim())
sensorAPI.CreateConstraintSolverForcesEnabledAttr().Set(True)
sensorAPI.CreateForwardDynamicsForcesEnabledAttr().Set(False)
sensorAPI.CreateWorldFrameEnabledAttr().Set(False)
When reading the forces, I receive arrays with shape 6 but I’m wondering what are the components of this vector ? Are the first three elements the force and the last three elements the torque ? Do the forces correspond to the external forces exerted on the xform?
I viewed in https://github.com/NVIDIA-Omniverse/OmniIsaacGymEnvs#a-note-about-force-sensors that there was a bug in the force sensors. Is it still the case ? If so, is it also present in the class of the contact force sensors (omni.isaac.sensor._sensor
)?