Skip to content

Understanding difference between qfrc_applied and xfrc_applied #2350

Closed Answered by Balint-H
Hardwarize asked this question in Asking for Help
Discussion options

You must be logged in to vote

You are correct as far as a freejoint goes, qfrc ends up being applied as forces and torques in the global space. However, for all other types of degrees of freedom, qfrc will be applied along the current direction of the joint axes, whereas xfrc_applied will always stay in the global frame.

E.g. if you have a motorbike model where the wheel axes initially are parallel to the global x axis, applying torque via the corresponding element in the xfrc or qfrc vectors on the wheels will both result in the bike accelerating forward. But after the bike makes a 90 degree turn, qfrc would still drive it normally towards the bike's new forward direction, while xfrc would tip the bike over and tumbl…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hardwarize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants