Changeset 377 in flair-src for trunk/demos/TwoWheelRobotCircleFollower/ugv/src/main.cpp
- Timestamp:
- Dec 16, 2020, 9:40:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/TwoWheelRobotCircleFollower/ugv/src/main.cpp
r376 r377 14 14 #include "CircleFollower.h" 15 15 #include <FrameworkManager.h> 16 #include <UgvFactory.h> 16 17 #include <stdio.h> 17 18 #include <tclap/CmdLine.h> … … 24 25 using namespace flair::sensor; 25 26 27 string ugv_type; 26 28 string log_path; 27 29 int port; … … 43 45 manager->SetupLogger(log_path); 44 46 47 Ugv* ugv=CreateUgv(name,ugv_type); 45 48 TargetEthController *controller=new TargetEthController("Dualshock3",ds3port); 46 49 CircleFollower* demo=new CircleFollower(name,controller); … … 59 62 ValueArg<string> nameArg("n","name","uav name, also used for vrpn",true,"x4","string"); 60 63 cmd.add( nameArg ); 64 65 ValueArg<string> typeArg("t","type","ugv type: sumo, ugv_simu or ugv_simux (with x the number of the simulated ugv)",true,"ugv_sumo","string"); 66 cmd.add( typeArg ); 61 67 62 68 ValueArg<string> xmlArg("x","xml","fichier xml",true,"./reglages.xml","string"); … … 84 90 name=nameArg.getValue(); 85 91 address=addressArg.getValue(); 92 ugv_type=typeArg.getValue(); 86 93 87 94 } catch (ArgException &e) { // catch any exceptions
Note:
See TracChangeset
for help on using the changeset viewer.