// // constructor declaration (with name) // FrequencyFilter::FrequencyFilter(const std::string &name):Component(name) ,ImageIn(OPROS_LAST,1) { portSetup(); }
ColorTracking::ColorTracking() :ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration (with name) // BirdsEyeView::BirdsEyeView(const std::string &name):Component(name) ,ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration (with name) // ObjectTrackingByOpticalFlow::ObjectTrackingByOpticalFlow(const std::string &name):Component(name) ,ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration (with name) // HandsMotionTracking::HandsMotionTracking(const std::string &name):Component(name) ,ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration (with name) // ErodeDilate::ErodeDilate(const std::string &name):Component(name) ,ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration (with name) // RGBValueControl::RGBValueControl(const std::string &name):Component(name) ,ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration (with name) // ARToolkitOPRoS::ARToolkitOPRoS(const std::string &name):Component(name) ,ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration (with name) // KITECH_InverseDynamicsControlComp::KITECH_InverseDynamicsControlComp(const std::string &name):Component(name) { error = 0; _dynamics = NULL; portSetup(); }
RGBValueControl::RGBValueControl() :ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration // KITECH_InverseDynamicsControlComp::KITECH_InverseDynamicsControlComp() { error = 0; _dynamics = NULL; portSetup(); }
// // constructor declaration (with name) // KitechCardinalSplineTrajectoryGenerationComp::KitechCardinalSplineTrajectoryGenerationComp(const std::string &name):Component(name) { _errorCode = OPROS_SUCCESS; _tension = 0.0; portSetup(); }
// // constructor declaration // KitechCardinalSplineTrajectoryGenerationComp::KitechCardinalSplineTrajectoryGenerationComp() { _errorCode = OPROS_SUCCESS; _tension = 0.0; portSetup(); }
// // constructor declaration (with name) // HelloMaker::HelloMaker(const std::string &name):Component(name) ,DataIn(OPROS_LAST,1) { ptrMessagePrint = NULL; portSetup(); }
// // constructor declaration // HumanDetection::HumanDetection() :ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration // ARToolkitOPRoS::ARToolkitOPRoS() :ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration (with name) // HumanDetection::HumanDetection(const std::string &name):Component(name) ,ImageIn(OPROS_LAST,1) { portSetup(); }
HandsMotionTracking::HandsMotionTracking() :ImageIn(OPROS_LAST,1) { portSetup(); }
ZoomInOut::ZoomInOut() :ImageIn(OPROS_LAST,1) { portSetup(); }
ErodeDilate::ErodeDilate() :ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration (with name) // ZoomInOut::ZoomInOut(const std::string &name):Component(name) ,ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration // BirdsEyeView::BirdsEyeView() :ImageIn(OPROS_LAST,1) { portSetup(); }
FrequencyFilter::FrequencyFilter() :ImageIn(OPROS_LAST,1) { portSetup(); }
// // constructor declaration // ObjectTrackingByOpticalFlow::ObjectTrackingByOpticalFlow() :ImageIn(OPROS_LAST,1) { portSetup(); }
Rotate::Rotate() :ImageIn(OPROS_LAST,1) { portSetup(); }
getCamComp::getCamComp(void) :cameraDataIn(OPROS_LAST, 1) { ptrInteractionManager = NULL; portSetup(); }
// // constructor declaration // HelloMaker::HelloMaker() :DataIn(OPROS_LAST,1) { ptrMessagePrint = NULL; portSetup(); }
void PortRs232::run(){ if(isRunning) return; serialPort = new QSerialPort(config->get("_setup_","port")); if(serialPort->open(QIODevice::ReadWrite)){; portSetup(); //Note: on Windows settings must be called after serialPort->open, otherwise we get garbage when device is plugged for the fist time isRunning = true; readyEmitted = false; serialPort->flush(); while((isRunning || sendBytes.length() > 0 )&& serialPort && serialPort->isOpen()){ if(!readyEmitted && isRunning && mainwindow->isPluginReady()) {emit ready(portID); readyEmitted = true;} //receive if(serialPort->bytesAvailable() > 0) emit newData(serialPort->readAll()); //send, data is queed from the GUI thread so we need to lock this section so both threads do not modify sendBytes at same time sendMutex.lock(); if(sendBytes.length()){ serialPort->write(sendBytes); qDebug() << "sent data:" << sendBytes.length(); sendBytes.clear(); } sendMutex.unlock(); qApp->processEvents(); } }else{ emit message("Could not open port "+config->get("_setup_","port")+"\nMake sure the port is available and not used by other applications.","critical"); } isRunning = false; if(serialPort->isOpen()) serialPort->close(); delete serialPort; emit stopped(); }
// // constructor declaration (with name) // GyroSensorComp::GyroSensorComp(const std::string &name):Component(name) { hOprosAPI = NULL; gyroSensor = NULL; lastError = OPROS_SUCCESS; portSetup(); }
// // constructor declaration // GyroSensorComp::GyroSensorComp() { hOprosAPI = NULL; gyroSensor = NULL; lastError = OPROS_SUCCESS; portSetup(); }