#include <stdio.h>
#include <stdlib.h>
#include "string.h"
#include "lut.h"
#include "MBSfun.h"
#include "mbs_check.h"
#include "set_output.h"
#include "mbs_message.h"
#include "mbs_invdyn.h"
#include "mbs_invdyn_struct.h"
#include "mbs_project_interface.h"
#include "mbs_errors_names.h"
#include "mbs_trigo.h"
Functions | |
MbsInvdyn * | mbs_new_invdyn (MbsData *mbs_data) |
Create a new inverse dynamic structure. More... | |
MbsInvdyn * | mbs_new_invdyn_aux (MbsData *mbs_data, MbsAux *mbs_aux) |
Fills a new inverse dynamic auxilliary structure. More... | |
void | mbs_delete_invdyn (MbsInvdyn *invdyn, MbsData *mbs_data) |
Free memory of the inverse dynamic structure The options (MbsInvOptions) and MbsAux structures are also freed. More... | |
int | mbs_run_invdyn (MbsInvdyn *invd, MbsData *mbs_data) |
Run the inverse kinematic analysis. More... | |
int | mbs_invdyn_save (MbsInvdyn *invd, MbsData *mbs_data, double t) |
Save the values of invdyn analysis in the buffers. More... | |
int | mbs_invdyn_init (MbsInvdyn *invd, MbsData *mbs_data) |
Run the startup operations of the run_invdyn function. More... | |
int | mbs_invdyn_loop (MbsInvdyn *invd, MbsData *mbs_data) |
Time loop of the run_invdyn function: More... | |
int | mbs_invdyn_finish (MbsInvdyn *invd, MbsData *mbs_data) |
Run the finalization operations of the run_invdyn function. More... | |
int | mbs_invdyn_write_buffers (MbsInvdyn *invd) |
Write the content of buffer associated to the given MbsInvdyn to disk. More... | |
int | mbs_fct_invdyn (MbsData *s, MbsInvdyn *invd) |
inverse dynamic computation of q, qd and qdd More... | |
This file implements the functions of the invdyn module in C.
Creation date: 20/08/2019
(c) Universite catholique de Louvain
Free memory of the inverse dynamic structure The options (MbsInvOptions) and MbsAux structures are also freed.
inverse dynamic computation of q, qd and qdd
[in,out] | s | Robotran main structure |
[in,out] | invdyn | inverse dynamic main module structure |
Time loop of the run_invdyn function:
[in,out] | invdyn | the MbsInvdyn to be run |
[in,out] | mbs_data | the MbsData structure of the model for which the inverse dynamic is computed |
int mbs_invdyn_write_buffers | ( | MbsInvdyn * | invdyn | ) |
Write the content of buffer associated to the given MbsInvdyn to disk.
This is usefull for writing simulation results at the end of the simulation. This sepcific function is written to be able to ask for writing buffer from python.
invdyn | the MbsInvdyn struct for which the buffers must be written. |
Create a new inverse dynamic structure.
This function also initialize the options structures and the MbsAux for storing computational info during computation.
[in] | mbs_data | the data structure of the model for which the inverse dynamic will be computed. |
Fills a new inverse dynamic auxilliary structure.
A pointer to the given MbsAux structure is kept by the returned structure.
[in] | mbs_data | the data structure of the model for which the inverse dynamic will be computed. |
[in] | mbs_aux | the auxiliary structure to be filled. |