How to compute general mass matrix in c++?
Posted: Sun Aug 27, 2017 2:16 pm
Hello,
Right know, I am working with a double pendulum and I am trying to control each joint of it with the following control law: where U(\theta,t) is my control law ( The angular accelerations are computed there taking into account the error generated by the position of the joint). My question is:
How can I obtain the M(\theta) with the OpenSim API. I think there is a method called SimTK::SimbodyMatterSubsystem::calcM() but not sure if what I am looking for.
Thanks!
Right know, I am working with a double pendulum and I am trying to control each joint of it with the following control law: where U(\theta,t) is my control law ( The angular accelerations are computed there taking into account the error generated by the position of the joint). My question is:
How can I obtain the M(\theta) with the OpenSim API. I think there is a method called SimTK::SimbodyMatterSubsystem::calcM() but not sure if what I am looking for.
Thanks!