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 ()
 
bool getAxes (int *ax) override
 Get the number of controlled axes.
 
bool getAxisName (int axis, std::string &name) override
 
bool 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

IAxisInfoRawiinfo
 
void * helper
 
double * temp1
 
double * temp2
 

Detailed Description

Definition at line 15 of file ImplementAxisInfo.h.

Constructor & Destructor Documentation

◆ ImplementAxisInfo()

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

Definition at line 14 of file ImplementAxisInfo.cpp.

◆ ~ImplementAxisInfo()

ImplementAxisInfo::~ImplementAxisInfo ( )
virtual

Definition at line 20 of file ImplementAxisInfo.cpp.

Member Function Documentation

◆ getAxes()

bool ImplementAxisInfo::getAxes ( int *  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 54 of file ImplementAxisInfo.cpp.

◆ getAxisName()

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

Implements yarp::dev::IAxisInfo.

Definition at line 61 of file ImplementAxisInfo.cpp.

◆ getJointType()

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

Reimplemented from yarp::dev::IAxisInfo.

Definition at line 69 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 25 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 41 of file ImplementAxisInfo.cpp.

Member Data Documentation

◆ helper

void* yarp::dev::ImplementAxisInfo::helper
protected

Definition at line 19 of file ImplementAxisInfo.h.

◆ iinfo

IAxisInfoRaw* yarp::dev::ImplementAxisInfo::iinfo
protected

Definition at line 18 of file ImplementAxisInfo.h.

◆ temp1

double* yarp::dev::ImplementAxisInfo::temp1
protected

Definition at line 20 of file ImplementAxisInfo.h.

◆ temp2

double* yarp::dev::ImplementAxisInfo::temp2
protected

Definition at line 21 of file ImplementAxisInfo.h.


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