Robotran C Documentation

Equilibrium

Computation of the system equilibrium using an iterative Newton method.
For more information, see Robotran theoritical framework.

Code sample

For running the equilibrium, insert the following code in your main script and adapt it to your need :

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
/* EQUILIBRIUM *
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
MbsEquil *mbs_equil;
mbs_equil = mbs_new_equil(mbs_data);
// Equil options (see documentations for additional options)
mbs_equil->options->method = 1;
mbs_equil->options->senstol = 1e-2;
mbs_equil->options->verbose = 1;
mbs_run_equil(mbs_equil, mbs_data);
mbs_delete_equil(mbs_equil, mbs_data);

Use

The equilibrium is performed by the function mbs_exe_equil().

The user specifies the desired options of the direct dynamics in MBS_equil_opt structure. The results are provided in the MBS_equil structure.

The function calls successively :