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. | |
void | fillSubControlBoardBuffersFromCompleteJointVector (const double *full, const RemappedControlBoards &remappedControlBoards) |
Fill buffers for the SubControlBoard from a vector of joints of the RemappedControlBoards. | |
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) | |
void | fillSubControlBoardBuffersFromCompleteJointVector (const yarp::dev::InteractionModeEnum *full, const RemappedControlBoards &remappedControlBoards) |
Fill buffers for the SubControlBoard from a vector of joints of the RemappedControlBoard. | |
void | fillCompleteJointVectorFromSubControlBoardBuffers (double *full, const RemappedControlBoards &remappedControlBoards) |
Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard . | |
void | fillCompleteJointVectorFromSubControlBoardBuffers (int *full, const RemappedControlBoards &remappedControlBoards) |
Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard . | |
void | fillCompleteJointVectorFromSubControlBoardBuffers (yarp::dev::InteractionModeEnum *full, const RemappedControlBoards &remappedControlBoards) |
Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard . | |
Public Attributes | |
std::mutex | mutex |
Mutex to grab to use this class. | |
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 155 of file ControlBoardRemapperHelpers.h.
bool ControlBoardSubControlBoardAxesDecomposition::configure | ( | const RemappedControlBoards & | remappedControlBoards | ) |
Resize the buffers using the information in the RemappedControlBoards.
Definition at line 232 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 297 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 327 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 357 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 282 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 312 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 342 of file ControlBoardRemapperHelpers.cpp.
std::vector< std::vector<double> > ControlBoardSubControlBoardAxesDecomposition::m_bufferForSubControlBoard |
Definition at line 226 of file ControlBoardRemapperHelpers.h.
std::vector< std::vector<int> > ControlBoardSubControlBoardAxesDecomposition::m_bufferForSubControlBoardControlModes |
Definition at line 227 of file ControlBoardRemapperHelpers.h.
std::vector< std::vector<yarp::dev::InteractionModeEnum> > ControlBoardSubControlBoardAxesDecomposition::m_bufferForSubControlBoardInteractionModes |
Definition at line 228 of file ControlBoardRemapperHelpers.h.
std::vector<int> ControlBoardSubControlBoardAxesDecomposition::m_counterForControlBoard |
Definition at line 230 of file ControlBoardRemapperHelpers.h.
std::vector< std::vector<int> > ControlBoardSubControlBoardAxesDecomposition::m_jointsInSubControlBoard |
Definition at line 223 of file ControlBoardRemapperHelpers.h.
std::vector<int> ControlBoardSubControlBoardAxesDecomposition::m_nJointsInSubControlBoard |
Definition at line 222 of file ControlBoardRemapperHelpers.h.
int ControlBoardSubControlBoardAxesDecomposition::m_nrOfControlledAxesInRemappedCtrlBrd |
Definition at line 221 of file ControlBoardRemapperHelpers.h.
std::mutex ControlBoardSubControlBoardAxesDecomposition::mutex |
Mutex to grab to use this class.
Definition at line 218 of file ControlBoardRemapperHelpers.h.