iCub-main
Public Types | Public Member Functions | List of all members
yarp::dev::embObjMultiEnc Class Reference

#include <embObjMultiEnc.h>

+ Inheritance diagram for yarp::dev::embObjMultiEnc:

Public Types

enum  {
  default_numofencperjoint = eOmc_joint_multienc_maxnum ,
  default_numofjoints = 2
}
 

Public Member Functions

 embObjMultiEnc ()
 
 ~embObjMultiEnc ()
 
bool open (yarp::os::Searchable &config)
 
bool close ()
 
virtual int read (yarp::sig::Vector &out)
 Read a vector from the sensor. More...
 
virtual int getState (int ch)
 
virtual int getChannels ()
 
virtual int calibrateChannel (int ch, double v)
 
virtual int calibrateSensor ()
 
virtual int calibrateSensor (const yarp::sig::Vector &value)
 
virtual int calibrateChannel (int ch)
 
virtual bool initialised ()
 
virtual eth::iethresType_t type ()
 
virtual bool update (eOprotID32_t id32, double timestamp, void *rxdata)
 
- Public Member Functions inherited from eth::IethResource
virtual ~IethResource ()
 
const char * stringOfType ()
 
virtual bool getEntityName (uint32_t entityId, std::string &entityName)
 

Detailed Description

Definition at line 41 of file embObjMultiEnc.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
default_numofencperjoint 
default_numofjoints 

Definition at line 48 of file embObjMultiEnc.h.

Constructor & Destructor Documentation

◆ embObjMultiEnc()

embObjMultiEnc::embObjMultiEnc ( )

Definition at line 138 of file embObjMultiEnc.cpp.

◆ ~embObjMultiEnc()

embObjMultiEnc::~embObjMultiEnc ( )

Definition at line 174 of file embObjMultiEnc.cpp.

Member Function Documentation

◆ calibrateChannel() [1/2]

int embObjMultiEnc::calibrateChannel ( int  ch)
virtual

Definition at line 508 of file embObjMultiEnc.cpp.

◆ calibrateChannel() [2/2]

int embObjMultiEnc::calibrateChannel ( int  ch,
double  v 
)
virtual

Definition at line 514 of file embObjMultiEnc.cpp.

◆ calibrateSensor() [1/2]

int embObjMultiEnc::calibrateSensor ( )
virtual

Definition at line 496 of file embObjMultiEnc.cpp.

◆ calibrateSensor() [2/2]

int embObjMultiEnc::calibrateSensor ( const yarp::sig::Vector &  value)
virtual

Definition at line 502 of file embObjMultiEnc.cpp.

◆ close()

bool embObjMultiEnc::close ( void  )

Definition at line 558 of file embObjMultiEnc.cpp.

◆ getChannels()

int embObjMultiEnc::getChannels ( )
virtual

Definition at line 490 of file embObjMultiEnc.cpp.

◆ getState()

int embObjMultiEnc::getState ( int  ch)
virtual

Definition at line 483 of file embObjMultiEnc.cpp.

◆ initialised()

bool embObjMultiEnc::initialised ( )
virtual

Implements eth::IethResource.

Definition at line 187 of file embObjMultiEnc.cpp.

◆ open()

bool embObjMultiEnc::open ( yarp::os::Searchable &  config)

Definition at line 195 of file embObjMultiEnc.cpp.

◆ read()

int embObjMultiEnc::read ( yarp::sig::Vector &  out)
virtual

Read a vector from the sensor.

Parameters
outa vector containing the sensor's last readings.
Returns
AS_OK or return code. AS_TIMEOUT if the sensor timed-out.

Definition at line 421 of file embObjMultiEnc.cpp.

◆ type()

eth::iethresType_t embObjMultiEnc::type ( )
virtual

Implements eth::IethResource.

Definition at line 520 of file embObjMultiEnc.cpp.

◆ update()

bool embObjMultiEnc::update ( eOprotID32_t  id32,
double  timestamp,
void *  rxdata 
)
virtual

Implements eth::IethResource.

Definition at line 526 of file embObjMultiEnc.cpp.


The documentation for this class was generated from the following files: