Computation of the system inverse dynamics. It computes the required forces and torques in the actuated joints to follow a given motion.
For more information, see Robotran theoritical framework.
For running the inverse dynamics, insert the following code in your main script and adapt it to your need :
The invect dynamics is performed by the function mbs_run_invdyn().
The user specifies the desired options of the direct dynamics in MbsInvOptions structure. The results are provided in the MbsBuffer structure (par of the MbsInvdyn structure) and written to files at the end of computation.
The force and torques are computed on the actuated joints. A joint is (de)selected as actuatedwith the function mbs_set_qa() (resp. mbs_unset_qa()).
You should call successively :
The system either: