Replies: 1 comment
-
Thank you for posting this. The behavior you are observing—where Key Facts from the Docs
What This Means for Your Setup
How to Get Filtered Force Data If you want to get filtered force data (matrix form), you must define one contact sensor per body you wish to monitor. For example: contact_L = ContactSensorCfg(
prim_path="{ENV_REGEX_NS}/Robot/Links_Ext",
update_period=0.0,
history_length=6,
debug_vis=True,
filter_prim_paths_expr=["{ENV_REGEX_NS}/Cube"]
)
contact_R = ContactSensorCfg(
prim_path="{ENV_REGEX_NS}/Robot/Rechts_Ext",
update_period=0.0,
history_length=6,
debug_vis=True,
filter_prim_paths_expr=["{ENV_REGEX_NS}/Cube"]
)
# Repeat for each body. Then access the filtered contact force matrix as: scene["contact_L"].data.force_matrix_w
scene["contact_R"].data.force_matrix_w Each will provide the filtered contact force for that specific body. Summary Table
Footnotes |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm currently working with IsaacLab and trying to integrate contact sensors into my RL environment. My setup is based on the official Direct Workflow RL Environment tutorial, and I followed the instructions from the contact sensor documentation to add sensors.
However, I'm running into an issue where the contact sensors appear to exist, but I'm not receiving any data from them.
Which results in:
So it seems like the sensor is registered correctly in the scene and detects the bodies, but the actual data.force_matrix_w returns None.
Any help or tips would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions