|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_CONTROLBOARDREMAPPER_CONTROLBOARDREMAPPERHELPERS_H
10 #define YARP_DEV_CONTROLBOARDREMAPPER_CONTROLBOARDREMAPPERHELPERS_H
35 #pragma warning(disable:4355)
75 inline void setVerbose(
bool _verbose) {_subDevVerbose = _verbose; }
115 std::vector<RemappedAxis>
lut;
249 void createListOfJointsDecomposition(
const int n_joints,
const int *joints,
const RemappedControlBoards & remappedControlBoards);
303 const int n_joints,
const int *joints,
314 const int n_joints,
const int *joints,
325 const int n_joints,
const int *joints,
353 #endif // YARP_DEV_CONTROLBOARDREMAPPER_CONTROLBOARDREMAPPERHELPERS_H
IRemoteVariables interface.
std::vector< std::vector< int > > m_jointsInSubControlBoard
yarp::dev::IVelocityControl * vel
yarp::dev::IRemoteVariables * iVar
contains the definition of a Vector type
Interface for control boards implementing impedance control.
size_t getNrOfRemappedAxes() const
RemappedSubControlBoard * getSubControlBoard(size_t i)
Given a controlboard index between 0 and getNrOfSubControlBoards()-1, return the relative SubControlB...
yarp::dev::IMotor * imotor
bool configure(const RemappedControlBoards &remappedControlBoards)
Resize the buffers using the information in the RemappedControlBoards.
void fillCompleteJointVectorFromSubControlBoardBuffers(double *full, const RemappedControlBoards &remappedControlBoards)
Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard .
yarp::dev::IImpedanceControl * iImpedance
yarp::dev::IControlLimits * lim
yarp::dev::IPidControl * pid
yarp::dev::IControlMode * iMode
yarp::dev::ITorqueControl * iTorque
yarp::dev::IPositionDirect * posDir
define control board standard interfaces
yarp::dev::IInteractionMode * iInteract
yarp::dev::IPWMControl * iPwm
size_t subControlBoardIndex
The index of the SubControlBoard of the remapped axis in the RemappedControlBoards class.
yarp::dev::IPreciselyTimed * iTimed
Interface settings the way the robot interacts with the environment: basic interaction types are Stif...
size_t getNrOfSubControlBoards() const
std::mutex mutex
Mutex to grab to use this class.
void fillArbitraryJointVectorFromSubControlBoardBuffers(double *arbitraryVec, const int n_joints, const int *joints, const RemappedControlBoards &remappedControlBoards)
Fill a vector of joints of the ControlBoardRemapper from the buffers of the SubControlBoard .
Interface for setting control mode in control board.
yarp::dev::IAmplifierControl * amp
Interface for control devices, calibration commands.
Interface for getting information about specific axes, if available.
void fillSubControlBoardBuffersFromCompleteJointVector(const double *full, const RemappedControlBoards &remappedControlBoards)
Fill buffers for the SubControlBoard from a vector of joints of the RemappedControlBoards.
RemappedSubControlBoard()
std::vector< int > m_counterForControlBoard
yarp::dev::IAxisInfo * info
void fillSubControlBoardBuffersFromArbitraryJointVector(const double *arbitraryVec, const int n_joints, const int *joints, const RemappedControlBoards &remappedControlBoards)
Fill buffers for the SubControlBoard from a vector of joints of the RemappedControlBoards.
bool attach(yarp::dev::PolyDriver *d, const std::string &id)
Interface for control devices, commands to get/set position and veloity limits.
A container for a device driver.
std::vector< std::vector< int > > m_bufferForSubControlBoardControlModes
std::mutex mutex
Mutex to grab to use this class.
std::vector< RemappedSubControlBoard > subdevices
Vector of dimension getNrOfSubControlBoards .
void setVerbose(bool _verbose)
int m_nrOfControlledAxesInRemappedCtrlBrd
yarp::dev::IMotorEncoders * iMotEnc
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
std::vector< int > m_nJointsInSubControlBoard
std::vector< int > controlBoardModes
Information in how an axis is remapped on an axis of a SubControlBoard.
std::vector< double > dummyBuffer
std::vector< int > m_counterForControlBoard
std::vector< int > m_nJointsInSubControlBoard
Control board, encoder interface.
Class storing the decomposition of a subset of the total remapped axes of the remapped controlboard i...
Interface for control devices, amplifier commands.
Control board, encoder interface.
Interface for control boards implementing velocity control.
An abstraction for a time stamp and/or sequence number.
std::vector< std::vector< double > > m_bufferForSubControlBoard
yarp::dev::IEncodersTimed * iJntEnc
Interface for control boards implementing current control.
std::vector< std::vector< double > > m_bufferForSubControlBoard
Interface for a generic control board device implementing a PID controller, with scaled arguments.
yarp::dev::IPositionControl * pos
Interface for a generic control board device implementing position control.
Control board, extend encoder interface with timestamps.
yarp::dev::ICurrentControl * iCurr
std::vector< RemappedAxis > lut
Vector of dimension getNrOfRemappedAxes .
std::vector< std::vector< yarp::dev::InteractionModeEnum > > m_bufferForSubControlBoardInteractionModes
Interface for control boards implementing torque control.
yarp::dev::IRemoteCalibrator * remcalib
IRemoteCalibrator interface is meant to remotize the access of the calibration device in order to all...
yarp::dev::PolyDriver * subdevice
int m_nrOfControlledAxesInRemappedCtrlBrd
Interface for a generic control board device implementing position control.
std::vector< std::vector< yarp::dev::InteractionModeEnum > > m_bufferForSubControlBoardInteractionModes
void resizeSubControlBoardBuffers(const int n_joints, const int *joints, const RemappedControlBoards &remappedControlBoards)
Resize buffers to have the dimension of specified by the method (used for multi joint methods that re...
Class storing the decomposition of all the axes in the Remapped ControlBoard in the SubControlBoard,...
std::vector< std::vector< int > > m_bufferForSubControlBoardControlModes
bool configure(const RemappedControlBoards &remappedControlBoards)
Resize the buffers using the information in the RemappedControlBoards.
size_t axisIndexInSubControlBoard
The index of the remapped axis in the SubControlBoard.
std::vector< std::vector< int > > m_jointsInSubControlBoard
yarp::dev::IControlCalibration * calib