int main(int argc, char *argv[]) { ResourceFinder rf; rf.setVerbose(true); rf.setDefaultContext("navigation"); rf.setDefaultConfigFile("fakeMobileBaseTest.ini"); rf.configure(argc,argv); if (rf.check("help")) { yInfo("Possible options: "); yInfo("'period <r>' sets the threads period (default 20ms)."); yInfo("'joystick_connect' tries to automatically connect to the joystickCtrl output."); yInfo("'holonomic' if set, the robot will be holonomic"); return 0; } Network yarp; if (!yarp.checkNetwork()) { yError("Sorry YARP network does not seem to be available, is the yarp server available?\n"); return -1; } CtrlModule mod; return mod.runModule(rf); }
int main(int argc, char *argv[]) { ResourceFinder rf; rf.setVerbose(true); rf.setDefaultContext("cer"); rf.setDefaultConfigFile("robotJoystickCtrl.ini"); rf.configure(argc,argv); if (rf.check("help")) { yInfo("Possible options: "); yInfo("'robot <name>' the robot name for remote connection."); yInfo("'local <name>' the local port name."); yInfo("'rate <r>' sets the threads rate (default 20ms)."); yInfo("'no_motors' motor interface will not be opened."); yInfo("'joystick_connect' tries to automatically connect to the joystickCtrl output."); yInfo("'skip_robot_interface_check' does not connect to robotInterface/rpc (useful for simulator)"); yInfo("''"); yInfo("example: robotJoystickCtrl --robot SIM_CER_ROBOT --joystick_connect --skip_robot_interface_check "); return 0; } Network yarp; if (!yarp.checkNetwork()) { yError("Sorry YARP network does not seem to be available, is the yarp server available?\n"); return -1; } CtrlModule mod; return mod.runModule(rf); }
int main(int argc, char * argv[]) { ResourceFinder rf; rf.setVerbose(true); rf.configure(argc,argv); //rf.setDefaultContext("empty"); //rf.setDefaultConfigFile("empty"); if (rf.check("help")) { //help here } //initialize yarp network Network yarp; if (!yarp.checkNetwork()) { fprintf(stderr, "Sorry YARP network does not seem to be available, is the yarp server available?\n"); return -1; } YARP_REGISTER_DEVICES(icubmod) CtrlModule mod; return mod.runModule(rf); }
int main(int argc, char *argv[]) { ResourceFinder rf; rf.setVerbose(true); rf.setDefaultContext("navigation"); rf.setDefaultConfigFile("baseCtrl.ini"); rf.configure(argc,argv); if (rf.check("help")) { yInfo("Possible options: "); yInfo("'rate <r>' sets the threads rate (default 20ms)."); yInfo("'no_filter' disables command filtering."); yInfo("'no_motors' motor interface will not be opened."); yInfo("'no_start' do not automatically enables pwm."); yInfo("'joystick_connect' tries to automatically connect to the joystickCtrl output."); yInfo("'skip_robot_interface_check' does not connect to robotInterface/rpc (useful for simulator)"); return 0; } //Initialize Yarp network Network yarp; if (!yarp.checkNetwork()) { yError("Sorry YARP network does not seem to be available, is the yarp server available?\n"); return -1; } //Starts the control module CtrlModule mod; return mod.runModule(rf); }
int main() { // we need to initialize the drivers list YARP_REGISTER_DEVICES(icubmod) Network yarp; if (!yarp.checkNetwork()) return -1; CtrlModule mod; ResourceFinder rf; return mod.runModule(rf); }
int main() { Network yarp; if (!yarp.checkNetwork()) { fprintf(stdout,"Error: yarp server does not seem available\n"); return 1; } CtrlModule mod; ResourceFinder rf; return mod.runModule(rf); }
int main(int argc, char *argv[]) { Network yarp; if (!yarp.checkNetwork()) { yError("Yarp network seems unavailable!"); return -1; } CtrlModule mod; ResourceFinder rf; rf.configure(argc,argv); return mod.runModule(rf); }
int main(int argc, char *argv[]) { Network yarp; if (!yarp.checkNetwork()) return 1; ResourceFinder rf; rf.setVerbose(true); rf.setDefault("name","tracker"); rf.setDefault("period","0.02"); rf.configure(argc,argv); CtrlModule mod; return mod.runModule(rf); }
int main() { // we need to initialize the drivers list YARP_REGISTER_DEVICES(icubmod) Network yarp; if (!yarp.checkNetwork()) return -1; // Network::connect("/objectDetector/target","/cartesian/target/in"); CtrlModule mod; ResourceFinder rf; return mod.runModule(rf); }
int main(int argc, char *argv[]) { Network yarp; if (!yarp.checkNetwork()) return -1; ResourceFinder rf; rf.setVerbose(true); rf.setDefault("name","eyeTriangulation"); rf.setDefault("robot","icub"); rf.setDefaultContext("cameraCalibration/conf"); rf.setDefaultConfigFile("icubEyes.ini"); rf.configure("ICUB_ROOT",argc,argv); CtrlModule mod; return mod.runModule(rf); }
int main(int argc, char *argv[]) { ResourceFinder rf; rf.setVerbose(true); rf.setDefaultConfigFile( "conf/config.ini" ); //overridden by --from parameter rf.setDefaultContext( "iKartWirelessDisplay" ); //overridden by --context parameter rf.configure(argc,argv); if (rf.check("help")) { cout << "Options:" << endl << endl; cout << "\tNo options at the moment"<< endl; return 0; } CtrlModule mod; return mod.runModule(rf); }