Changeset 158 in flair-src for trunk/demos/SimpleFleet/simulator/src
- Timestamp:
- Mar 5, 2017, 10:50:56 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/SimpleFleet/simulator/src/main.cpp
r33 r158 84 84 int main(int argc, char* argv[]) 85 85 { 86 86 Simulator *simu; 87 87 88 88 parseOptions(argc,argv); 89 89 90 simu= new Simulator("simulator",opti_time,90); 91 simu->SetupConnection(address,port); 92 simu->SetupUserInterface(xml_file); 90 simu= new Simulator("simulator",opti_time,90); 91 simu->SetupConnection(address,port); 92 simu->SetupUserInterface(xml_file); 93 #ifdef GL 94 Parser *gui=new Parser(1024,768,1024,768,media_path,scene_file); 95 #endif 96 for(int i=0; i<2;i++) { 97 stringstream uavName; 98 uavName << name.c_str() << "_" << i; 99 Model *drone=new X8(uavName.str(),i); 93 100 #ifdef GL 94 Parser *gui=new Parser(simu,640,480,640,480,media_path,scene_file);101 SimuUsGL *us_gl=new SimuUsGL(drone,"us",i,0); 95 102 #endif 96 for(int i=0; i<2;i++) 97 { 98 stringstream s; 99 s << name.c_str() << "_" << i; 100 Model *drone=new X8(simu,s.str(),i); 101 #ifdef GL 102 SimuUsGL *us_gl=new SimuUsGL(drone,"us",i); 103 #endif 104 SimuImu *imu=new SimuImu(drone,"imu",i); 105 } 103 SimuImu *imu=new SimuImu(drone,"imu",i,0); 104 } 106 105 107 106 simu->RunSimu(); 108 107 109 108 delete simu; 110 109 111 110 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.