Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully qualify BlockTestCore::execution to avoid confusion with std::execution (part 2) #17

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/actionApplyForce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/actionApplyForce.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/actionCanRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/actionCanRead.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/actionCanWrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/actionCanWrite.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/actionCheckComDistance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void ActionCheckComDistance::beforeExecute()
}


execution ActionCheckComDistance::execute(const TestRepetitions&)
BlockTestCore::execution ActionCheckComDistance::execute(const TestRepetitions&)
{
/* bool error{false};
if(test_->comDistance_<commindistance_)
Expand Down
2 changes: 1 addition & 1 deletion src/actionCheckComDistance.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ActionCheckComDistance : public ActionYarp
{
public:
ActionCheckComDistance(const CommandAttributes& commandAttributes,const std::string& testCode);
execution execute(const TestRepetitions& testrepetition) override;
BlockTestCore::execution execute(const TestRepetitions& testrepetition) override;
void beforeExecute() override;

private:
Expand Down
2 changes: 1 addition & 1 deletion src/actionCheckJointPosition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void ActionCheckJointPosition::beforeExecute()
getCommandAttribute("tolerance",tolerance_);
}

execution ActionCheckJointPosition::execute(const TestRepetitions& testrepetition)
BlockTestCore::execution ActionCheckJointPosition::execute(const TestRepetitions& testrepetition)
{
yarp::dev::IEncoders *iencoders=nullptr;

Expand Down
2 changes: 1 addition & 1 deletion src/actionCheckJointPosition.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ActionCheckJointPosition : public ActionYarp
{
public:
ActionCheckJointPosition(const CommandAttributes& commandAttributes,const std::string& testCode);
execution execute(const TestRepetitions& testrepetition) override;
BlockTestCore::execution execute(const TestRepetitions& testrepetition) override;
void beforeExecute() override;

private:
Expand Down
4 changes: 2 additions & 2 deletions src/actionCheckPosition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void ActionCheckPosition::beforeExecute()
}


execution ActionCheckPosition::execute(const TestRepetitions& testrepetition)
BlockTestCore::execution ActionCheckPosition::execute(const TestRepetitions& testrepetition)
{
yarp::os::Port fbePort;
std::string localfbePort = "/myrobot/odometry:i";
Expand Down Expand Up @@ -66,7 +66,7 @@ execution ActionCheckPosition::execute(const TestRepetitions& testrepetition)

TXLOG(Severity::debug)<<"FBE x:"<<coordList->get(0).asFloat64()<<" y:"<<coordList->get(1).asFloat64()<<" z:"<<coordList->get(2).asFloat64()<<std::endl;

execution error=BlockTestCore::execution::stopexecution;;
BlockTestCore::execution error=BlockTestCore::execution::stopexecution;;
if(xminposition_&& std::abs(xminposition_)>std::abs(coordList->get(0).asFloat64()))
{
TXLOG(Severity::error)<<"FBE x not enough:"<<coordList->get(0).asFloat64()<<" desidered at least:"<<xminposition_<<std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/actionCheckPosition.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ActionCheckPosition : public ActionYarp
{
public:
ActionCheckPosition(const CommandAttributes& commandAttributes,const std::string& testCode);
execution execute(const TestRepetitions& testrepetition) override;
BlockTestCore::execution execute(const TestRepetitions& testrepetition) override;
void beforeExecute() override;

private:
Expand Down
2 changes: 1 addition & 1 deletion src/actionCheckRobot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void ActionCheckRobot::beforeExecute()
getCommandAttribute("wrappername",wrapperPrefix_);
}

execution ActionCheckRobot::execute(const TestRepetitions& testrepetition)
BlockTestCore::execution ActionCheckRobot::execute(const TestRepetitions& testrepetition)
{
yarp::dev::IEncoders *iencs;
int nj;
Expand Down
2 changes: 1 addition & 1 deletion src/actionCheckRobot.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ActionCheckRobot : public ActionYarp
{
public:
ActionCheckRobot(const CommandAttributes& commandAttributes,const std::string& testCode);
execution execute(const TestRepetitions& testrepetition) override;
BlockTestCore::execution execute(const TestRepetitions& testrepetition) override;
void beforeExecute() override;

private:
Expand Down
4 changes: 2 additions & 2 deletions src/actionCheckVertical.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void ActionCheckVertical::beforeExecute()
{
}

execution ActionCheckVertical::execute(const TestRepetitions& testrepetition)
BlockTestCore::execution ActionCheckVertical::execute(const TestRepetitions& testrepetition)
{
yarp::os::BufferedPort<yarp::sig::Vector> imuPort;
std::string localImuPort = "/myrobot/imu:i";
Expand Down Expand Up @@ -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:"<<gravityOnX<< " is greater then on z:"<<gravityOnZ<<std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/actionCheckVertical.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ActionCheckVertical : public ActionYarp
{
public:
ActionCheckVertical(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(ActionCheckVertical)
Expand Down
2 changes: 1 addition & 1 deletion src/actionPolydriverClose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ActionPolydriverClose::ActionPolydriverClose(const CommandAttributes& parameters
tag_ = parameters.at(yarpsyntax::wrappername);
};

execution ActionPolydriverClose::execute(const TestRepetitions&)
BlockTestCore::execution ActionPolydriverClose::execute(const TestRepetitions&)
{

auto it=YarpActionDepotStart::polyDriverDepot_.find(tag_);
Expand Down
2 changes: 1 addition & 1 deletion src/actionPolydriverClose.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ActionPolydriverClose : public YarpActions::ActionYarp {
public:
ActionPolydriverClose(const CommandAttributes &parameters,
const std::string &testCode);
execution execute(const TestRepetitions &) override;
BlockTestCore::execution execute(const TestRepetitions &) override;
void beforeExecute() override{};

private:
Expand Down
2 changes: 1 addition & 1 deletion src/actionPolydriverOpener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ActionPolydriverOpener::ActionPolydriverOpener(const CommandAttributes& paramete
property_.fromString( parameters.at(yarpsyntax::property));
};

execution ActionPolydriverOpener::execute(const TestRepetitions&)
BlockTestCore::execution ActionPolydriverOpener::execute(const TestRepetitions&)
{
auto pdr = std::make_shared<PolyDriver>();
bool opened = pdr->open(property_);
Expand Down
2 changes: 1 addition & 1 deletion src/actionPolydriverOpener.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ActionPolydriverOpener : public YarpActions::ActionYarp {
public:
ActionPolydriverOpener(const CommandAttributes &parameters,
const std::string &testCode);
execution execute(const TestRepetitions &) override;
BlockTestCore::execution execute(const TestRepetitions &) override;
void beforeExecute() override{};

private:
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortClose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortClose.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortConnect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortConnect.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortDisconnect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortDisconnect.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortOpen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Port>();
bool opened_ = port->open(portname_);
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortOpen.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortRead.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortWrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down
2 changes: 1 addition & 1 deletion src/actionPortWrite.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/actionReset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/actionReset.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/actionResetPose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/actionResetPose.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/actionSendDirectPosition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/actionSendDirectPosition.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/actionSendPosition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/actionSendPosition.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/actionSendPwm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down
2 changes: 1 addition & 1 deletion src/actionSendPwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading