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

#include <CanBusVirtualAnalogSensor.h>

+ Inheritance diagram for CanBusVirtualAnalogSensor:

Public Member Functions

 CanBusVirtualAnalogSensor (int period=20)
 
 ~CanBusVirtualAnalogSensor ()
 
virtual bool open (yarp::os::Searchable &config)
 
virtual bool close ()
 
virtual yarp::dev::VAS_status getVirtualAnalogSensorStatus (int ch)
 
virtual int getVirtualAnalogSensorChannels ()
 
virtual bool updateVirtualAnalogSensorMeasure (int ch, double &measure)
 
virtual bool updateVirtualAnalogSensorMeasure (yarp::sig::Vector &data)
 
virtual bool threadInit ()
 
virtual void threadRelease ()
 
virtual void run ()
 

Protected Attributes

PolyDriver driver
 
ICanBus * pCanBus
 
ICanBufferFactory * pCanBufferFactory
 
CanBuffer inBuffer
 
CanBuffer outBuffer
 
std::mutex mtx
 
unsigned int channelsNum
 
unsigned short boardId
 
unsigned short canId
 
yarp::dev::VAS_status status
 
double timeStamp
 
AnalogDataFormat dataFormat
 
yarp::sig::Vector data
 
yarp::sig::Vector scaleFactor
 
bool useCalibration
 

Detailed Description

Definition at line 23 of file CanBusVirtualAnalogSensor.h.

Constructor & Destructor Documentation

◆ CanBusVirtualAnalogSensor()

CanBusVirtualAnalogSensor::CanBusVirtualAnalogSensor ( int  period = 20)
inline

Definition at line 62 of file CanBusVirtualAnalogSensor.h.

◆ ~CanBusVirtualAnalogSensor()

CanBusVirtualAnalogSensor::~CanBusVirtualAnalogSensor ( )
inline

Definition at line 66 of file CanBusVirtualAnalogSensor.h.

Member Function Documentation

◆ close()

bool CanBusVirtualAnalogSensor::close ( )
virtual

Definition at line 350 of file CanBusVirtualAnalogSensor.cpp.

◆ getVirtualAnalogSensorChannels()

int CanBusVirtualAnalogSensor::getVirtualAnalogSensorChannels ( )
virtual

Definition at line 374 of file CanBusVirtualAnalogSensor.cpp.

◆ getVirtualAnalogSensorStatus()

yarp::dev::VAS_status CanBusVirtualAnalogSensor::getVirtualAnalogSensorStatus ( int  ch)
virtual

Definition at line 369 of file CanBusVirtualAnalogSensor.cpp.

◆ open()

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

Definition at line 20 of file CanBusVirtualAnalogSensor.cpp.

◆ run()

void CanBusVirtualAnalogSensor::run ( )
virtual

Definition at line 469 of file CanBusVirtualAnalogSensor.cpp.

◆ threadInit()

bool CanBusVirtualAnalogSensor::threadInit ( )
virtual

Definition at line 379 of file CanBusVirtualAnalogSensor.cpp.

◆ threadRelease()

void CanBusVirtualAnalogSensor::threadRelease ( )
virtual

Definition at line 569 of file CanBusVirtualAnalogSensor.cpp.

◆ updateVirtualAnalogSensorMeasure() [1/2]

bool CanBusVirtualAnalogSensor::updateVirtualAnalogSensorMeasure ( int  ch,
double &  measure 
)
virtual

Definition at line 118 of file CanBusVirtualAnalogSensor.cpp.

◆ updateVirtualAnalogSensorMeasure() [2/2]

bool CanBusVirtualAnalogSensor::updateVirtualAnalogSensorMeasure ( yarp::sig::Vector &  data)
virtual

Definition at line 124 of file CanBusVirtualAnalogSensor.cpp.

Member Data Documentation

◆ boardId

unsigned short CanBusVirtualAnalogSensor::boardId
protected

Definition at line 51 of file CanBusVirtualAnalogSensor.h.

◆ canId

unsigned short CanBusVirtualAnalogSensor::canId
protected

Definition at line 52 of file CanBusVirtualAnalogSensor.h.

◆ channelsNum

unsigned int CanBusVirtualAnalogSensor::channelsNum
protected

Definition at line 50 of file CanBusVirtualAnalogSensor.h.

◆ data

yarp::sig::Vector CanBusVirtualAnalogSensor::data
protected

Definition at line 57 of file CanBusVirtualAnalogSensor.h.

◆ dataFormat

AnalogDataFormat CanBusVirtualAnalogSensor::dataFormat
protected

Definition at line 56 of file CanBusVirtualAnalogSensor.h.

◆ driver

PolyDriver CanBusVirtualAnalogSensor::driver
protected

Definition at line 42 of file CanBusVirtualAnalogSensor.h.

◆ inBuffer

CanBuffer CanBusVirtualAnalogSensor::inBuffer
protected

Definition at line 45 of file CanBusVirtualAnalogSensor.h.

◆ mtx

std::mutex CanBusVirtualAnalogSensor::mtx
protected

Definition at line 48 of file CanBusVirtualAnalogSensor.h.

◆ outBuffer

CanBuffer CanBusVirtualAnalogSensor::outBuffer
protected

Definition at line 46 of file CanBusVirtualAnalogSensor.h.

◆ pCanBufferFactory

ICanBufferFactory* CanBusVirtualAnalogSensor::pCanBufferFactory
protected

Definition at line 44 of file CanBusVirtualAnalogSensor.h.

◆ pCanBus

ICanBus* CanBusVirtualAnalogSensor::pCanBus
protected

Definition at line 43 of file CanBusVirtualAnalogSensor.h.

◆ scaleFactor

yarp::sig::Vector CanBusVirtualAnalogSensor::scaleFactor
protected

Definition at line 58 of file CanBusVirtualAnalogSensor.h.

◆ status

yarp::dev::VAS_status CanBusVirtualAnalogSensor::status
protected

Definition at line 54 of file CanBusVirtualAnalogSensor.h.

◆ timeStamp

double CanBusVirtualAnalogSensor::timeStamp
protected

Definition at line 55 of file CanBusVirtualAnalogSensor.h.

◆ useCalibration

bool CanBusVirtualAnalogSensor::useCalibration
protected

Definition at line 59 of file CanBusVirtualAnalogSensor.h.


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