#include "mbs_binder_public.h"Go to the source code of this file.
Functions | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| MbsInfoBody * | mbs_get_info_body (MbsInfos *mbs_infos, const char *name, int verbose, int *err) |
| Retrieve the body matching the given name. More... | |
| MbsInfoJoint * | mbs_get_info_joint (MbsInfos *mbs_infos, const char *name, int verbose, int *err) |
| Retrieve the joint matching the given name. More... | |
| 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. More... | |
| int | mbs_info_get_body_id (MbsInfos *mbs_infos, const char *name, int verbose) |
| Retrieve a body indice from its name. More... | |
| int | mbs_info_get_joint_id (MbsInfos *mbs_infos, const char *name, int verbose) |
| Retrieve a joint indice from its name. More... | |
| 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). More... | |
| 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. More... | |
Declare utilities to get and set values in an existing MbsInfos structure.
Creation date: 31-01-2023
(c) Universite catholique de Louvain
| MbsInfoBody* mbs_get_info_body | ( | MbsInfos * | mbs_infos, |
| const char * | name, | ||
| int | verbose, | ||
| int * | err | ||
| ) |
Retrieve the body matching the given name.
| [in] | mbs_infos | The multibody system informations structure. |
| [in] | name | The body name. |
| [in] | verbose | Flag, set to false to disable verbosity. |
| [out] | err | Pointer to the error code memory place. Values are:
|
| MbsInfoJoint* mbs_get_info_joint | ( | MbsInfos * | mbs_infos, |
| const char * | name, | ||
| int | verbose, | ||
| int * | err | ||
| ) |
Retrieve the joint matching the given name.
| [in] | mbs_infos | The multibody system informations structure. |
| [in] | name | The joint name. |
| [in] | verbose | Flag, set to false to disable verbosity. |
| [out] | err | Pointer to the error code memory place. Values are:
|
| 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.
| [in] | um | The user model containing the parameter. |
| [in] | name | The parameter name. |
| [in] | verbose | Flag, set to false to disable verbosity. |
| [out] | err | Pointer to the error code memory place. Values are:
|
| 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.
| [in] | mbs_body | The body to be parsed for the point. |
| [in] | name | The point name. |
| [in] | verbose | Flag, set to false to disable verbosity. |
| [out] | err | Pointer to the error code memory place. Values are:
|
| 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.
| [in] | mbs_infos | The multibody system informations structure. |
| [in] | name | The user IO name. |
| [in] | verbose | Flag, see macros MBS_VERBOSE_XXX in "mbs_define.h". |
| [in,out] | Pointer | to the error code memory place. Values are:
|
| 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.
| [in] | mbs_infos | The multibody system informations structure. |
| [in] | name | The user model name. |
| [in] | verbose | Flag, set to false to disable verbosity. |
| [out] | err | Pointer to the error code memory place. Values are:
|
| 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.
This function is a redirection to multiple subfunctions, the checking of the parameters is done by the subfunctions.
| [in] | mbs_infos | The multibody system informations structure. |
| [in] | um_name | The user model name. |
| [in] | param_name | The parameter name. |
| [in] | verbose | Flag, set to false to disable verbosity. |
| [out] | err | Pointer to the error code memory place. Values are:
|
| int mbs_info_get_body_id | ( | MbsInfos * | mbs_infos, |
| const char * | name, | ||
| int | verbose | ||
| ) |
Retrieve a body indice from its name.
A specific warning is printed (if verbosity is activated) if the exact body is not located, but can be found in non-sensitive name comparison.
| [in] | mbs_infos | The multibody system informations structure. |
| [in] | name | The body name, the base body can be referenced by the keyword "base", "baseBodyName" or the name set on the base body in the file. |
| [in] | verbose | Flag, set to false to disable verbosity (errors included). |
| 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.
| [in] | mbs_infos | The multibody system informations structure. |
| [in] | name | The body name, the base body can be referenced by the keyword "base", "baseBodyName" or the name set on the base body in the file. |
| [out] | nb_pts | Pointer to set the number of points on the body. It cannot be NULL. |
| [out] | ids | Pointer to set the array of points ids. The provided targeted adress (ids[0]) is not freed if not NULL. It (ids) cannot be NULL. |
| int mbs_info_get_joint_id | ( | MbsInfos * | mbs_infos, |
| const char * | name, | ||
| int | verbose | ||
| ) |
Retrieve a joint indice from its name.
A specific warning is printed (if verbosity is activated) if the exact joint is not located, but can be found in non-sensitive name comparison.
Set errno if joint is not located.
| [in] | mbs_infos | The multibody system informations structure. |
| [in] | name | The joint name. |
| [in] | verbose | Flag, set to false to disable verbosity (errors included). |
| 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).
A specific warning is printed (if verbosity is activated) if the exact body/point is not located, but can be found in non-sensitive names comparison.
| [in] | mbs_infos | The multibody system informations structure. |
| [in] | name | The body name, the base body can be referenced by the keyword "base", "baseBodyName" or the name set on the base body in the file. |
| [in] | point_name | The point name (on the body). |
| [in] | verbose | Flag, set to false to disable verbosity (errors included). |
1.8.17