Force direction detected by sensor #2006
Replies: 4 comments
-
Hi @zichunxx, I'm looking into this and will get back to you soon. |
Beta Was this translation helpful? Give feedback.
-
Thanks in advance for your generous help. |
Beta Was this translation helpful? Give feedback.
-
Hi! @kevinzakka Sorry for the interruption. Did you find anything wrong? |
Beta Was this translation helpful? Give feedback.
-
Chiming in a little late, but I am experiencing something similar. Loading this XML:
When I check the contact sensor output using the following code (
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I've been confused about the force direction detected by the force sensor for a while and made a MWE.zip to illustrated my confusion with the impedance controller made by @kevinzakka.
First of all, I found that creating a dummy body is a great way to gather force information from here.
Second, as illustrated in the document, the detected force is expressed in the site frame and points from the child body to the parent body.
For the above MWE, I create a dummy body containing a sensor site on the tip of the peg and simulate a process of moving vertically downward toward the ground and hitting the ground. Running the python script in the MWE can reproduce the process directly without any tuning.
Here is the force information in the z-direction:

For my example, I think the force is negative because the z-axis of the sensor site frame points downward, and the force points from the dummy body to the box_eef body, which is upward. You can also find body labels in the above figure.
But why the detected force is positive?
I also found the dummy body should be in the right position but the position of the sensor site does not matter, why?
I have found some related issues but they didn't solve my confusion. Here is the list:
Thanks in advance for your precious time in checking the MWE. Any comment would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions