21 int main(
int argc,
char* argv[]) {
23 cerr <<
"Usage:" << endl;
24 cerr <<
"./" << argv[0]
25 <<
" DIR_OF_VRML_MODEL VRML_MODEL_FILENAME PATH_TO_SPECIFICITIES_FILE "
26 "PATH_TO_LINK2JOINT_FILE "
28 cerr <<
" DIR_OF_VRML_MODEL : Directory where the robot VRML model lies. "
30 cerr <<
" VRML_MODEL_FILENAME : Filename of the VRML model describing the "
33 cerr <<
" PATH_TO_SPECIFICITIES_FILE : Path to the file describing the "
34 "humanoid robot specificities."
36 cerr <<
" PATH_TO_LINK2JOINT_FILE: Path to the file describing the "
37 "relationship of the joint and the state vector."
40 Dynamic*
dyn =
new Dynamic(
"tot");
42 dyn->setVrmlDirectory(argv[1]);
43 dyn->setXmlSpecificityFile(argv[3]);
44 dyn->setXmlRankFile(argv[4]);
45 dyn->setVrmlMainFile(argv[2]);
47 dyn->parseConfigFiles();
49 if (!strcmp(e.
what(),
"Error while parsing.")) {
50 cout <<
"Could not locate the necessary files for this test" << endl;