virtual bool configure(ResourceFinder &rf)
    {
        thr=new CtrlThread(CTRL_THREAD_PER);
        if (!thr->start())
        {
            delete thr;
            return false;
        }

        return true;
    }
예제 #2
0
파일: main.cpp 프로젝트: apaikan/icub-main
 virtual bool configure(ResourceFinder &rf)
 {
     int rate = rf.check("rate",Value(20)).asInt();
     control_thr=new CtrlThread(rate,rf);
     if (!control_thr->start())
     {
         delete control_thr;
         return false;
     }
     return true;
 }
예제 #3
0
파일: main.cpp 프로젝트: iron76/Teaching
    bool configure(ResourceFinder &rf)
    {
        Time::turboBoost();
        thr=new CtrlThread(rf);
        if (!thr->start())
        {
            delete thr;
            return false;
        }

        return true;
    }