From 549e1b4c1ad82669007a27d27171618c7019884f Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 9 May 2024 13:32:05 +0200 Subject: [PATCH] Fully qualify BlockTestCore::execution to avoid confusion with std::execution (part 2) --- src/actionApplyForce.cpp | 2 +- src/actionApplyForce.h | 2 +- src/actionCanRead.cpp | 2 +- src/actionCanRead.h | 2 +- src/actionCanWrite.cpp | 2 +- src/actionCanWrite.h | 2 +- src/actionCheckComDistance.cpp | 2 +- src/actionCheckComDistance.h | 2 +- src/actionCheckJointPosition.cpp | 2 +- src/actionCheckJointPosition.h | 2 +- src/actionCheckPosition.cpp | 4 ++-- src/actionCheckPosition.h | 2 +- src/actionCheckRobot.cpp | 2 +- src/actionCheckRobot.h | 2 +- src/actionCheckVertical.cpp | 4 ++-- src/actionCheckVertical.h | 2 +- src/actionPolydriverClose.cpp | 2 +- src/actionPolydriverClose.h | 2 +- src/actionPolydriverOpener.cpp | 2 +- src/actionPolydriverOpener.h | 2 +- src/actionPortClose.cpp | 2 +- src/actionPortClose.h | 2 +- src/actionPortConnect.cpp | 2 +- src/actionPortConnect.h | 2 +- src/actionPortDisconnect.cpp | 2 +- src/actionPortDisconnect.h | 2 +- src/actionPortOpen.cpp | 2 +- src/actionPortOpen.h | 2 +- src/actionPortRead.cpp | 2 +- src/actionPortRead.h | 2 +- src/actionPortWrite.cpp | 2 +- src/actionPortWrite.h | 2 +- src/actionReset.cpp | 2 +- src/actionReset.h | 2 +- src/actionResetPose.cpp | 2 +- src/actionResetPose.h | 2 +- src/actionSendDirectPosition.cpp | 2 +- src/actionSendDirectPosition.h | 2 +- src/actionSendPosition.cpp | 2 +- src/actionSendPosition.h | 2 +- src/actionSendPwm.cpp | 2 +- src/actionSendPwm.h | 2 +- src/actionSendPwmTrain.cpp | 2 +- src/actionSendPwmTrain.h | 2 +- src/actionYarpNow.cpp | 2 +- src/actionYarpNow.h | 2 +- src/actionYarpWait.cpp | 2 +- src/actionYarpWait.h | 2 +- src/unusedactions/actionGenerateTrajectory.cpp | 2 +- src/unusedactions/actionGenerateTrajectory.h | 2 +- src/unusedactions/actionPrepareStraightWalking.cpp | 2 +- src/unusedactions/actionPrepareStraightWalking.h | 2 +- src/unusedactions/actionResetWalking.cpp | 2 +- src/unusedactions/actionResetWalking.h | 2 +- src/unusedactions/actionSetVelocity.cpp | 2 +- src/unusedactions/actionSetVelocity.h | 2 +- src/unusedactions/actionStartWalking.cpp | 2 +- src/unusedactions/actionStartWalking.h | 2 +- 58 files changed, 60 insertions(+), 60 deletions(-) diff --git a/src/actionApplyForce.cpp b/src/actionApplyForce.cpp index 7230ad7..acf7683 100644 --- a/src/actionApplyForce.cpp +++ b/src/actionApplyForce.cpp @@ -35,7 +35,7 @@ void ActionApplyForce::beforeExecute() getCommandAttribute("force",force_); } -execution ActionApplyForce::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionApplyForce::execute(const TestRepetitions& testrepetition) { std::string localExtWrenchPort = "/myPortForExternalWrench:o"; std::string remoteExtWrenchPort = "/icab/applyExternalWrench/rpc:i"; diff --git a/src/actionApplyForce.h b/src/actionApplyForce.h index 55fb471..95f83ec 100644 --- a/src/actionApplyForce.h +++ b/src/actionApplyForce.h @@ -25,7 +25,7 @@ class ActionApplyForce : public ActionYarp { public: ActionApplyForce(const CommandAttributes& commandAttributes,const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; private: diff --git a/src/actionCanRead.cpp b/src/actionCanRead.cpp index fcf0a7b..34f667a 100644 --- a/src/actionCanRead.cpp +++ b/src/actionCanRead.cpp @@ -38,7 +38,7 @@ void ActionCanRead::beforeExecute() } -execution ActionCanRead::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionCanRead::execute(const TestRepetitions& testrepetition) { unsigned int readMessages=0; int timer=0; diff --git a/src/actionCanRead.h b/src/actionCanRead.h index 79c2f5a..5325077 100644 --- a/src/actionCanRead.h +++ b/src/actionCanRead.h @@ -26,7 +26,7 @@ class ActionCanRead : public ActionYarp public: ActionCanRead(const CommandAttributes& commandAttributes, const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; protected: diff --git a/src/actionCanWrite.cpp b/src/actionCanWrite.cpp index e3526b6..8519019 100644 --- a/src/actionCanWrite.cpp +++ b/src/actionCanWrite.cpp @@ -37,7 +37,7 @@ void ActionCanWrite::beforeExecute() getCommandAttribute("data", data_); } -execution ActionCanWrite::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionCanWrite::execute(const TestRepetitions& testrepetition) { auto exists {true}; stringstream logStream; diff --git a/src/actionCanWrite.h b/src/actionCanWrite.h index 070a15b..b120413 100644 --- a/src/actionCanWrite.h +++ b/src/actionCanWrite.h @@ -27,7 +27,7 @@ class ActionCanWrite : public ActionYarp public: ActionCanWrite(const CommandAttributes& commandAttributes, const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; protected: diff --git a/src/actionCheckComDistance.cpp b/src/actionCheckComDistance.cpp index fa445bc..d29f9f8 100644 --- a/src/actionCheckComDistance.cpp +++ b/src/actionCheckComDistance.cpp @@ -36,7 +36,7 @@ void ActionCheckComDistance::beforeExecute() } -execution ActionCheckComDistance::execute(const TestRepetitions&) +BlockTestCore::execution ActionCheckComDistance::execute(const TestRepetitions&) { /* bool error{false}; if(test_->comDistance_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:"< imuPort; std::string localImuPort = "/myrobot/imu:i"; @@ -71,7 +71,7 @@ execution ActionCheckVertical::execute(const TestRepetitions& testrepetition) double gravityOnY = std::fabs((*imuReadings)[4]); double gravityOnZ = std::fabs((*imuReadings)[5]); - execution error{BlockTestCore::execution::stopexecution}; + BlockTestCore::execution error{BlockTestCore::execution::stopexecution}; if(!(gravityOnX < gravityOnZ)) { TXLOG(Severity::error)<<"Absolute gravity on x:"<(); bool opened = pdr->open(property_); diff --git a/src/actionPolydriverOpener.h b/src/actionPolydriverOpener.h index 68499eb..04677c4 100644 --- a/src/actionPolydriverOpener.h +++ b/src/actionPolydriverOpener.h @@ -22,7 +22,7 @@ class ActionPolydriverOpener : public YarpActions::ActionYarp { public: ActionPolydriverOpener(const CommandAttributes ¶meters, const std::string &testCode); - execution execute(const TestRepetitions &) override; + BlockTestCore::execution execute(const TestRepetitions &) override; void beforeExecute() override{}; private: diff --git a/src/actionPortClose.cpp b/src/actionPortClose.cpp index ad08fc0..4ea7c26 100644 --- a/src/actionPortClose.cpp +++ b/src/actionPortClose.cpp @@ -35,7 +35,7 @@ void ActionPortClose::beforeExecute() getCommandAttribute("portname", portname_); } -execution ActionPortClose::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionPortClose::execute(const TestRepetitions& testrepetition) { auto exists {true}; stringstream logStream; diff --git a/src/actionPortClose.h b/src/actionPortClose.h index 57f33c9..97a807a 100644 --- a/src/actionPortClose.h +++ b/src/actionPortClose.h @@ -26,7 +26,7 @@ class ActionPortClose: public ActionYarp { public: ActionPortClose(const CommandAttributes& commandAttributes, const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; protected: diff --git a/src/actionPortConnect.cpp b/src/actionPortConnect.cpp index 2915b07..b7f1866 100644 --- a/src/actionPortConnect.cpp +++ b/src/actionPortConnect.cpp @@ -30,7 +30,7 @@ void ActionPortConnect::beforeExecute() getCommandAttribute("carrier", crr_); } -execution ActionPortConnect::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionPortConnect::execute(const TestRepetitions& testrepetition) { bool ok{ true }; ok=Network::exists(src_); diff --git a/src/actionPortConnect.h b/src/actionPortConnect.h index a3fd1af..40b2beb 100644 --- a/src/actionPortConnect.h +++ b/src/actionPortConnect.h @@ -26,7 +26,7 @@ class ActionPortConnect : public ActionPortDisconnect { public: ActionPortConnect(const CommandAttributes& commandAttributes, const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; private: diff --git a/src/actionPortDisconnect.cpp b/src/actionPortDisconnect.cpp index 20ea94a..a58f987 100644 --- a/src/actionPortDisconnect.cpp +++ b/src/actionPortDisconnect.cpp @@ -30,7 +30,7 @@ void ActionPortDisconnect::beforeExecute() getCommandAttribute("destination", dst_); } -execution ActionPortDisconnect::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionPortDisconnect::execute(const TestRepetitions& testrepetition) { auto ok{ true }; ok &= Network::disconnect(src_, dst_); diff --git a/src/actionPortDisconnect.h b/src/actionPortDisconnect.h index 63084e8..71b5776 100644 --- a/src/actionPortDisconnect.h +++ b/src/actionPortDisconnect.h @@ -26,7 +26,7 @@ class ActionPortDisconnect: public ActionYarp { public: ActionPortDisconnect(const CommandAttributes& commandAttributes, const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; protected: diff --git a/src/actionPortOpen.cpp b/src/actionPortOpen.cpp index 0297c87..3184db5 100644 --- a/src/actionPortOpen.cpp +++ b/src/actionPortOpen.cpp @@ -29,7 +29,7 @@ void ActionPortOpen::beforeExecute() ActionPortClose::beforeExecute(); } -execution ActionPortOpen::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionPortOpen::execute(const TestRepetitions& testrepetition) { auto port = std::make_shared(); bool opened_ = port->open(portname_); diff --git a/src/actionPortOpen.h b/src/actionPortOpen.h index 8365c47..423def4 100644 --- a/src/actionPortOpen.h +++ b/src/actionPortOpen.h @@ -26,7 +26,7 @@ class ActionPortOpen : public ActionPortClose { public: ActionPortOpen(const CommandAttributes& commandAttributes, const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; ACTIONREGISTER_DEC_TYPE(ActionPortOpen) diff --git a/src/actionPortRead.cpp b/src/actionPortRead.cpp index 900f1ac..75b461c 100644 --- a/src/actionPortRead.cpp +++ b/src/actionPortRead.cpp @@ -29,7 +29,7 @@ void ActionPortRead::beforeExecute() getCommandAttribute("value", value_); } -execution ActionPortRead::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionPortRead::execute(const TestRepetitions& testrepetition) { auto it=YarpActionDepotStart::portDepot_.find(portname_); diff --git a/src/actionPortRead.h b/src/actionPortRead.h index 3ec7c73..5ccdc55 100644 --- a/src/actionPortRead.h +++ b/src/actionPortRead.h @@ -25,7 +25,7 @@ class ActionPortRead : public ActionYarp { public: ActionPortRead(const CommandAttributes& commandAttributes, const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; protected: diff --git a/src/actionPortWrite.cpp b/src/actionPortWrite.cpp index 7fa0f35..f22b833 100644 --- a/src/actionPortWrite.cpp +++ b/src/actionPortWrite.cpp @@ -29,7 +29,7 @@ void ActionPortWrite::beforeExecute() getCommandAttribute("value", value_); } -execution ActionPortWrite::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionPortWrite::execute(const TestRepetitions& testrepetition) { auto it=YarpActionDepotStart::portDepot_.find(portname_); diff --git a/src/actionPortWrite.h b/src/actionPortWrite.h index 57b4281..4799910 100644 --- a/src/actionPortWrite.h +++ b/src/actionPortWrite.h @@ -25,7 +25,7 @@ class ActionPortWrite : public ActionYarp { public: ActionPortWrite(const CommandAttributes& commandAttributes, const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; protected: diff --git a/src/actionReset.cpp b/src/actionReset.cpp index 70f4af0..071810b 100644 --- a/src/actionReset.cpp +++ b/src/actionReset.cpp @@ -33,7 +33,7 @@ void ActionReset::beforeExecute() { } -execution ActionReset::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionReset::execute(const TestRepetitions& testrepetition) { GazeboYarpPlugins::ClockServer clockServer; yarp::os::Port clockClientPort; diff --git a/src/actionReset.h b/src/actionReset.h index 0025c55..3d5803b 100644 --- a/src/actionReset.h +++ b/src/actionReset.h @@ -26,7 +26,7 @@ class ActionReset : public ActionYarp { public: ActionReset(const CommandAttributes& commandAttributes,const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; ACTIONREGISTER_DEC_TYPE(ActionReset) diff --git a/src/actionResetPose.cpp b/src/actionResetPose.cpp index 127be51..e0a9b13 100644 --- a/src/actionResetPose.cpp +++ b/src/actionResetPose.cpp @@ -33,7 +33,7 @@ void ActionResetPose::beforeExecute() { } -execution ActionResetPose::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionResetPose::execute(const TestRepetitions& testrepetition) { GazeboYarpPlugins::ClockServer clockServer; yarp::os::Port clockClientPort; diff --git a/src/actionResetPose.h b/src/actionResetPose.h index 79c5a29..995d5ec 100644 --- a/src/actionResetPose.h +++ b/src/actionResetPose.h @@ -26,7 +26,7 @@ class ActionResetPose : public ActionYarp { public: ActionResetPose(const CommandAttributes& commandAttributes,const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; ACTIONREGISTER_DEC_TYPE(ActionResetPose) diff --git a/src/actionSendDirectPosition.cpp b/src/actionSendDirectPosition.cpp index be3238f..f4bb6b6 100644 --- a/src/actionSendDirectPosition.cpp +++ b/src/actionSendDirectPosition.cpp @@ -49,7 +49,7 @@ void ActionSendDirectPosition::beforeExecute() getCommandAttribute(yarpsyntax::wrappername,wrapperPrefix_); } -execution ActionSendDirectPosition::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionSendDirectPosition::execute(const TestRepetitions& testrepetition) { //TO REMOVE diff --git a/src/actionSendDirectPosition.h b/src/actionSendDirectPosition.h index 623c263..ce8871b 100644 --- a/src/actionSendDirectPosition.h +++ b/src/actionSendDirectPosition.h @@ -21,7 +21,7 @@ class ActionSendDirectPosition : public ActionYarp { public: ActionSendDirectPosition(const CommandAttributes& commandAttributes,const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; private: diff --git a/src/actionSendPosition.cpp b/src/actionSendPosition.cpp index 7ac2b40..e4a56e4 100644 --- a/src/actionSendPosition.cpp +++ b/src/actionSendPosition.cpp @@ -44,7 +44,7 @@ void ActionSendPosition::beforeExecute() getCommandAttribute("wrappername",wrapperPrefix_); } -execution ActionSendPosition::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionSendPosition::execute(const TestRepetitions& testrepetition) { //TO REMOVE std::ofstream out; diff --git a/src/actionSendPosition.h b/src/actionSendPosition.h index 00d9faa..afef625 100644 --- a/src/actionSendPosition.h +++ b/src/actionSendPosition.h @@ -32,7 +32,7 @@ class ActionSendPosition : public ActionYarp { public: ActionSendPosition(const CommandAttributes& commandAttributes,const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; private: diff --git a/src/actionSendPwm.cpp b/src/actionSendPwm.cpp index 7e39644..7391db3 100644 --- a/src/actionSendPwm.cpp +++ b/src/actionSendPwm.cpp @@ -40,7 +40,7 @@ void ActionSendPwm::beforeExecute() getCommandAttribute("wrappername",wrapperPrefix_); } -execution ActionSendPwm::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionSendPwm::execute(const TestRepetitions& testrepetition) { if(!profile_.empty()) { diff --git a/src/actionSendPwm.h b/src/actionSendPwm.h index 647d8c8..232ab31 100644 --- a/src/actionSendPwm.h +++ b/src/actionSendPwm.h @@ -21,7 +21,7 @@ class ActionSendPwm : public ActionYarp { public: ActionSendPwm(const CommandAttributes& commandAttributes,const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; private: diff --git a/src/actionSendPwmTrain.cpp b/src/actionSendPwmTrain.cpp index bbc9c50..847cc51 100644 --- a/src/actionSendPwmTrain.cpp +++ b/src/actionSendPwmTrain.cpp @@ -46,7 +46,7 @@ void ActionSendPwmTrain::beforeExecute() getCommandAttribute("wrappername",wrapperPrefix_); } -execution ActionSendPwmTrain::execute(const TestRepetitions& testrepetition) +BlockTestCore::execution ActionSendPwmTrain::execute(const TestRepetitions& testrepetition) { yarp::dev::IPWMControl *ipwm=nullptr; diff --git a/src/actionSendPwmTrain.h b/src/actionSendPwmTrain.h index 38d5e1c..0e7e9ad 100644 --- a/src/actionSendPwmTrain.h +++ b/src/actionSendPwmTrain.h @@ -29,7 +29,7 @@ class ActionSendPwmTrain : public ActionYarp { public: ActionSendPwmTrain(const CommandAttributes& commandAttributes,const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; private: diff --git a/src/actionYarpNow.cpp b/src/actionYarpNow.cpp index b0b8c32..1ee746e 100644 --- a/src/actionYarpNow.cpp +++ b/src/actionYarpNow.cpp @@ -25,7 +25,7 @@ void ActionYarpNow::beforeExecute() { } -execution ActionYarpNow::execute(const TestRepetitions&) +BlockTestCore::execution ActionYarpNow::execute(const TestRepetitions&) { return BlockTestCore::execution::continueexecution;; } diff --git a/src/actionYarpNow.h b/src/actionYarpNow.h index f0a2e42..3d5da79 100644 --- a/src/actionYarpNow.h +++ b/src/actionYarpNow.h @@ -25,7 +25,7 @@ class ActionYarpNow : public ActionYarp { public: ActionYarpNow(const CommandAttributes& commandAttributes,const std::string& testCode); - execution execute(const TestRepetitions& testrepetition) override; + BlockTestCore::execution execute(const TestRepetitions& testrepetition) override; void beforeExecute() override; double getDouble() override; private: diff --git a/src/actionYarpWait.cpp b/src/actionYarpWait.cpp index 1d6363c..1cc767f 100644 --- a/src/actionYarpWait.cpp +++ b/src/actionYarpWait.cpp @@ -27,7 +27,7 @@ void ActionYarpWait::beforeExecute() getCommandAttribute("seconds", seconds_); } -execution ActionYarpWait::execute(const TestRepetitions&) +BlockTestCore::execution ActionYarpWait::execute(const TestRepetitions&) { //yarp::os::yarpClockType clockType=yarp::os::Time::getClockType(); //TXLOG(Severity::debug)<<"Using clock type config:"<