From 6c92c81ed9277b3b17302d4f02061f5e48cb412d Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 18 Sep 2024 09:35:43 +0200 Subject: [PATCH] Update MaisSensorDriver.cpp --- plugins/maissensor/src/MaisSensorDriver.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/maissensor/src/MaisSensorDriver.cpp b/plugins/maissensor/src/MaisSensorDriver.cpp index aac63e554..4791aaa20 100644 --- a/plugins/maissensor/src/MaisSensorDriver.cpp +++ b/plugins/maissensor/src/MaisSensorDriver.cpp @@ -333,12 +333,12 @@ int GazeboYarpMaisSensorDriver::calibrateChannel(int ch, double value) // start yarp::dev::IEncoderArrays methods -size_t embObjMais::getNrOfEncoderArrays() const +size_t GazeboYarpMaisSensorDriver::getNrOfEncoderArrays() const { return 1; } -yarp::dev::MAS_status embObjMais::getEncoderArrayStatus(size_t sens_index) const +yarp::dev::MAS_status GazeboYarpMaisSensorDriver::getEncoderArrayStatus(size_t sens_index) const { if (sens_index >= 1) { @@ -348,7 +348,7 @@ yarp::dev::MAS_status embObjMais::getEncoderArrayStatus(size_t sens_index) const return yarp::dev::MAS_OK; } -bool embObjMais::getEncoderArrayName(size_t sens_index, std::string &name) const +bool GazeboYarpMaisSensorDriver::getEncoderArrayName(size_t sens_index, std::string &name) const { if (sens_index >= 1) { @@ -360,7 +360,7 @@ bool embObjMais::getEncoderArrayName(size_t sens_index, std::string &name) const return false; } -bool embObjMais::getEncoderArrayMeasure(size_t sens_index, yarp::sig::Vector& out, double& timestamp) const +bool GazeboYarpMaisSensorDriver::getEncoderArrayMeasure(size_t sens_index, yarp::sig::Vector& out, double& timestamp) const { if (sens_index >= 1) { @@ -374,7 +374,7 @@ bool embObjMais::getEncoderArrayMeasure(size_t sens_index, yarp::sig::Vector& ou return true; } -size_t embObjMais::getEncoderArraySize(size_t sens_index) const +size_t GazeboYarpMaisSensorDriver::getEncoderArraySize(size_t sens_index) const { if (sens_index >= 1) {