|
Robotran C Documentation
|
Go to the documentation of this file.
13 #ifndef MBS_INFOS_HELPER_h
14 #define MBS_INFOS_HELPER_h
19 int verbose,
int *err);
37 int verbose,
int *err);
55 int verbose,
int *err);
75 const char *param_name,
int verbose,
int *err);
93 int verbose,
int *err);
111 int verbose,
int *err);
129 int verbose,
int *err);
181 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:648
#define MBS_INFO_FAILURE
Definition: mbs_define.h:31
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_binder_public.h:285
MbsInfoBase * base
Definition: mbs_binder_public.h:430
char * body_name
Name of the body holding the point.
Definition: mbs_binder_public.h:107
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_binder_public.h:397
MbsInfoUserIO * mbs_get_info_user_io(MbsInfos *mbs_infos, const char *name, int verbose, int *err)
Definition: mbs_infos_helper.c:24
This structure contains all informations about a joint.
Definition: mbs_binder_public.h:133
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:539
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:388
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_binder_public.h:185
Definition: mbs_binder_public.h:428
char * name
Name of the point.
Definition: mbs_binder_public.h:106
MbsInfoUserIO * mbs_get_info_user_io(MbsInfos *mbs_infos, const char *name, int verbose, int *err)
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:539
char * name
Name of the joint.
Definition: mbs_binder_public.h:135
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_binder_public.h:350
MbsInfoParameter ** parameter_list
Definition: mbs_binder_public.h:355
This header defines MbsInfos (and its substructures) as well as the loading/deleting functions.
MbsInfoPoint ** point_list
Array of pointers to the MDS_point_strct describing each point of current body.
Definition: mbs_binder_public.h:176
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_binder_public.h:435
Description of a user model parameter loaded from the mbs file.
Definition: mbs_binder_public.h:283
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_binder_public.h:354
char * name
Name of the user IO.
Definition: mbs_binder_public.h:372
int n_user_IO
Number of user IO in the system.
Definition: mbs_binder_public.h:391
#define MBS_VERBOSE_ERROR
Definition: mbs_define.h:44
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_binder_public.h:183
int n_point
Number of point defined on the body.
Definition: mbs_binder_public.h:175
This structure contains all informations about a body.
Definition: mbs_binder_public.h:161
Definition: mbs_binder_public.h:369
int n_user_model
Definition: mbs_binder_public.h:361
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_binder_public.h:448
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_binder_public.h:104
int n_joint
Number of joints in the model
Definition: mbs_binder_public.h:475
#define MBS_VERBOSE_WARNING
Definition: mbs_define.h:45
MbsInfoBodytree * bodytree
Definition: mbs_binder_public.h:431
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:648
MbsInfoUserModel ** user_model_list
Definition: mbs_binder_public.h:362
int n_body
Definition: mbs_binder_public.h:182
MbsInfoUserModels * user_models
Definition: mbs_binder_public.h:434
char * base_body_name
baseBodyName as defined in the base body in mbs/json file
Definition: mbs_binder_public.h:127
char * name
Definition: mbs_binder_public.h:352
char * name
Name of the body.
Definition: mbs_binder_public.h:163
MbsInfoJoint ** joint_list
Definition: mbs_binder_public.h:186
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_binder_public.h:446
#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:404
#define MBS_VERBOSE_ALL
Definition: mbs_define.h:46
MbsInfoJoint ** all_joint_list
Ordered list of all joints in the model
Definition: mbs_binder_public.h:473
int n_joint
Number of joints leaving the body.
Definition: mbs_binder_public.h:168
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