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 |
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.
bool ControlBoardSubControlBoardAxesDecomposition::configure | ( | const RemappedControlBoards & | remappedControlBoards | ) |
Resize the buffers using the information in the RemappedControlBoards.
Definition at line 216 of file ControlBoardRemapperHelpers.cpp.
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.
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.
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.
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.
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.
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.
std::vector< std::vector<double> > ControlBoardSubControlBoardAxesDecomposition::m_bufferForSubControlBoard |
Definition at line 227 of file ControlBoardRemapperHelpers.h.
std::vector< std::vector<int> > ControlBoardSubControlBoardAxesDecomposition::m_bufferForSubControlBoardControlModes |
Definition at line 228 of file ControlBoardRemapperHelpers.h.
std::vector< std::vector<yarp::dev::InteractionModeEnum> > ControlBoardSubControlBoardAxesDecomposition::m_bufferForSubControlBoardInteractionModes |
Definition at line 229 of file ControlBoardRemapperHelpers.h.
std::vector<int> ControlBoardSubControlBoardAxesDecomposition::m_counterForControlBoard |
Definition at line 231 of file ControlBoardRemapperHelpers.h.
std::vector< std::vector<int> > ControlBoardSubControlBoardAxesDecomposition::m_jointsInSubControlBoard |
Definition at line 224 of file ControlBoardRemapperHelpers.h.
std::vector<int> ControlBoardSubControlBoardAxesDecomposition::m_nJointsInSubControlBoard |
Definition at line 223 of file ControlBoardRemapperHelpers.h.
int ControlBoardSubControlBoardAxesDecomposition::m_nrOfControlledAxesInRemappedCtrlBrd |
Definition at line 222 of file ControlBoardRemapperHelpers.h.
std::mutex ControlBoardSubControlBoardAxesDecomposition::mutex |
Mutex to grab to use this class.
Definition at line 219 of file ControlBoardRemapperHelpers.h.