示例#1
0
文件: main.cpp 项目: iron76/Teaching
int main(int argc, char *argv[])
{
    Network yarp;
    if (!yarp.checkNetwork())
        return 1;

    ResourceFinder rf;
    rf.setVerbose(true);
    rf.setDefault("name","mover");
    rf.configure(argc,argv);

    Launcher launcher;
    return launcher.runModule(rf);
}
示例#2
0
int main()
{
    Network yarp;
    if (!yarp.checkNetwork())
    {
        cout<<"Error: yarp server does not seem available"<<endl;
        return 1;
    }

    // register here the new yarp devices
    // for dealing with the fake robot
    registerFakeMotorDevices();
    
    Launcher launcher;
    ResourceFinder rf;
    return launcher.runModule(rf);
}
示例#3
0
int main(int argc, char *argv[])
{
    Network yarp;
    if (!yarp.checkNetwork())
    {
        yError("YARP server not available!");
        return -1;
    }

    ResourceFinder rf;
    rf.setVerbose(true);
    rf.setDefault("name","iSpeak");
    rf.setDefault("robot","icub");
    rf.setDefault("package","festival");
    rf.setDefault("package_options","");
    rf.configure(argc,argv);

    Launcher launcher;
    return launcher.runModule(rf);
}