iCub-main
Public Member Functions | Protected Attributes | List of all members
CanBusSkin Class Reference

#include <CanBusSkin.h>

+ Inheritance diagram for CanBusSkin:

Public Member Functions

 CanBusSkin ()
 
 ~CanBusSkin ()
 
virtual bool open (yarp::os::Searchable &config)
 
virtual bool close ()
 
virtual bool threadInit ()
 
virtual void threadRelease ()
 
virtual void run ()
 
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)
 

Protected Attributes

yarp::dev::PolyDriver driver
 
yarp::dev::ICanBus * pCanBus
 
yarp::dev::ICanBufferFactory * pCanBufferFactory
 
yarp::dev::CanBuffer inBuffer
 
yarp::dev::CanBuffer outBuffer
 
std::mutex mtx
 
int netID
 The CAN net ID. More...
 
yarp::sig::VectorOf< int > cardId
 
int sensorsNum
 
yarp::sig::Vector data
 
yarp::sig::VectorOf< iCub::skin::diagnostics::DetectedErrorerrors
 The detected skin errors. More...
 

Detailed Description

Definition at line 26 of file CanBusSkin.h.

Constructor & Destructor Documentation

◆ CanBusSkin()

CanBusSkin::CanBusSkin ( )

Definition at line 34 of file CanBusSkin.cpp.

◆ ~CanBusSkin()

CanBusSkin::~CanBusSkin ( )
inline

Definition at line 88 of file CanBusSkin.h.

Member Function Documentation

◆ calibrateChannel() [1/2]

int CanBusSkin::calibrateChannel ( int  ch)
virtual

Definition at line 580 of file CanBusSkin.cpp.

◆ calibrateChannel() [2/2]

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

Definition at line 569 of file CanBusSkin.cpp.

◆ calibrateSensor() [1/2]

int CanBusSkin::calibrateSensor ( )
virtual

Definition at line 562 of file CanBusSkin.cpp.

◆ calibrateSensor() [2/2]

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

Definition at line 575 of file CanBusSkin.cpp.

◆ close()

bool CanBusSkin::close ( void  )
virtual

Definition at line 523 of file CanBusSkin.cpp.

◆ getChannels()

int CanBusSkin::getChannels ( )
virtual

Definition at line 557 of file CanBusSkin.cpp.

◆ getState()

int CanBusSkin::getState ( int  ch)
virtual

Definition at line 552 of file CanBusSkin.cpp.

◆ open()

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

Definition at line 40 of file CanBusSkin.cpp.

◆ read()

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

Definition at line 545 of file CanBusSkin.cpp.

◆ run()

void CanBusSkin::run ( void  )
virtual

Definition at line 594 of file CanBusSkin.cpp.

◆ threadInit()

bool CanBusSkin::threadInit ( )
virtual

Definition at line 585 of file CanBusSkin.cpp.

◆ threadRelease()

void CanBusSkin::threadRelease ( )
virtual

Definition at line 700 of file CanBusSkin.cpp.

Member Data Documentation

◆ cardId

yarp::sig::VectorOf<int> CanBusSkin::cardId
protected

Definition at line 78 of file CanBusSkin.h.

◆ data

yarp::sig::Vector CanBusSkin::data
protected

Definition at line 81 of file CanBusSkin.h.

◆ driver

yarp::dev::PolyDriver CanBusSkin::driver
protected

Definition at line 67 of file CanBusSkin.h.

◆ errors

yarp::sig::VectorOf<iCub::skin::diagnostics::DetectedError> CanBusSkin::errors
protected

The detected skin errors.

These are used for diagnostics purposes.

Definition at line 84 of file CanBusSkin.h.

◆ inBuffer

yarp::dev::CanBuffer CanBusSkin::inBuffer
protected

Definition at line 70 of file CanBusSkin.h.

◆ mtx

std::mutex CanBusSkin::mtx
protected

Definition at line 73 of file CanBusSkin.h.

◆ netID

int CanBusSkin::netID
protected

The CAN net ID.

Definition at line 76 of file CanBusSkin.h.

◆ outBuffer

yarp::dev::CanBuffer CanBusSkin::outBuffer
protected

Definition at line 71 of file CanBusSkin.h.

◆ pCanBufferFactory

yarp::dev::ICanBufferFactory* CanBusSkin::pCanBufferFactory
protected

Definition at line 69 of file CanBusSkin.h.

◆ pCanBus

yarp::dev::ICanBus* CanBusSkin::pCanBus
protected

Definition at line 68 of file CanBusSkin.h.

◆ sensorsNum

int CanBusSkin::sensorsNum
protected

Definition at line 79 of file CanBusSkin.h.


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