YARP
Yet Another Robot Platform
ControlBoardSubControlBoardAxesDecomposition Class Reference

Class storing the decomposition of all the axes in the Remapped ControlBoard in the SubControlBoard, with buffer reading to use to simplify MultiJoint methods implementation. More...

#include <ControlBoardRemapper/ControlBoardRemapperHelpers.h>

Public Member Functions

bool configure (const RemappedControlBoards &remappedControlBoards)
 Resize the buffers using the information in the RemappedControlBoards. More...
 
void fillSubControlBoardBuffersFromCompleteJointVector (const double *full, const RemappedControlBoards &remappedControlBoards)
 Fill buffers for the SubControlBoard from a vector of joints of the RemappedControlBoards. More...
 
void fillSubControlBoardBuffersFromCompleteJointVector (const int *full, const RemappedControlBoards &remappedControlBoards)
 Fill buffers for the SubControlBoard from a vector of joints of the RemappedControlBoard (Version for ControlModes methods) More...
 
void fillSubControlBoardBuffersFromCompleteJointVector (const yarp::dev::InteractionModeEnum *full, const RemappedControlBoards &remappedControlBoards)
 Fill buffers for the SubControlBoard from a vector of joints of the RemappedControlBoard. More...
 
void fillCompleteJointVectorFromSubControlBoardBuffers (double *full, const RemappedControlBoards &remappedControlBoards)
 Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard . More...
 
void fillCompleteJointVectorFromSubControlBoardBuffers (int *full, const RemappedControlBoards &remappedControlBoards)
 Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard . More...
 
void fillCompleteJointVectorFromSubControlBoardBuffers (yarp::dev::InteractionModeEnum *full, const RemappedControlBoards &remappedControlBoards)
 Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard . More...
 

Public Attributes

std::mutex mutex
 Mutex to grab to use this class. More...
 
int m_nrOfControlledAxesInRemappedCtrlBrd
 
std::vector< int > m_nJointsInSubControlBoard
 
std::vector< std::vector< int > > m_jointsInSubControlBoard
 
std::vector< std::vector< double > > m_bufferForSubControlBoard
 
std::vector< std::vector< int > > m_bufferForSubControlBoardControlModes
 
std::vector< std::vector< yarp::dev::InteractionModeEnum > > m_bufferForSubControlBoardInteractionModes
 
std::vector< int > m_counterForControlBoard
 

Detailed Description

Class storing the decomposition of all the axes in the Remapped ControlBoard in the SubControlBoard, with buffer reading to use to simplify MultiJoint methods implementation.

Definition at line 156 of file ControlBoardRemapperHelpers.h.

Member Function Documentation

◆ configure()

bool ControlBoardSubControlBoardAxesDecomposition::configure ( const RemappedControlBoards remappedControlBoards)

Resize the buffers using the information in the RemappedControlBoards.

Definition at line 216 of file ControlBoardRemapperHelpers.cpp.

◆ fillCompleteJointVectorFromSubControlBoardBuffers() [1/3]

void ControlBoardSubControlBoardAxesDecomposition::fillCompleteJointVectorFromSubControlBoardBuffers ( double *  full,
const RemappedControlBoards remappedControlBoards 
)

Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard .

Definition at line 281 of file ControlBoardRemapperHelpers.cpp.

◆ fillCompleteJointVectorFromSubControlBoardBuffers() [2/3]

void ControlBoardSubControlBoardAxesDecomposition::fillCompleteJointVectorFromSubControlBoardBuffers ( int *  full,
const RemappedControlBoards remappedControlBoards 
)

Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard .

Before calling this method you should have called the resizeSubControlBoardBuffers method. (Version for ControlModes methods)

Definition at line 311 of file ControlBoardRemapperHelpers.cpp.

◆ fillCompleteJointVectorFromSubControlBoardBuffers() [3/3]

void ControlBoardSubControlBoardAxesDecomposition::fillCompleteJointVectorFromSubControlBoardBuffers ( yarp::dev::InteractionModeEnum full,
const RemappedControlBoards remappedControlBoards 
)

Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard .

Before calling this method you should have called the resizeSubControlBoardBuffers method. (Version for InteractionModes methods)

Definition at line 341 of file ControlBoardRemapperHelpers.cpp.

◆ fillSubControlBoardBuffersFromCompleteJointVector() [1/3]

void ControlBoardSubControlBoardAxesDecomposition::fillSubControlBoardBuffersFromCompleteJointVector ( const double *  full,
const RemappedControlBoards remappedControlBoards 
)

Fill buffers for the SubControlBoard from a vector of joints of the RemappedControlBoards.

Definition at line 266 of file ControlBoardRemapperHelpers.cpp.

◆ fillSubControlBoardBuffersFromCompleteJointVector() [2/3]

void ControlBoardSubControlBoardAxesDecomposition::fillSubControlBoardBuffersFromCompleteJointVector ( const int *  full,
const RemappedControlBoards remappedControlBoards 
)

Fill buffers for the SubControlBoard from a vector of joints of the RemappedControlBoard (Version for ControlModes methods)

Definition at line 296 of file ControlBoardRemapperHelpers.cpp.

◆ fillSubControlBoardBuffersFromCompleteJointVector() [3/3]

void ControlBoardSubControlBoardAxesDecomposition::fillSubControlBoardBuffersFromCompleteJointVector ( const yarp::dev::InteractionModeEnum full,
const RemappedControlBoards remappedControlBoards 
)

Fill buffers for the SubControlBoard from a vector of joints of the RemappedControlBoard.

(Version for InteractionModes methods)

Definition at line 326 of file ControlBoardRemapperHelpers.cpp.

Member Data Documentation

◆ m_bufferForSubControlBoard

std::vector< std::vector<double> > ControlBoardSubControlBoardAxesDecomposition::m_bufferForSubControlBoard

Definition at line 227 of file ControlBoardRemapperHelpers.h.

◆ m_bufferForSubControlBoardControlModes

std::vector< std::vector<int> > ControlBoardSubControlBoardAxesDecomposition::m_bufferForSubControlBoardControlModes

Definition at line 228 of file ControlBoardRemapperHelpers.h.

◆ m_bufferForSubControlBoardInteractionModes

std::vector< std::vector<yarp::dev::InteractionModeEnum> > ControlBoardSubControlBoardAxesDecomposition::m_bufferForSubControlBoardInteractionModes

Definition at line 229 of file ControlBoardRemapperHelpers.h.

◆ m_counterForControlBoard

std::vector<int> ControlBoardSubControlBoardAxesDecomposition::m_counterForControlBoard

Definition at line 231 of file ControlBoardRemapperHelpers.h.

◆ m_jointsInSubControlBoard

std::vector< std::vector<int> > ControlBoardSubControlBoardAxesDecomposition::m_jointsInSubControlBoard

Definition at line 224 of file ControlBoardRemapperHelpers.h.

◆ m_nJointsInSubControlBoard

std::vector<int> ControlBoardSubControlBoardAxesDecomposition::m_nJointsInSubControlBoard

Definition at line 223 of file ControlBoardRemapperHelpers.h.

◆ m_nrOfControlledAxesInRemappedCtrlBrd

int ControlBoardSubControlBoardAxesDecomposition::m_nrOfControlledAxesInRemappedCtrlBrd

Definition at line 222 of file ControlBoardRemapperHelpers.h.

◆ mutex

std::mutex ControlBoardSubControlBoardAxesDecomposition::mutex

Mutex to grab to use this class.

Definition at line 219 of file ControlBoardRemapperHelpers.h.


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