Description
Hi,
I'm using contact sensor for my humanoid foot.
But when I retrieve the contact force, I only detect z-directional force and x,y-directional force are nearly 0.
But obviously there should be x,y-directional frictional force exerted on the foot.
I don't know if this is just inherent problem of contact sensor where it can only detect normal force?
Or I'm using incorrectly?
For more information,
the collision geometry of my foot is long-thin cylinder.
And my code is contact_sensor.data.net_forces_w
And I get the value as below:
tensor([[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[7.9538e-05, 0.0000e+00, 6.6721e+02],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[6.4743e-05, 0.0000e+00, 5.4310e+02],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00],
[0.0000e+00, 0.0000e+00, 0.0000e+00]])
Please let me know if there's better way to detect the 'correct' xyz contact force for foot.
Thank you!
Activity
RandomOakForest commentedon Mar 14, 2025
Thank you for posting this. We are reviewing this with the team.
RandomOakForest commentedon Mar 14, 2025
Following up, this is an Isaac Sim issue, and the forces are not being updated as expected. We have tagged this for the team to fix.
kousheekc commentedon Mar 18, 2025
I have a similar problem. I have a contact sensor attached to a RigidObject and I want to not only measure the normal forces caused by an interaction but also the friction forces caused by dragging the rigid object along a surface. Is this the correct approach to use the ContactSensor from IsaacLab?
In the figure below you will see just the normal force along the world x axis, but the y and z components are 0 even when the RigidObject is dragged along a surface in the appropriate axis.
Mayankm96 commentedon Mar 19, 2025
As mentioned in the docs,
net_forces_wis the net normal contact forces in world frame which is what you see above. The name is confusing because back then this is what PhysX API was calling it and we continued with that name for compatibility.We are working on exposing the friction data in the contact sensor (@jtigue-bdai for vis.). However, if you want to directly get access to it, you can do so via:
jtigue-bdai commentedon Mar 19, 2025
One thing to note: get_friction_data gets data in a different output format so you will need to do some combining to get it in the same format at net_forces_w.
hojae-io commentedon Mar 20, 2025
Still, I've tried get_friction_data, but it only has all 0 values.
Maybe would be nice to add some tutorial how to use
get_friction_datamethodhojae-io commentedon Mar 26, 2025
I would appreciate it if we could access all the contact forces (including normal and friction force as well as point of contact) easily, just like they are being used in Mujoco as in figure
Adds friction force reporting to ContactSensor (#3563)
Adds friction force reporting to ContactSensor (isaac-sim#3563)
Adds friction force reporting to ContactSensor (isaac-sim#3563)
Adds friction force reporting to ContactSensor (#3563)
Adds friction force reporting to ContactSensor (isaac-sim#3563)
Adds friction force reporting to ContactSensor (#3563)
Adds friction force reporting to ContactSensor (isaac-sim#3563)