Closed edward9503 closed 1 year ago
Raisim doesn't have a perference on objects to define the contact force direction. That contact force is exerted by the robot to the ground and it is just one of the two possible choices. You have a method call contact_.isObjectA(). If the object is objectA, it means that the contact force is exerted by something else and experienced by the object.
Hi @jhwangbo , thanks for the reply. I just updated the raisimLib because I was using the old version since last year, in which the isObjectA() didn't exist.
So if I understand correctly, in order to get the force from the ground and also the corresponding contact frame direction, I need to check isObjectA in the loop, and only True will give me the desired force and contact frame orientation?
This method.
Yes, but even if the object is objectB
you can just put negative on the force and rotate the frame by 180 degree
Hi,
when I use
to measure the contact force between foot and ground, the direction is inverted (pointing to the ground). Is it a bug somewhere? Thanks.