Skip to content

Reading Force and Torque #228

Open
Open
@hai-h-nguyen

Description

@hai-h-nguyen

Hi,

I am trying to read out the force (Fx, Fy) and the torque (Mx, My) when inserting a square peg into a hole. The idea is to insert the peg into the hole using the force and torque feedback. The peg is controlled by setting the velocity along the X and Y axes.

When I print out peg.torque while I manually control the peg (randomly driving it using a keyboard left/right), the torque is always 0, which seems wrong. Can you explain what I should do in this case?

Also, getting the force when the peg moves left/right and collides with the ground and the hole seems complicated. The property force, according to the documentation, is not the total force applied to the body (unlike the torque). Do you have any pointers for me?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions