|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
18 #define JOINTIDCHECK if (j >= castToMapper(helper)->axes()){yError("joint id out of bound"); return false;}
21 iInteraction(class_p),
23 imodeBuffManager(nullptr),
24 intBuffManager(nullptr)
41 return initialize(size, amap,
nullptr,
nullptr);
100 for (
int i = 0; i < n_joints; i++)
121 modes[j] = buffValues[idx];
140 for(
int idx=0; idx<n_joints; idx++)
155 buffValues[j] = modes[idx];
yarp::dev::IInteractionModeRaw * iInteraction
yarp::dev::impl::FixedSizeBuffersManager< yarp::dev::InteractionModeEnum > * imodeBuffManager
bool setInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes) override
Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.
bool getInteractionMode(int axis, yarp::dev::InteractionModeEnum *mode) override
Get the current interaction mode of the robot, values can be stiff or compliant.
bool getInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes) override
Get the current interaction mode of the robot for a set of joints, values can be stiff or compliant.
T * getData()
Return the data pointer.
Buffer< T > getBuffer()
Get a buffer and fill its information in @buffer.
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
An interface for the device drivers.
bool setInteractionMode(int axis, yarp::dev::InteractionModeEnum mode) override
Set the interaction mode of the robot, values can be stiff or compliant.
virtual bool getInteractionModesRaw(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes)=0
Get the current interaction mode of the robot for a set of joints, values can be stiff or compliant.
Interface settings the way the robot interacts with the environment: basic interaction types are Stif...
bool uninitialize()
Clean up internal data and memory.
virtual bool setInteractionModeRaw(int axis, yarp::dev::InteractionModeEnum mode)=0
Set the interaction mode of the robot, values can be stiff or compliant.
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.
ImplementInteractionMode(yarp::dev::IInteractionModeRaw *Class_p)
Constructor.
An interface to the operating system, including Port based communication.
yarp::dev::ControlBoardHelper * castToMapper(void *p)
virtual bool getInteractionModeRaw(int axis, yarp::dev::InteractionModeEnum *mode)=0
Get the current interaction mode of the robot, values can be stiff or compliant.
virtual bool setInteractionModesRaw(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes)=0
Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.
virtual ~ImplementInteractionMode()
Destructor.
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory, smaller version.