|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
17 #define JOINTIDCHECK if (j >= castToMapper(helper)->axes()){yError("joint id out of bound"); return false;}
34 yAssert (buffManager !=
nullptr);
51 if (buffManager!=
nullptr)
84 for(
int idx=0; idx<n_joint; idx++)
103 if(!
castToMapper(helper)->checkAxesIds(n_joint, joints))
108 for(
int idx=0; idx<n_joint; idx++)
bool setControlMode(const int j, const int mode) override
Set the current control mode.
virtual bool getControlModesRaw(int *modes)=0
T * getData()
Return the data pointer.
Buffer< T > getBuffer()
Get a buffer and fill its information in @buffer.
bool initialize(int k, const int *amap)
An interface for the device drivers.
virtual bool setControlModeRaw(const int j, const int mode)=0
bool setControlModes(const int n_joint, const int *joints, int *modes) override
Set the current control mode for a subset of axes.
bool getControlMode(int j, int *f) override
Get the current control mode.
bool getControlModes(int *modes) override
Get the current control mode (multiple joints).
Interface for setting control mode in control board.
ImplementControlMode(IControlModeRaw *v)
Buffer contains info about a buffer of type T and it is used to exchange information with yarp::dev::...
void releaseBuffer(Buffer< T > &buffer)
Release a buffer.
virtual bool getControlModeRaw(int j, int *mode)=0
An interface to the operating system, including Port based communication.
yarp::dev::ControlBoardHelper * castToMapper(void *p)
virtual bool setControlModesRaw(const int n_joint, const int *joints, int *modes)=0