YARP
Yet Another Robot Platform
AnalogSubDevice Class Reference

#include <VirtualAnalogWrapper/VirtualAnalogWrapper.h>

Public Member Functions

 AnalogSubDevice ()
 
 ~AnalogSubDevice ()
 
bool attach (yarp::dev::PolyDriver *driver, const std::string &key)
 
void detach ()
 
bool configure (int map0, int map1, const std::string &key)
 
bool isAttached ()
 
void setTorque (int joint, double torque)
 
void resetTorque ()
 
void flushTorques ()
 
const std::string & getKey ()
 

Protected Attributes

std::string mKey
 
int mMap0
 
int mMap1
 
yarp::sig::Vector mTorques
 
bool mIsConfigured
 
bool mIsAttached
 
double lastRecvMsg {0.0}
 
yarp::dev::PolyDrivermpDevice
 
yarp::dev::IVirtualAnalogSensormpSensor
 

Detailed Description

Definition at line 113 of file VirtualAnalogWrapper.h.

Constructor & Destructor Documentation

◆ AnalogSubDevice()

AnalogSubDevice::AnalogSubDevice ( )

Definition at line 25 of file VirtualAnalogWrapper.cpp.

◆ ~AnalogSubDevice()

AnalogSubDevice::~AnalogSubDevice ( )

Definition at line 30 of file VirtualAnalogWrapper.cpp.

Member Function Documentation

◆ attach()

bool AnalogSubDevice::attach ( yarp::dev::PolyDriver driver,
const std::string &  key 
)

Definition at line 57 of file VirtualAnalogWrapper.cpp.

◆ configure()

bool AnalogSubDevice::configure ( int  map0,
int  map1,
const std::string &  key 
)

Definition at line 35 of file VirtualAnalogWrapper.cpp.

◆ detach()

void AnalogSubDevice::detach ( )

Definition at line 99 of file VirtualAnalogWrapper.cpp.

◆ flushTorques()

void AnalogSubDevice::flushTorques ( )
inline

Definition at line 138 of file VirtualAnalogWrapper.h.

◆ getKey()

const std::string& AnalogSubDevice::getKey ( )
inline

Definition at line 143 of file VirtualAnalogWrapper.h.

◆ isAttached()

bool AnalogSubDevice::isAttached ( )
inline

Definition at line 124 of file VirtualAnalogWrapper.h.

◆ resetTorque()

void AnalogSubDevice::resetTorque ( )
inline

Definition at line 133 of file VirtualAnalogWrapper.h.

◆ setTorque()

void AnalogSubDevice::setTorque ( int  joint,
double  torque 
)
inline

Definition at line 126 of file VirtualAnalogWrapper.h.

Member Data Documentation

◆ lastRecvMsg

double AnalogSubDevice::lastRecvMsg {0.0}
protected

Definition at line 154 of file VirtualAnalogWrapper.h.

◆ mIsAttached

bool AnalogSubDevice::mIsAttached
protected

Definition at line 153 of file VirtualAnalogWrapper.h.

◆ mIsConfigured

bool AnalogSubDevice::mIsConfigured
protected

Definition at line 152 of file VirtualAnalogWrapper.h.

◆ mKey

std::string AnalogSubDevice::mKey
protected

Definition at line 146 of file VirtualAnalogWrapper.h.

◆ mMap0

int AnalogSubDevice::mMap0
protected

Definition at line 148 of file VirtualAnalogWrapper.h.

◆ mMap1

int AnalogSubDevice::mMap1
protected

Definition at line 148 of file VirtualAnalogWrapper.h.

◆ mpDevice

yarp::dev::PolyDriver* AnalogSubDevice::mpDevice
protected

Definition at line 155 of file VirtualAnalogWrapper.h.

◆ mpSensor

yarp::dev::IVirtualAnalogSensor* AnalogSubDevice::mpSensor
protected

Definition at line 156 of file VirtualAnalogWrapper.h.

◆ mTorques

yarp::sig::Vector AnalogSubDevice::mTorques
protected

Definition at line 150 of file VirtualAnalogWrapper.h.


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