Пример #1
0
//
// constructor declaration (with name)
//
FrequencyFilter::FrequencyFilter(const std::string &name):Component(name)
    ,ImageIn(OPROS_LAST,1)
{


    portSetup();
}
Пример #2
0
ColorTracking::ColorTracking()
		:ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #3
0
//
// 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();
}
Пример #5
0
//
// constructor declaration (with name)
//
HandsMotionTracking::HandsMotionTracking(const std::string &name):Component(name)
		,ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #6
0
//
// constructor declaration (with name)
//
ErodeDilate::ErodeDilate(const std::string &name):Component(name)
		,ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #7
0
//
// constructor declaration (with name)
//
RGBValueControl::RGBValueControl(const std::string &name):Component(name)
		,ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #8
0
//
// 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();
}
Пример #10
0
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();
}
Пример #14
0
//
// constructor declaration (with name)
//
HelloMaker::HelloMaker(const std::string &name):Component(name)
		,DataIn(OPROS_LAST,1)
{
	ptrMessagePrint = NULL;
	
	portSetup();
}
Пример #15
0
//
// constructor declaration
//
HumanDetection::HumanDetection()
		:ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #16
0
//
// constructor declaration
//
ARToolkitOPRoS::ARToolkitOPRoS()
		:ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #17
0
//
// constructor declaration (with name)
//
HumanDetection::HumanDetection(const std::string &name):Component(name)
		,ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #18
0
HandsMotionTracking::HandsMotionTracking()
		:ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #19
0
ZoomInOut::ZoomInOut()
		:ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #20
0
ErodeDilate::ErodeDilate()
		:ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #21
0
//
// constructor declaration (with name)
//
ZoomInOut::ZoomInOut(const std::string &name):Component(name)
		,ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #22
0
//
// constructor declaration
//
BirdsEyeView::BirdsEyeView()
		:ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #23
0
FrequencyFilter::FrequencyFilter()
    :ImageIn(OPROS_LAST,1)
{


    portSetup();
}
//
// constructor declaration
//
ObjectTrackingByOpticalFlow::ObjectTrackingByOpticalFlow()
		:ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #25
0
Rotate::Rotate()
		:ImageIn(OPROS_LAST,1)
{

	
	portSetup();
}
Пример #26
0
getCamComp::getCamComp(void)
:cameraDataIn(OPROS_LAST, 1)

{
	ptrInteractionManager = NULL;
	portSetup();
}
Пример #27
0
//
// constructor declaration
//
HelloMaker::HelloMaker()
		:DataIn(OPROS_LAST,1)
{
	ptrMessagePrint = NULL;
	
	portSetup();
}
Пример #28
0
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();
}
Пример #29
0
//
// constructor declaration (with name)
//
GyroSensorComp::GyroSensorComp(const std::string &name):Component(name)
{
	hOprosAPI = NULL;
	gyroSensor = NULL;
	lastError = OPROS_SUCCESS;
	
	portSetup();
}
Пример #30
0
//
// constructor declaration
//
GyroSensorComp::GyroSensorComp()
{
	hOprosAPI = NULL;
	gyroSensor = NULL;
	lastError = OPROS_SUCCESS;
	
	portSetup();
}