Robotran C Documentation

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;
printf("Loading the $prjName$ data file !\n");
mbs_data = mbs_load(PROJECT_SOURCE_DIR"/../dataR/$prjName$.mbs", BUILD_PATH);
printf("*.mbs file loaded!\n");

Use

The loading is performed by the function mbs_load().