YARP
Yet Another Robot Platform
ControlBoardWrapperCommon Class Reference

#include <ControlBoardWrapper/ControlBoardWrapperCommon.h>

+ Inheritance diagram for ControlBoardWrapperCommon:

Public Member Functions

bool getAxes (int *ax)
 
bool setRefAcceleration (int j, double acc)
 
bool setRefAccelerations (const double *accs)
 
bool setRefAccelerations (const int n_joints, const int *joints, const double *accs)
 
bool getRefAcceleration (int j, double *acc)
 
bool getRefAccelerations (double *accs)
 
bool getRefAccelerations (const int n_joints, const int *joints, double *accs)
 
bool stop (int j)
 
bool stop ()
 
bool stop (const int n_joint, const int *joints)
 
bool getNumberOfMotors (int *num)
 
bool getCurrent (int m, double *curr)
 
bool getCurrents (double *currs)
 
void printError (const std::string &func_name, const std::string &info, bool result)
 

Public Attributes

WrappedDevice device
 
size_t controlledJoints {0}
 
std::string partName
 
std::mutex rpcDataMutex
 
MultiJointData rpcData
 
std::mutex timeMutex
 
yarp::os::Stamp time
 

Detailed Description

Definition at line 18 of file ControlBoardWrapperCommon.h.

Member Function Documentation

◆ getAxes()

bool ControlBoardWrapperCommon::getAxes ( int *  ax)

Definition at line 14 of file ControlBoardWrapperCommon.cpp.

◆ getCurrent()

bool ControlBoardWrapperCommon::getCurrent ( int  m,
double *  curr 
)

Definition at line 327 of file ControlBoardWrapperCommon.cpp.

◆ getCurrents()

bool ControlBoardWrapperCommon::getCurrents ( double *  currs)

Definition at line 296 of file ControlBoardWrapperCommon.cpp.

◆ getNumberOfMotors()

bool ControlBoardWrapperCommon::getNumberOfMotors ( int *  num)

Definition at line 289 of file ControlBoardWrapperCommon.cpp.

◆ getRefAcceleration()

bool ControlBoardWrapperCommon::getRefAcceleration ( int  j,
double *  acc 
)

Definition at line 113 of file ControlBoardWrapperCommon.cpp.

◆ getRefAccelerations() [1/2]

bool ControlBoardWrapperCommon::getRefAccelerations ( const int  n_joints,
const int *  joints,
double *  accs 
)

Definition at line 165 of file ControlBoardWrapperCommon.cpp.

◆ getRefAccelerations() [2/2]

bool ControlBoardWrapperCommon::getRefAccelerations ( double *  accs)

Definition at line 138 of file ControlBoardWrapperCommon.cpp.

◆ printError()

void ControlBoardWrapperCommon::printError ( const std::string &  func_name,
const std::string &  info,
bool  result 
)
inline

Definition at line 72 of file ControlBoardWrapperCommon.h.

◆ setRefAcceleration()

bool ControlBoardWrapperCommon::setRefAcceleration ( int  j,
double  acc 
)

Definition at line 21 of file ControlBoardWrapperCommon.cpp.

◆ setRefAccelerations() [1/2]

bool ControlBoardWrapperCommon::setRefAccelerations ( const double *  accs)

Definition at line 45 of file ControlBoardWrapperCommon.cpp.

◆ setRefAccelerations() [2/2]

bool ControlBoardWrapperCommon::setRefAccelerations ( const int  n_joints,
const int *  joints,
const double *  accs 
)

Definition at line 83 of file ControlBoardWrapperCommon.cpp.

◆ stop() [1/3]

bool ControlBoardWrapperCommon::stop ( )

Definition at line 236 of file ControlBoardWrapperCommon.cpp.

◆ stop() [2/3]

bool ControlBoardWrapperCommon::stop ( const int  n_joint,
const int *  joints 
)

Definition at line 260 of file ControlBoardWrapperCommon.cpp.

◆ stop() [3/3]

bool ControlBoardWrapperCommon::stop ( int  j)

Definition at line 212 of file ControlBoardWrapperCommon.cpp.

Member Data Documentation

◆ controlledJoints

size_t ControlBoardWrapperCommon::controlledJoints {0}

Definition at line 23 of file ControlBoardWrapperCommon.h.

◆ device

WrappedDevice ControlBoardWrapperCommon::device

Definition at line 22 of file ControlBoardWrapperCommon.h.

◆ partName

std::string ControlBoardWrapperCommon::partName

Definition at line 24 of file ControlBoardWrapperCommon.h.

◆ rpcData

MultiJointData ControlBoardWrapperCommon::rpcData

Definition at line 28 of file ControlBoardWrapperCommon.h.

◆ rpcDataMutex

std::mutex ControlBoardWrapperCommon::rpcDataMutex

Definition at line 27 of file ControlBoardWrapperCommon.h.

◆ time

yarp::os::Stamp ControlBoardWrapperCommon::time

Definition at line 31 of file ControlBoardWrapperCommon.h.

◆ timeMutex

std::mutex ControlBoardWrapperCommon::timeMutex

Definition at line 30 of file ControlBoardWrapperCommon.h.


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