18#include <yarp/os/Bottle.h> 
   19#include <yarp/os/BufferedPort.h> 
   20#include <yarp/dev/ControlBoardInterfaces.h> 
   21#include <yarp/dev/MultipleAnalogSensorsInterfaces.h> 
   22#include <yarp/sig/Vector.h> 
   28using namespace yarp::os;
 
   30using namespace yarp::sig;
 
   46    if ((
source==NULL) || !options.check(
"name") ||
 
   47        !options.check(
"size") || !options.check(
"index"))
 
   51    name=options.find(
"name").asString();
 
   52    size=options.find(
"size").asInt32();
 
   53    index=options.find(
"index").asInt32();
 
 
   66    static_cast<IEncoders*
>(
source)->getEncoders(vect.data());
 
   67    in=Value(vect[
index]);
 
 
   76    if ((
source==NULL) || !options.check(
"name") || !options.check(
"num_arrays") ||
 
   77        !options.check(
"index_array") || !options.check(
"index_element"))
 
   81    name=options.find(
"name").asString();
 
   82    num_arrays=options.find(
"num_arrays").asInt32();
 
 
   93    auto* iencarray=
static_cast<IEncoderArrays*
>(
source);
 
  103    if (iencarray->getEncoderArrayStatus(
index_array)!=MAS_OK)
 
  110    Vector vect(iencarray->getEncoderArraySize(
index_array));
 
  111    iencarray->getEncoderArrayMeasure(
index_array,vect,stamp);
 
 
  122    if ((
source==NULL) || !options.check(
"name") || !options.check(
"index"))
 
  126    name=options.find(
"name").asString();
 
  127    index=options.find(
"index").asInt32();
 
 
bool configure(void *source, const yarp::os::Property &options)
Configure the sensor.
 
bool getOutput(yarp::os::Value &in) const
Retrieve the sensor encoder value.
 
bool configure(void *source, const yarp::os::Property &options)
Configure the sensor.
 
bool getOutput(yarp::os::Value &in) const
Retrieve the sensor joint value.
 
bool getOutput(yarp::os::Value &in) const
Retrieve the sensor output.
 
bool configure(void *source, const yarp::os::Property &options)
Configure the sensor.