Robotran C Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages

Model loading

Loading of the model data from the xml description file (.mbs) generated by MBSysPad to MBSysC.
For more information, see Robotran theoritical framework.

Code sample

For loading the model, insert the following code at the beginning of your main routine and adapt it to your need :

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* LOADING *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
MbsData *mbs_data;
mbs_msg("Loading the $prjName$ data file !\n");
mbs_data = mbs_load("$prjName$.mbs");
mbs_msg("*.mbs file loaded!\n");

Use

The loading is performed by the function mbs_load().

mbs_msg
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
mbs_load
MbsData * mbs_load(const char *mbs_filename)
Load the data from the given multibody file.
Definition: mbs_loader.c:25
MbsData
Definition: mbs_data.h:247