|
Robotran C Documentation
|
Go to the documentation of this file.
13 #ifndef MBS_INFOS_HELPER_h
14 #define MBS_INFOS_HELPER_h
39 int verbose,
int *err);
57 int verbose,
int *err);
75 int verbose,
int *err);
95 const char *param_name,
int verbose,
int *err);
113 int verbose,
int *err);
131 int verbose,
int *err);
149 int verbose,
int *err);
201 const char *point_name,
int verbose);
int mbs_info_get_point_id(MbsInfos *mbs_infos, const char *body_name, const char *point_name, int verbose)
Retrieve a point indice from its names (body and point name).
Definition: mbs_infos_helper.c:650
#define MBS_INFO_FAILURE
Definition: mbs_define.h:32
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
MbsInfoJoint * mbs_get_info_joint(MbsInfos *mbs_infos, const char *name, int verbose, int *err)
Retrieve the joint matching the given name.
Definition: mbs_infos_helper.c:328
char * name
Name of the parameter in the user model.
Definition: mbs_infos_struct.h:282
MbsInfoBase * base
Definition: mbs_infos_struct.h:427
char * body_name
Name of the body holding the point.
Definition: mbs_infos_struct.h:104
MbsInfoBody * mbs_get_info_body(MbsInfos *mbs_infos, const char *name, int verbose, int *err)
Retrieve the body matching the given name.
Definition: mbs_infos_helper.c:261
MbsInfoUserIO ** user_IO_list
The detail of each user IO in the system.
Definition: mbs_infos_struct.h:394
MbsInfoUserIO * mbs_get_info_user_io(MbsInfos *mbs_infos, const char *name, int verbose, int *err)
Retrieve a user IO matching a name in the User IOs list of MbsInfos.
Definition: mbs_infos_helper.c:24
This structure contains all informations about a joint.
Definition: mbs_infos_struct.h:130
int mbs_info_get_body_id(MbsInfos *mbs_infos, const char *name, int verbose)
Retrieve a body indice from its name.
Definition: mbs_infos_helper.c:541
MbsInfoParameter * mbs_get_um_info_parameter(MbsInfos *mbs_infos, const char *um_name, const char *param_name, int verbose, int *err)
Retrieve a parameter in a user model matching the names in the User Models list of MbsInfos.
Definition: mbs_infos_helper.c:252
int mbs_strcmp(const char *__s1, const char *__s2)
Compare two char with strcmp.
Definition: useful_functions.c:568
MbsInfoJoint * mbs_get_info_joint(MbsInfos *mbs_infos, const char *name, int verbose, int *err)
Retrieve the joint matching the given name.
Definition: mbs_infos_helper.c:328
#define MSG_ERR
Definition: mbs_infos_helper.c:21
MbsInfoPoint * mbs_get_info_point(MbsInfoBody *mbs_body, const char *name, int verbose, int *err)
Retrieve the point matching the given name on a body.
Definition: mbs_infos_helper.c:395
MbsInfoParameter * mbs_get_um_info_parameter(MbsInfos *mbs_infos, const char *um_name, const char *param_name, int verbose, int *err)
Retrieve a parameter in a user model matching the names in the User Models list of MbsInfos.
Definition: mbs_infos_helper.c:252
int n_joint
Definition: mbs_infos_struct.h:182
Definition: mbs_infos_struct.h:425
char * name
Name of the point.
Definition: mbs_infos_struct.h:103
MbsInfoUserIO * mbs_get_info_user_io(MbsInfos *mbs_infos, const char *name, int verbose, int *err)
Retrieve a user IO matching a name in the User IOs list of MbsInfos.
Definition: mbs_infos_helper.c:24
int mbs_info_get_body_id(MbsInfos *mbs_infos, const char *name, int verbose)
Retrieve a body indice from its name.
Definition: mbs_infos_helper.c:541
char * name
Name of the joint.
Definition: mbs_infos_struct.h:132
MbsInfoUserModel * mbs_get_info_user_model(MbsInfos *mbs_infos, const char *name, int verbose, int *err)
Retrieve a user model matching a name in the User Models list of MbsInfos.
Definition: mbs_infos_helper.c:118
Definition: mbs_infos_struct.h:347
MbsInfoParameter ** parameter_list
Definition: mbs_infos_struct.h:352
This header defines MbsInfos loading/deleting functions.
MbsInfoPoint ** point_list
Array of pointers to the MDS_point_strct describing each point of current body.
Definition: mbs_infos_struct.h:173
MbsInfoUserModel * mbs_get_info_user_model(MbsInfos *mbs_infos, const char *name, int verbose, int *err)
Retrieve a user model matching a name in the User Models list of MbsInfos.
Definition: mbs_infos_helper.c:118
MbsInfoUserIOs * user_IOs
Definition: mbs_infos_struct.h:432
Description of a user model parameter loaded from the mbs file.
Definition: mbs_infos_struct.h:280
void mbs_msg_v(int v_opt, int v_lvl, const char *msg,...)
Send a message only of the message level is lower than the verbosity option.
Definition: mbs_message.c:143
int n_parameter
Definition: mbs_infos_struct.h:351
char * name
Name of the user IO.
Definition: mbs_infos_struct.h:369
int n_user_IO
Number of user IO in the system.
Definition: mbs_infos_struct.h:388
#define MBS_VERBOSE_ERROR
Definition: mbs_define.h:45
MbsInfoBody * mbs_get_info_body(MbsInfos *mbs_infos, const char *name, int verbose, int *err)
Retrieve the body matching the given name.
Definition: mbs_infos_helper.c:261
MbsInfoBody ** body_list
Definition: mbs_infos_struct.h:180
int n_point
Number of point defined on the body.
Definition: mbs_infos_struct.h:172
This structure contains all informations about a body.
Definition: mbs_infos_struct.h:158
Definition: mbs_infos_struct.h:366
int n_user_model
Definition: mbs_infos_struct.h:358
MbsInfoParameter * mbs_get_info_parameter(MbsInfoUserModel *um, const char *name, int verbose, int *err)
Retrieve a user model parameter matching a name in a provided User Model.
Definition: mbs_infos_helper.c:186
MbsInfoPoint ** point_list
List of all anchors point in the model
Definition: mbs_infos_struct.h:445
int mbs_info_get_joint_id(MbsInfos *mbs_infos, const char *name, int verbose)
Retrieve a joint indice from its name.
Definition: mbs_infos_helper.c:469
This structure handle everything that a point on a MBS structure can handle (sensor,...
Definition: mbs_infos_struct.h:101
int n_joint
Number of joints in the model
Definition: mbs_infos_struct.h:472
#define MBS_VERBOSE_WARNING
Definition: mbs_define.h:46
MbsInfoBodytree * bodytree
Definition: mbs_infos_struct.h:428
int mbs_info_get_point_id(MbsInfos *mbs_infos, const char *body_name, const char *point_name, int verbose)
Retrieve a point indice from its names (body and point name).
Definition: mbs_infos_helper.c:650
MbsInfoUserModel ** user_model_list
Definition: mbs_infos_struct.h:359
int n_body
Definition: mbs_infos_struct.h:179
#define MBS_INFO_SUCCESS
Definition: mbs_define.h:30
MbsInfoUserModels * user_models
Definition: mbs_infos_struct.h:431
char * base_body_name
baseBodyName as defined in the base body in mbs/json file
Definition: mbs_infos_struct.h:124
char * name
Definition: mbs_infos_struct.h:349
char * name
Name of the body.
Definition: mbs_infos_struct.h:160
MbsInfoJoint ** joint_list
Definition: mbs_infos_struct.h:183
MbsInfoParameter * mbs_get_info_parameter(MbsInfoUserModel *um, const char *name, int verbose, int *err)
Retrieve a user model parameter matching a name in a provided User Model.
Definition: mbs_infos_helper.c:186
int n_point
Number of anchor points.
Definition: mbs_infos_struct.h:443
#define MSG_TAB
Definition: mbs_infos_helper.c:22
int mbs_info_get_joint_id(MbsInfos *mbs_infos, const char *name, int verbose)
Retrieve a joint indice from its name.
Definition: mbs_infos_helper.c:469
int mbs_stricmp(const char *__s1, const char *__s2)
Compare two char with _stricmp (convert strings to lower case, ignoring case sensitive).
Definition: useful_functions.c:584
#define MBS_VERBOSE_ALL
Definition: mbs_define.h:47
MbsInfoJoint ** all_joint_list
Ordered list of all joints in the model
Definition: mbs_infos_struct.h:470
int n_joint
Number of joints leaving the body.
Definition: mbs_infos_struct.h:165
MbsInfoPoint * mbs_get_info_point(MbsInfoBody *mbs_body, const char *name, int verbose, int *err)
Retrieve the point matching the given name on a body.
Definition: mbs_infos_helper.c:395