diff --git a/src/actionApplyForce.cpp b/src/actionApplyForce.cpp index 8168af8..7230ad7 100644 --- a/src/actionApplyForce.cpp +++ b/src/actionApplyForce.cpp @@ -44,7 +44,7 @@ execution ActionApplyForce::execute(const TestRepetitions& testrepetition) if(!ok) { addProblem(testrepetition,Severity::critical,"Unable to open ports applyforce",true); - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } yarp::os::Network::connect(localExtWrenchPort,remoteExtWrenchPort); @@ -55,7 +55,7 @@ execution ActionApplyForce::execute(const TestRepetitions& testrepetition) if(tokenized.size()!=8) { addProblem(testrepetition,Severity::error,"Error in parameter number for applyForce",true); - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } yarp::os::Bottle cmd; @@ -78,6 +78,6 @@ execution ActionApplyForce::execute(const TestRepetitions& testrepetition) extWrenchPort.interrupt(); extWrenchPort.close(); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } } \ No newline at end of file diff --git a/src/actionCanRead.cpp b/src/actionCanRead.cpp index cc8b699..fcf0a7b 100644 --- a/src/actionCanRead.cpp +++ b/src/actionCanRead.cpp @@ -52,7 +52,7 @@ execution ActionCanRead::execute(const TestRepetitions& testrepetition) { logStream << "Unable to find " << polyDriverTag_ <<" in the depot"; addProblem(testrepetition, Severity::error, logStream.str(),true); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } auto pdrPtr = pdr->second; @@ -118,6 +118,6 @@ execution ActionCanRead::execute(const TestRepetitions& testrepetition) } - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } } \ No newline at end of file diff --git a/src/actionCanWrite.cpp b/src/actionCanWrite.cpp index a7807d4..e3526b6 100644 --- a/src/actionCanWrite.cpp +++ b/src/actionCanWrite.cpp @@ -49,7 +49,7 @@ execution ActionCanWrite::execute(const TestRepetitions& testrepetition) { logStream << "Unable to find " << polyDriverTag_ <<" in the depot"; addProblem(testrepetition, Severity::error, logStream.str(),true); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } auto pdrPtr = pdr->second; @@ -108,6 +108,6 @@ execution ActionCanWrite::execute(const TestRepetitions& testrepetition) } - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } } \ No newline at end of file diff --git a/src/actionCheckComDistance.cpp b/src/actionCheckComDistance.cpp index 971b267..fa445bc 100644 --- a/src/actionCheckComDistance.cpp +++ b/src/actionCheckComDistance.cpp @@ -55,7 +55,7 @@ execution ActionCheckComDistance::execute(const TestRepetitions&) if(error) addProblem(testrepetition,Severity::error); */ - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } } \ No newline at end of file diff --git a/src/actionCheckJointPosition.cpp b/src/actionCheckJointPosition.cpp index 52603ba..7bded53 100644 --- a/src/actionCheckJointPosition.cpp +++ b/src/actionCheckJointPosition.cpp @@ -46,14 +46,14 @@ execution ActionCheckJointPosition::execute(const TestRepetitions& testrepetitio if(!YarpActionDepotStart::polyDriverDepot_[wrapperPrefix_]->view(iencoders)) { addProblem(testrepetition,Severity::error,"Unable to open encoder control mode interface 2",true); - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } int nj{0}; if(!iencoders->getAxes(&nj)) { addProblem(testrepetition,Severity::error,"Unable to open encoder control mode interface 3",true); - return execution::stopexecution;; + return BlockTestCore::execution::stopexecution;; } std::map jointNames; @@ -64,7 +64,7 @@ execution ActionCheckJointPosition::execute(const TestRepetitions& testrepetitio { TXLOG(Severity::error)<<"Joint not found:"<get(0).asFloat64()<<" y:"<get(1).asFloat64()<<" z:"<get(2).asFloat64()<std::abs(coordList->get(0).asFloat64())) { TXLOG(Severity::error)<<"FBE x not enough:"<get(0).asFloat64()<<" desidered at least:"<std::abs(coordList->get(1).asFloat64())) { TXLOG(Severity::error)<<"FBE y not enough:"<get(1).asFloat64()<<" desidered at least:"<std::abs(coordList->get(2).asFloat64())) { TXLOG(Severity::error)<<"FBE z not enough:"<get(2).asFloat64()<<" desidered at least:"<size()<12) { TXLOG(Severity::critical)<<"IMU readings should have at least 12 elements current:"<size()<second->close(); YarpActionDepotStart::polyDriverDepot_.erase(it); TXLOG(Severity::info)<<"Close PolyDrive tag:"<second; @@ -64,5 +64,5 @@ execution ActionPortClose::execute(const TestRepetitions& testrepetition) addProblem(testrepetition, Severity::error, logStream.str(),true); } - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } diff --git a/src/actionPortConnect.cpp b/src/actionPortConnect.cpp index 8418685..2915b07 100644 --- a/src/actionPortConnect.cpp +++ b/src/actionPortConnect.cpp @@ -39,7 +39,7 @@ execution ActionPortConnect::execute(const TestRepetitions& testrepetition) stringstream logStream; logStream << "Port not exists " << src_; addProblem(testrepetition, Severity::error, logStream.str(),true); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } ok=Network::exists(dst_); if(!ok) @@ -47,7 +47,7 @@ execution ActionPortConnect::execute(const TestRepetitions& testrepetition) stringstream logStream; logStream << "Port not exists " << dst_; addProblem(testrepetition, Severity::error, logStream.str(),true); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } ok=Network::isValidPortName(src_); @@ -57,7 +57,7 @@ execution ActionPortConnect::execute(const TestRepetitions& testrepetition) stringstream logStream; logStream << "Port not valid " << src_ << " -> " << dst_ << " with "< " << dst_ << " with "< " << dst_ ; addProblem(testrepetition, Severity::critical, logStream.str(),true); } - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } diff --git a/src/actionPortOpen.cpp b/src/actionPortOpen.cpp index bbf5cb3..0297c87 100644 --- a/src/actionPortOpen.cpp +++ b/src/actionPortOpen.cpp @@ -43,5 +43,5 @@ execution ActionPortOpen::execute(const TestRepetitions& testrepetition) addProblem(testrepetition, Severity::error, logStream.str(),true); } - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } diff --git a/src/actionPortRead.cpp b/src/actionPortRead.cpp index e21c8be..900f1ac 100644 --- a/src/actionPortRead.cpp +++ b/src/actionPortRead.cpp @@ -38,7 +38,7 @@ execution ActionPortRead::execute(const TestRepetitions& testrepetition) stringstream logStream; logStream << "Unable to find " << portname_; addProblem(testrepetition, Severity::error, logStream.str(),true); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } auto port=it; @@ -49,7 +49,7 @@ execution ActionPortRead::execute(const TestRepetitions& testrepetition) stringstream logStream; logStream << "Unable to read " << portname_; addProblem(testrepetition, Severity::error, logStream.str(),true); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } if(input.toString()!=value_) @@ -57,8 +57,8 @@ execution ActionPortRead::execute(const TestRepetitions& testrepetition) stringstream logStream; logStream << "Read unexpected value " << portname_; addProblem(testrepetition, Severity::error, logStream.str(),true); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } diff --git a/src/actionPortWrite.cpp b/src/actionPortWrite.cpp index 8306e6d..7fa0f35 100644 --- a/src/actionPortWrite.cpp +++ b/src/actionPortWrite.cpp @@ -38,7 +38,7 @@ execution ActionPortWrite::execute(const TestRepetitions& testrepetition) stringstream logStream; logStream << "Unable to find " << portname_; addProblem(testrepetition, Severity::error, logStream.str(),true); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } auto port=it; @@ -49,8 +49,8 @@ execution ActionPortWrite::execute(const TestRepetitions& testrepetition) stringstream logStream; logStream << "Unable to write " << portname_; addProblem(testrepetition, Severity::error, logStream.str(),true); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } diff --git a/src/actionReset.cpp b/src/actionReset.cpp index 1134757..70f4af0 100644 --- a/src/actionReset.cpp +++ b/src/actionReset.cpp @@ -56,7 +56,7 @@ execution ActionReset::execute(const TestRepetitions& testrepetition) yarp::os::SystemClock systemClock; systemClock.delay(1.0); clockClientPort.close(); - return execution::continueexecution;; + return BlockTestCore::execution::continueexecution;; } } \ No newline at end of file diff --git a/src/actionResetPose.cpp b/src/actionResetPose.cpp index 556acbd..127be51 100644 --- a/src/actionResetPose.cpp +++ b/src/actionResetPose.cpp @@ -56,7 +56,7 @@ execution ActionResetPose::execute(const TestRepetitions& testrepetition) yarp::os::SystemClock systemClock; systemClock.delay(1.0); clockClientPort.close(); - return execution::continueexecution;; + return BlockTestCore::execution::continueexecution;; } } \ No newline at end of file diff --git a/src/actionSendDirectPosition.cpp b/src/actionSendDirectPosition.cpp index 31450af..be3238f 100644 --- a/src/actionSendDirectPosition.cpp +++ b/src/actionSendDirectPosition.cpp @@ -58,7 +58,7 @@ execution ActionSendDirectPosition::execute(const TestRepetitions& testrepetitio if(degree_.empty()) { addProblem(testrepetition,Severity::error,"Missing degree information",true); - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } @@ -69,7 +69,7 @@ execution ActionSendDirectPosition::execute(const TestRepetitions& testrepetitio if(degree_.size()!=jointToMove_.size()) { addProblem(testrepetition,Severity::error,"Joint info not cooerent",true); - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } yarp::dev::IPositionDirect *ipos=nullptr; @@ -78,19 +78,19 @@ execution ActionSendDirectPosition::execute(const TestRepetitions& testrepetitio if(YarpActionDepotStart::polyDriverDepot_.find(wrapperPrefix_)==YarpActionDepotStart::polyDriverDepot_.end()) { addProblem(testrepetition,Severity::error,"Unable to find Polydrive:"+wrapperPrefix_,true); - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } if(!YarpActionDepotStart::polyDriverDepot_[wrapperPrefix_]->view(ipos)) { addProblem(testrepetition,Severity::error,"Unable to open pos mode interface",true); - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } if(!YarpActionDepotStart::polyDriverDepot_[wrapperPrefix_]->view(icmd)) { addProblem(testrepetition,Severity::error,"Unable to open control mode interface",true); - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } std::map jointNames; @@ -105,7 +105,7 @@ execution ActionSendDirectPosition::execute(const TestRepetitions& testrepetitio { TXLOG(Severity::error)<<"Error joint not found:"<second); @@ -114,7 +114,7 @@ execution ActionSendDirectPosition::execute(const TestRepetitions& testrepetitio if (std::isnan(currentDegree)) { TXLOG(Severity::error)<<"Empty number from table"<setPositions(jointToMove_.size(),desiredJoint.data(),desiredJointPosInDegrees.data()); //TXLOG(Severity::debug)<<"---------:"<view(ipos); if(!ok) { addProblem(testrepetition,Severity::error,"Unable to open pos mode interface",true); - return execution::stopexecution;; + return BlockTestCore::execution::stopexecution;; } ok=YarpActionDepotStart::polyDriverDepot_[wrapperPrefix_]->view(icmd); if(!ok) { addProblem(testrepetition,Severity::error,"Unable to open control mode interface",true); - return execution::stopexecution;; + return BlockTestCore::execution::stopexecution;; } std::map jointNames; @@ -101,7 +101,7 @@ execution ActionSendPosition::execute(const TestRepetitions& testrepetition) { TXLOG(Severity::error)<<"Error joint not found:"<second); desiredJointPosInDegrees.push_back(degree_[index]); @@ -110,7 +110,7 @@ execution ActionSendPosition::execute(const TestRepetitions& testrepetition) } ipos->positionMove(jointToMove_.size(),desiredJoint.data(),desiredJointPosInDegrees.data()); - return execution::continueexecution;; + return BlockTestCore::execution::continueexecution;; } } diff --git a/src/actionSendPwm.cpp b/src/actionSendPwm.cpp index c339dfa..7e39644 100644 --- a/src/actionSendPwm.cpp +++ b/src/actionSendPwm.cpp @@ -50,7 +50,7 @@ execution ActionSendPwm::execute(const TestRepetitions& testrepetition) if(YarpActionDepotStart::polyDriverDepot_.find(wrapperPrefix_)==YarpActionDepotStart::polyDriverDepot_.end()) { addProblem(testrepetition,Severity::error,"Unable to find Polydrive:"+wrapperPrefix_,true); - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } yarp::dev::IPWMControl *ipwm=nullptr; @@ -73,7 +73,7 @@ execution ActionSendPwm::execute(const TestRepetitions& testrepetition) { TXLOG(Severity::error)<<"Error joint not found:"<setControlMode(it->second, VOCAB_CM_PWM); @@ -134,7 +134,7 @@ execution ActionSendPwm::execute(const TestRepetitions& testrepetition) ipwm->setRefDutyCycle(it->second, 0); yarp::os::Time::delay(time_); - return execution::continueexecution; + return BlockTestCore::execution::continueexecution; } int ActionSendPwm::sign(double value) diff --git a/src/actionSendPwmTrain.cpp b/src/actionSendPwmTrain.cpp index 295b376..bbc9c50 100644 --- a/src/actionSendPwmTrain.cpp +++ b/src/actionSendPwmTrain.cpp @@ -57,7 +57,7 @@ execution ActionSendPwmTrain::execute(const TestRepetitions& testrepetition) if(YarpActionDepotStart::polyDriverDepot_.find(wrapperPrefix_)==YarpActionDepotStart::polyDriverDepot_.end()) { addProblem(testrepetition,Severity::error,"Unable to find Polydrive:"+wrapperPrefix_,true); - return execution::stopexecution; + return BlockTestCore::execution::stopexecution; } if(!YarpActionDepotStart::polyDriverDepot_[wrapperPrefix_]->view(ipwm)) @@ -73,13 +73,13 @@ execution ActionSendPwmTrain::execute(const TestRepetitions& testrepetition) if(!YarpActionDepotStart::polyDriverDepot_[wrapperPrefix_]->view(iencs)) { addProblem(testrepetition,Severity::error,"Unable to view IEncoder interface",true); - return execution::stopexecution;; + return BlockTestCore::execution::stopexecution;; } if(!iencs->getAxes(&nj)) { addProblem(testrepetition,Severity::error,"getAxes failed",true); - return execution::stopexecution;; + return BlockTestCore::execution::stopexecution;; } std::map jointNames; @@ -89,7 +89,7 @@ execution ActionSendPwmTrain::execute(const TestRepetitions& testrepetition) { TXLOG(Severity::error)<<"Error joint not found:"<setRefDutyCycle(it->second, 0); - return execution::continueexecution;; + return BlockTestCore::execution::continueexecution;; } diff --git a/src/actionYarpNow.cpp b/src/actionYarpNow.cpp index 44bd013..b0b8c32 100644 --- a/src/actionYarpNow.cpp +++ b/src/actionYarpNow.cpp @@ -27,7 +27,7 @@ void ActionYarpNow::beforeExecute() execution ActionYarpNow::execute(const TestRepetitions&) { - return execution::continueexecution;; + return BlockTestCore::execution::continueexecution;; } double ActionYarpNow::getDouble() diff --git a/src/actionYarpWait.cpp b/src/actionYarpWait.cpp index 4d33106..1d6363c 100644 --- a/src/actionYarpWait.cpp +++ b/src/actionYarpWait.cpp @@ -32,7 +32,7 @@ execution ActionYarpWait::execute(const TestRepetitions&) //yarp::os::yarpClockType clockType=yarp::os::Time::getClockType(); //TXLOG(Severity::debug)<<"Using clock type config:"<