iCub-main
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
EmbObjSkin Class Reference

#include <embObjSkin.h>

+ Inheritance diagram for EmbObjSkin:

Public Types

enum  { EMBSK_SIZE_INFO = 128 }
 
enum  { SPECIAL_TRIANGLE_CFG_MAX_NUM = 20 }
 

Public Member Functions

 EmbObjSkin ()
 
 ~EmbObjSkin ()
 
virtual bool open (yarp::os::Searchable &config)
 
virtual bool close ()
 
void cleanup (void)
 
virtual int read (yarp::sig::Vector &out)
 
virtual int getState (int ch)
 
virtual int getChannels ()
 
virtual int calibrateSensor ()
 
virtual int calibrateChannel (int ch, double v)
 
virtual int calibrateSensor (const yarp::sig::Vector &v)
 
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)
 
virtual bool getEncoderTypeName (uint32_t jomoId, eOmc_position_t pos, std::string &encoderTypeName)
 

Public Attributes

bool opened
 

Protected Member Functions

bool init ()
 
bool fromConfig (yarp::os::Searchable &config)
 
bool initWithSpecialConfig (yarp::os::Searchable &config)
 
bool start ()
 
bool configPeriodicMessage (void)
 
eOprotIndex_t convertIdPatch2IndexNv (int idPatch)
 

Protected Attributes

string boardIPstring
 
string boardName
 
eOipv4addr_t ipv4addr
 
eth::TheEthManagerethManager
 
eth::AbstractEthResourceres
 
std::mutex mtx
 
size_t sensorsNum
 
Vector skindata
 
SkinBoardCfgParam _brdCfg
 
SkinTriangleCfgParam _triangCfg
 
bool _newCfg
 
SkinConfigReader _cfgReader
 
SkinConfig _skCfg
 

Detailed Description

Definition at line 70 of file embObjSkin.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
EMBSK_SIZE_INFO 

Definition at line 77 of file embObjSkin.h.

◆ anonymous enum

anonymous enum
Enumerator
SPECIAL_TRIANGLE_CFG_MAX_NUM 

Definition at line 78 of file embObjSkin.h.

Constructor & Destructor Documentation

◆ EmbObjSkin()

EmbObjSkin::EmbObjSkin ( )

Definition at line 56 of file embObjSkin.cpp.

◆ ~EmbObjSkin()

EmbObjSkin::~EmbObjSkin ( )

Definition at line 82 of file embObjSkin.cpp.

Member Function Documentation

◆ calibrateChannel() [1/2]

int EmbObjSkin::calibrateChannel ( int  ch)
virtual

Definition at line 612 of file embObjSkin.cpp.

◆ calibrateChannel() [2/2]

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

Definition at line 601 of file embObjSkin.cpp.

◆ calibrateSensor() [1/2]

int EmbObjSkin::calibrateSensor ( )
virtual

Definition at line 596 of file embObjSkin.cpp.

◆ calibrateSensor() [2/2]

int EmbObjSkin::calibrateSensor ( const yarp::sig::Vector &  v)
virtual

Definition at line 607 of file embObjSkin.cpp.

◆ cleanup()

void EmbObjSkin::cleanup ( void  )

Definition at line 561 of file embObjSkin.cpp.

◆ close()

bool EmbObjSkin::close ( )
virtual

Definition at line 571 of file embObjSkin.cpp.

◆ configPeriodicMessage()

bool EmbObjSkin::configPeriodicMessage ( void  )
protected

Definition at line 646 of file embObjSkin.cpp.

◆ convertIdPatch2IndexNv()

eOprotIndex_t EmbObjSkin::convertIdPatch2IndexNv ( int  idPatch)
inlineprotected

Definition at line 108 of file embObjSkin.h.

◆ fromConfig()

bool EmbObjSkin::fromConfig ( yarp::os::Searchable &  config)
protected

Definition at line 272 of file embObjSkin.cpp.

◆ getChannels()

int EmbObjSkin::getChannels ( )
virtual

Definition at line 591 of file embObjSkin.cpp.

◆ getState()

int EmbObjSkin::getState ( int  ch)
virtual

Definition at line 586 of file embObjSkin.cpp.

◆ init()

bool EmbObjSkin::init ( )
protected

Definition at line 687 of file embObjSkin.cpp.

◆ initialised()

bool EmbObjSkin::initialised ( )
virtual

Implements eth::IethResource.

Definition at line 770 of file embObjSkin.cpp.

◆ initWithSpecialConfig()

bool EmbObjSkin::initWithSpecialConfig ( yarp::os::Searchable &  config)
protected

Definition at line 92 of file embObjSkin.cpp.

◆ open()

bool EmbObjSkin::open ( yarp::os::Searchable &  config)
virtual

Definition at line 446 of file embObjSkin.cpp.

◆ read()

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

Definition at line 579 of file embObjSkin.cpp.

◆ start()

bool EmbObjSkin::start ( )
protected

Definition at line 617 of file embObjSkin.cpp.

◆ type()

eth::iethresType_t EmbObjSkin::type ( )
virtual

Implements eth::IethResource.

Definition at line 775 of file embObjSkin.cpp.

◆ update()

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

Implements eth::IethResource.

Definition at line 786 of file embObjSkin.cpp.

Member Data Documentation

◆ _brdCfg

SkinBoardCfgParam EmbObjSkin::_brdCfg
protected

Definition at line 97 of file embObjSkin.h.

◆ _cfgReader

SkinConfigReader EmbObjSkin::_cfgReader
protected

Definition at line 100 of file embObjSkin.h.

◆ _newCfg

bool EmbObjSkin::_newCfg
protected

Definition at line 99 of file embObjSkin.h.

◆ _skCfg

SkinConfig EmbObjSkin::_skCfg
protected

Definition at line 101 of file embObjSkin.h.

◆ _triangCfg

SkinTriangleCfgParam EmbObjSkin::_triangCfg
protected

Definition at line 98 of file embObjSkin.h.

◆ boardIPstring

string EmbObjSkin::boardIPstring
protected

Definition at line 84 of file embObjSkin.h.

◆ boardName

string EmbObjSkin::boardName
protected

Definition at line 85 of file embObjSkin.h.

◆ ethManager

eth::TheEthManager* EmbObjSkin::ethManager
protected

Definition at line 88 of file embObjSkin.h.

◆ ipv4addr

eOipv4addr_t EmbObjSkin::ipv4addr
protected

Definition at line 86 of file embObjSkin.h.

◆ mtx

std::mutex EmbObjSkin::mtx
protected

Definition at line 91 of file embObjSkin.h.

◆ opened

bool EmbObjSkin::opened

Definition at line 80 of file embObjSkin.h.

◆ res

eth::AbstractEthResource* EmbObjSkin::res
protected

Definition at line 89 of file embObjSkin.h.

◆ sensorsNum

size_t EmbObjSkin::sensorsNum
protected

Definition at line 94 of file embObjSkin.h.

◆ skindata

Vector EmbObjSkin::skindata
protected

Definition at line 95 of file embObjSkin.h.


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