int main(int argc, char *argv[]) { Network yarp; if (!yarp.checkNetwork()) return -1; YARP_REGISTER_DEVICES(icubmod) // Network::connect("/icubSim/left_arm/contact:o", "/icubSim/left_arm/contact:i"); // Network::connect("/icubSim/skin/left_hand", "/icubSim/left_arm/contact:i"); ResourceFinder rf; rf.setVerbose(true); rf.setDefaultContext("actionPrimitivesExample/conf"); rf.setDefaultConfigFile("config.ini"); rf.setDefault("part","left_arm"); rf.setDefault("grasp_model_type","tactile"); rf.setDefault("grasp_model_file","grasp_model.ini"); rf.setDefault("hand_sequences_file","hand_sequences.ini"); rf.setDefault("name","actionPrimitivesMod"); rf.configure("ICUB_ROOT",argc,argv); ExampleModule mod; return mod.runModule(rf); }
int main(int argc, char *argv[]) { Network yarp; if (!yarp.checkNetwork()) { cout<<"YARP server not available!"<<endl; return 1; } ResourceFinder rf; rf.setVerbose(true); rf.setDefaultConfigFile("config.ini"); rf.setDefault("grasp_model_type","tactile"); rf.setDefault("grasp_model_file","grasp_model.ini"); rf.setDefault("hand_sequences_file","hand_sequences.ini"); rf.setDefault("name","actionPrimitivesMod"); rf.configure(argc,argv); ExampleModule mod; return mod.runModule(rf); }
int main(int argc, char *argv[]) { Network yarp; if (!yarp.checkNetwork()) { fprintf(stdout,"YARP server not available!\n"); return -1; } ResourceFinder rf; rf.setVerbose(true); rf.setDefault("name","percex"); rf.setDefault("robot","icub"); rf.setDefault("hand","right"); rf.setDefault("modelType","springy"); rf.setDefault("finger","index"); rf.configure(argc,argv); ExampleModule mod; return mod.runModule(rf); }