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().

MbsData
Definition: mbs_data.h:149
mbs_load
MbsData * mbs_load(const char *mbs_filename, const char *build_path)
Load the data from the given *.mbs file (data in the xml format).
Definition: mbs_loader.c:36