YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::ImplementAxisInfo Class Reference

#include <yarp/dev/ImplementAxisInfo.h>

+ Inheritance diagram for yarp::dev::ImplementAxisInfo:

Public Member Functions

 ImplementAxisInfo (yarp::dev::IAxisInfoRaw *y)
 
virtual ~ImplementAxisInfo ()
 
yarp::dev::ReturnValue getAxes (size_t &ax) override
 Get the number of controlled axes.
 
yarp::dev::ReturnValue getAxisName (int axis, std::string &name) override
 
yarp::dev::ReturnValue getJointType (int axis, yarp::dev::JointTypeEnum &type) override
 
- Public Member Functions inherited from yarp::dev::IAxisInfo
virtual ~IAxisInfo ()
 Destructor.
 

Protected Member Functions

bool initialize (int size, const int *amap)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 

Protected Attributes

IAxisInfoRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::vector< double > m_buffer_doubles2
 
std::mutex m_imp_mutex
 

Detailed Description

Definition at line 15 of file ImplementAxisInfo.h.

Constructor & Destructor Documentation

◆ ImplementAxisInfo()

ImplementAxisInfo::ImplementAxisInfo ( yarp::dev::IAxisInfoRaw *  y)

Definition at line 19 of file ImplementAxisInfo.cpp.

◆ ~ImplementAxisInfo()

ImplementAxisInfo::~ImplementAxisInfo ( )
virtual

Definition at line 25 of file ImplementAxisInfo.cpp.

Member Function Documentation

◆ getAxes()

ReturnValue ImplementAxisInfo::getAxes ( size_t &  ax)
overridevirtual

Get the number of controlled axes.

This command asks the number of controlled axes for the current physical interface.

Parameters
axstorage to return param
Returns
true/false.

Implements yarp::dev::IAxisInfo.

Definition at line 62 of file ImplementAxisInfo.cpp.

◆ getAxisName()

ReturnValue ImplementAxisInfo::getAxisName ( int  axis,
std::string &  name 
)
overridevirtual

Implements yarp::dev::IAxisInfo.

Definition at line 71 of file ImplementAxisInfo.cpp.

◆ getJointType()

ReturnValue ImplementAxisInfo::getJointType ( int  axis,
yarp::dev::JointTypeEnum &  type 
)
overridevirtual

Reimplemented from yarp::dev::IAxisInfo.

Definition at line 82 of file ImplementAxisInfo.cpp.

◆ initialize()

bool ImplementAxisInfo::initialize ( int  size,
const int *  amap 
)
protected

Initialize the internal data and alloc memory.

Parameters
sizeis the number of controlled axes the driver deals with.
amapis a lookup table mapping axes onto physical drivers.
Returns
true if initialized succeeded, false if it wasn't executed, or assert.

Definition at line 30 of file ImplementAxisInfo.cpp.

◆ uninitialize()

bool ImplementAxisInfo::uninitialize ( )
protected

Clean up internal data and memory.

Returns
true if uninitialization is executed, false otherwise.

Definition at line 49 of file ImplementAxisInfo.cpp.

Member Data Documentation

◆ m_buffer_doubles

std::vector<double> yarp::dev::ImplementAxisInfo::m_buffer_doubles
protected

Definition at line 21 of file ImplementAxisInfo.h.

◆ m_buffer_doubles2

std::vector<double> yarp::dev::ImplementAxisInfo::m_buffer_doubles2
protected

Definition at line 22 of file ImplementAxisInfo.h.

◆ m_buffer_ints

std::vector<int> yarp::dev::ImplementAxisInfo::m_buffer_ints
protected

Definition at line 20 of file ImplementAxisInfo.h.

◆ m_helper

void* yarp::dev::ImplementAxisInfo::m_helper =nullptr
protected

Definition at line 19 of file ImplementAxisInfo.h.

◆ m_imp_mutex

std::mutex yarp::dev::ImplementAxisInfo::m_imp_mutex
protected

Definition at line 23 of file ImplementAxisInfo.h.

◆ m_iraw

IAxisInfoRaw* yarp::dev::ImplementAxisInfo::m_iraw =nullptr
protected

Definition at line 18 of file ImplementAxisInfo.h.


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