Skip to content

[Question] Contact Sensor force not showing x,y directional force #2074

@hojae-io

Description

@hojae-io

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!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions