jointReactionForces torque two times the applied MotorTorque #3713
Replies: 9 comments
-
I also have the similar questions.
|
Beta Was this translation helpful? Give feedback.
-
Hi @Steven89Liu, Could you add the filename/ code, where the feedback force calculation happens? Thanks! |
Beta Was this translation helpful? Give feedback.
-
you can refer to the function computeAccelerationsArticulatedBodyAlgorithmMultiDof() in file btMultiBody.cpp and search the m_jointFeedback. |
Beta Was this translation helpful? Give feedback.
-
Hi @ma-rv, |
Beta Was this translation helpful? Give feedback.
-
Not really. I didn't have the time to look further into it and just ended up modifying the reaction torques afterwards so they looked reasonable: For Though its just a workaround to unify the measurements and I still think there is either some miss-understanding from my side or an error in the code.. |
Beta Was this translation helpful? Give feedback.
-
thanks for your reply. |
Beta Was this translation helpful? Give feedback.
-
I have observed a similar phenomena with the linear reaction force being exactly double what I expect from hand calculations. This is reproducible with the above single hinge joint moving at constant velocity with no gravity. When gravity is added, the reaction force is |
Beta Was this translation helpful? Give feedback.
-
Hi @ma-rv,
|
Beta Was this translation helpful? Give feedback.
-
Hi @Steven89Liu, Sorry for the late response. I have been been quite busy and forgot to answer. Anyway, you could simply change |
Beta Was this translation helpful? Give feedback.
-
Hi @erwincoumans,
I would like to obtain joint reaction torques since they vary from the MotorTorque during collisions, but have some troubles understanding the sensor values.
Using
p.TORQUE_CONTROL
withforce=2
results in a torque of 4 in thejointReactionForces (0.0, -6.8181816792362735, -8.070764462809916e-06, 4.0, 0.0, 0.0)
. Why is the sensor torque two times the motor torque?I would be grateful for any advice!
hinge.urdf
Beta Was this translation helpful? Give feedback.
All reactions