コード例 #1
0
int main (int argc, char **argv)
{
  int index = Simulation::contains(argv,argc,"-guide");
  if(index >0 && argc>index){
    teacher=atof(argv[index]);
    useSym = 1;
  }
  index = Simulation::contains(argv,argc,"-k");
  if(index >0 && argc>index){
    k=atoi(argv[index]);
  }
  index = Simulation::contains(argv,argc,"-change");
  if(index >0 && argc>index){
    change=atoi(argv[index]);
  }
  index = Simulation::contains(argv,argc,"-bars");
  if(index >0 && argc>index){
    bars=atoi(argv[index]);
  }
  index = Simulation::contains(argv,argc,"-stairs");
  if(index >0 && argc>index){
    stairs=atoi(argv[index]);
  }
  track = Simulation::contains(argv,argc,"-notrack") == 0;

  ThisSim sim;
  sim.setGroundTexture("Images/red_velour_wb.rgb");
  sim.setCaption("lpzrobots Simulator               Martius et al, 2009");
  return sim.run(argc, argv) ? 0 :  1;
}
コード例 #2
0
int main (int argc, char **argv)
{

  ThisSim sim;
  sim.setGroundTexture("Images/red_velour_wb.rgb");
  sim.setCaption("lpzrobots Simulator               Martius et al, 2009");
  return sim.run(argc, argv) ? 0 :  1;
}
コード例 #3
0
ファイル: main.cpp プロジェクト: sinusoidplus/lpzrobots
int main (int argc, char **argv)
{
    int index = Simulation::contains(argv,argc,"-guide");
    if(index >0 && argc>index) {
        teacher=atof(argv[index]);
    }
    index = Simulation::contains(argv,argc,"-bars");
    if(index >0 && argc>index) {
        bars=atoi(argv[index]);
    }
    track = Simulation::contains(argv,argc,"-track") != 0;
    tracksegm = Simulation::contains(argv,argc,"-tracksegm") != 0;

    ThisSim sim;
    sim.setGroundTexture("Images/green_velour_wb.rgb");
    sim.setCaption("lpzrobots Simulator Homeokinesis -  One-Layer Controller");
    return sim.run(argc, argv) ? 0 :  1;
}
コード例 #4
0
ファイル: main.cpp プロジェクト: kitt10/master_thesis_2016
/* 			$ ./start terrain_type
	e.g. 	$ ./start 4 
*/
int main(int argc, char **argv)
{
  ThisSim sim;
  sim.setGroundTexture("Images/greenground.rgb");
  if (argc > 1) {
  	terrain_type_g = atoi(argv[1]);
  }
  if (argc > 2) {
  	tn_std_prcnt = atof(argv[2]);
  	terrain_noise = true;
  	cout << "terrain_noise on" << endl;
  }
  if (argc > 3) {
  	sim_noise = atof(argv[3]);
  }
  
  return sim.run(argc, argv) ? 0 : 1;
}
コード例 #5
0
ファイル: main.cpp プロジェクト: pmanoonpong/gorobots_edu
int main(int argc, char **argv)
    {
  ThisSim sim;
  sim.setGroundTexture("Images/greenground.rgb");
  return sim.run(argc, argv) ? 0 : 1;
}