|
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);
217 int *nb_pts,
int **ids,
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:651
#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:329
char * name
Name of the parameter in the user model.
Definition: mbs_infos_struct.h:282
MbsInfoBase * base
Definition: mbs_infos_struct.h:431
#define MSG_PRE
Definition: mbs_infos_helper.c:22
int n_base_point
Number of point of interest (extremities of joint bearing a sensor plus anchor point) defined on the ...
Definition: mbs_infos_struct.h:122
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:262
MbsInfoUserIO ** user_IO_list
The detail of each user IO in the system.
Definition: mbs_infos_struct.h:398
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:25
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:542
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:253
int mbs_strcmp(const char *__s1, const char *__s2)
Compare two char with strcmp.
Definition: useful_functions.c:569
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:329
#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:396
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:253
int n_joint
Definition: mbs_infos_struct.h:182
int mbs_info_get_body_points_ids(MbsInfos *mbs_infos, const char *body_name, int *nb_pts, int **ids, int verbose)
Retrieve the indices of all points on a body except its origin.
Definition: mbs_infos_helper.c:776
Definition: mbs_infos_struct.h:429
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:25
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:542
MbsInfoPoint ** base_point_list
Array of pointers to the MDS_point_strct describing each point of the MBS.
Definition: mbs_infos_struct.h:123
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:119
Definition: mbs_infos_struct.h:351
MbsInfoParameter ** parameter_list
Definition: mbs_infos_struct.h:356
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:119
int mbs_info_get_body_points_ids(MbsInfos *mbs_infos, const char *body_name, int *nb_pts, int **ids, int verbose)
Retrieve the indices of all points on a body except its origin.
Definition: mbs_infos_helper.c:776
MbsInfoUserIOs * user_IOs
Definition: mbs_infos_struct.h:436
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:355
char * name
Name of the user IO.
Definition: mbs_infos_struct.h:373
int n_user_IO
Number of user IO in the system.
Definition: mbs_infos_struct.h:392
#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:262
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
int * get_ivec_0(int l_v)
create (with memory allocation) a vector (length l_v) of integers, starting at index 0....
Definition: mbs_1D_array.c:818
Definition: mbs_infos_struct.h:370
int n_user_model
Definition: mbs_infos_struct.h:362
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:187
MbsInfoPoint ** point_list
List of all anchors point in the model
Definition: mbs_infos_struct.h:449
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:470
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:480
#define MBS_VERBOSE_WARNING
Definition: mbs_define.h:46
MbsInfoBodytree * bodytree
Definition: mbs_infos_struct.h:432
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:651
MbsInfoUserModel ** user_model_list
Definition: mbs_infos_struct.h:363
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:435
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:353
char * name
Name of the body.
Definition: mbs_infos_struct.h:160
#define MBS_INFO_WARNING
Definition: mbs_define.h:31
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:187
int n_point
Number of anchor points.
Definition: mbs_infos_struct.h:447
#define MSG_TAB
Definition: mbs_infos_helper.c:23
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:470
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:585
#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:478
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:396