Robotran C Documentation
Functions
mbs_check.c File Reference
#include "mbs_errors_names.h"
#include "mbs_data.h"
#include "mbs_message.h"
#include "mbs_user_interface.h"
#include "mbs_check.h"
#include "mbs_project_interface.h"

Functions

int mbs_check_nhu_nqv (MbsData *mbs_data)
 Check the coherence between the number of (independant) constraints and the number of dependant variables. More...
 
int mbs_check_n_IO (UserIoInfo *user_IO_info, int n_in, int n_out, int n_user_IO)
 Check the coherence between the number of user_IO ports between .mbs and user_IO.c files. More...
 
int mbs_check_n_user_model (int Nuser_model, int n_usr_model)
 Check the coherence between the number of user_model between MBS data file and user_model.c files. More...
 
int mbs_check_user_model_list (int *user_model_list_mbs, int Nuser_model, int *user_model_list_c)
 Check the coherence between the number of user_model between MBS data file and user_model.c files. More...
 
int mbs_check_mbs_data_values (MbsAux *module_mbs_aux, MbsData *mbs_data)
 Check the coherence between the mbs_data used before module initialization and module run. More...
 

Detailed Description

Creation date: 18/03/2019

Author
Olivier Lantsoght

(c) Universite catholique de Louvain

Function Documentation

◆ mbs_check_mbs_data_values()

int mbs_check_mbs_data_values ( MbsAux *  module_mbs_aux,
MbsData mbs_data 
)

Check the coherence between the mbs_data used before module initialization and module run.

Parameters
[in]mbs_dataMbsData structure to check
[in]module_mbs_auxMbsAux structure to check, related to a module (ie: MbsDirdyn::mbs_aux)
Returns
0 if the two structure are coherent, -1 otherwhise more details : nqc Ncons nqv njoint nqu nuserc

◆ mbs_check_n_IO()

int mbs_check_n_IO ( UserIoInfo user_IO_info,
int  n_in,
int  n_out,
int  n_user_IO 
)

Check the coherence between the number of user_IO ports between .mbs and user_IO.c files.

Parameters
[in]user_IO_infouser_IO_info structure containing UserIoInfo from .mbs, to check
Returns
0 if the total number of user_IO AND the input number AND the ouput number are the same, -1 otherwhise

◆ mbs_check_n_user_model()

int mbs_check_n_user_model ( int  Nuser_model,
int  n_usr_model 
)

Check the coherence between the number of user_model between MBS data file and user_model.c files.

Parameters
[in]Nuser_modelnumber of user models from .mbs, to check
[in]n_usr_modelnumber of user models from user_model.c file, to check
Returns
0 if the total number of user_model is the same, -1 otherwhise

◆ mbs_check_nhu_nqv()

int mbs_check_nhu_nqv ( MbsData mbs_data)

Check the coherence between the number of (independant) constraints and the number of dependant variables.

Parameters
[in]mbs_dataMbsData structure to check
Returns
0 if the constraints matches the dependant variables, -1 otherwhise

◆ mbs_check_user_model_list()

int mbs_check_user_model_list ( int *  user_model_list_mbs,
int  Nuser_model,
int *  user_model_list_c 
)

Check the coherence between the number of user_model between MBS data file and user_model.c files.

Parameters
[in]user_model_list_mbsarray structure containing the numbers of parameters for all user models from .mbs file, to check
[in]Nuser_modelnumber of user models from .mbs, to check
[in]user_model_list_carray structure containing the numbers of parameters for all user models from user_model.c file, to check

IMPORTANT : The two lists "user_model_list_mbs" and "user_model_list_c" are ivec of size 'Nuser_model' They contain the number of parameter of user_models : user_model_list_mbs[0] = Nuser_model user_model_list_mbs[1] = Number of parameters of first user_model, from the MBS data file The lenghts must be the same ! (checked before)

Returns
0 if the numbers of parameters of each user model are all the same, -1 otherwhise