I'm trying to understand the formulation of a number of the constraints used to model joints. I went through the slides and was successful in understanding the distance constraint. However, when modeling the spring-damper and point-to-point constraints I'm having problems.
I think my problem is, for the spring-damper constraint, that I don't know what position constraint equation I need to perform the derivative on. The code comments only have "magic formulas." I understand that some of the equations are used to obtain the various constants needed in the spring-damper dynamics equations (spring constant, damping coefficient, natural frequency). More specifically, I don't understand where the gamma and bias computations come from.
Secondly, the formulation of the point-to-point constraint used to model a revolute joint (excluding motors). I think I understand correctly in that the position constraint is Pa = Pb, therefore Pa - Pb = 0. When I expand this out and perform the derivative I obtain Va + Ra x Wa - Vb - Rb x Wb = 0 (which makes sense since the relative velocity should be zero). In the slides you say to solve for V. Is this the correct velocity constraint? If so, how do I go about solving this since there are two velocity variables? Am I missing an equation? Is this why you use a mass matrix for this constraint? How did you formulate the mass matrix?
Thanks in advance for the help,
William
I think my problem is, for the spring-damper constraint, that I don't know what position constraint equation I need to perform the derivative on. The code comments only have "magic formulas." I understand that some of the equations are used to obtain the various constants needed in the spring-damper dynamics equations (spring constant, damping coefficient, natural frequency). More specifically, I don't understand where the gamma and bias computations come from.
Secondly, the formulation of the point-to-point constraint used to model a revolute joint (excluding motors). I think I understand correctly in that the position constraint is Pa = Pb, therefore Pa - Pb = 0. When I expand this out and perform the derivative I obtain Va + Ra x Wa - Vb - Rb x Wb = 0 (which makes sense since the relative velocity should be zero). In the slides you say to solve for V. Is this the correct velocity constraint? If so, how do I go about solving this since there are two velocity variables? Am I missing an equation? Is this why you use a mass matrix for this constraint? How did you formulate the mass matrix?
Thanks in advance for the help,
William