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

embObjStrain : driver for communication with IIT's STRAIN board over EMS boards. More...

#include <embObjStrain.h>

+ Inheritance diagram for yarp::dev::embObjStrain:

Public Types

enum  {
  strain_Channels = 6 ,
  strain_FormatData = 16
}
 

Public Member Functions

 embObjStrain ()
 
 ~embObjStrain ()
 
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 ()
 

Detailed Description

embObjStrain : driver for communication with IIT's STRAIN board over EMS boards.

For the description of the parameters supported by this device, please check the template configuration file available in robotology/robots-configuration, i.e. https://github.com/robotology/robots-configuration/blob/master/iCubTemplates/iCubTemplateV4_0/hardware/FT/body_part-ebX-strain.xml .

YARP device name
embObjStrain

Definition at line 52 of file embObjStrain.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
strain_Channels 
strain_FormatData 

Definition at line 59 of file embObjStrain.h.

Constructor & Destructor Documentation

◆ embObjStrain()

embObjStrain::embObjStrain ( )

Definition at line 70 of file embObjStrain.cpp.

◆ ~embObjStrain()

embObjStrain::~embObjStrain ( )

Definition at line 108 of file embObjStrain.cpp.

Member Function Documentation

◆ calibrateChannel() [1/2]

int embObjStrain::calibrateChannel ( int  ch)
virtual

Definition at line 579 of file embObjStrain.cpp.

◆ calibrateChannel() [2/2]

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

Definition at line 585 of file embObjStrain.cpp.

◆ calibrateSensor() [1/2]

int embObjStrain::calibrateSensor ( )
virtual

Definition at line 562 of file embObjStrain.cpp.

◆ calibrateSensor() [2/2]

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

Definition at line 573 of file embObjStrain.cpp.

◆ close()

bool embObjStrain::close ( void  )

Definition at line 646 of file embObjStrain.cpp.

◆ getChannels()

int embObjStrain::getChannels ( )
virtual

Definition at line 556 of file embObjStrain.cpp.

◆ getState()

int embObjStrain::getState ( int  ch)
virtual

Definition at line 549 of file embObjStrain.cpp.

◆ initialised()

bool embObjStrain::initialised ( )
virtual

Implements eth::IethResource.

Definition at line 122 of file embObjStrain.cpp.

◆ open()

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

Definition at line 128 of file embObjStrain.cpp.

◆ read()

int embObjStrain::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 487 of file embObjStrain.cpp.

◆ type()

eth::iethresType_t embObjStrain::type ( )
virtual

Implements eth::IethResource.

Definition at line 590 of file embObjStrain.cpp.

◆ update()

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

Implements eth::IethResource.

Definition at line 595 of file embObjStrain.cpp.


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