|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
19 #define JOINTIDCHECK if (j >= castToMapper(helper)->axes()){yError("joint id out of bound"); return false;}
24 intBuffManager(nullptr),
25 doubleBuffManager(nullptr)
100 for(
int idx=0; idx<n_joint; idx++)
143 for(
int idx=0; idx<n_joint; idx++)
151 for(
int idx=0; idx<n_joint; idx++)
174 bool StubImplPositionDirectRaw::NOT_YET_IMPLEMENTED(
const char *func)
177 yError(
"%s: not yet implemented\n", func);
179 yError(
"Function not yet implemented\n");
virtual bool setPositionsRaw(const int n_joint, const int *joints, const double *refs)=0
Set new reference point for all axes.
void posE2A(double enc, int j, double &ang, int &k)
virtual ~ImplementPositionDirect()
Destructor.
bool setPosition(int j, double ref) override
Set new position for a single axis.
IPositionDirectRaw * iPDirect
T * getData()
Return the data pointer.
Buffer< T > getBuffer()
Get a buffer and fill its information in @buffer.
bool setPositions(const int n_joint, const int *joints, const double *refs) override
Set new reference point for all axes.
An interface for the device drivers.
std::size_t getBufferSize()
Get the number of elements of a buffer.
void posA2E(double ang, int j, double &enc, int &k)
bool getRefPositions(double *refs) override
Get the last position reference for all axes.
virtual bool getRefPositionRaw(const int joint, double *ref)
Get the last position reference for the specified axis.
virtual bool setPositionRaw(int j, double ref)=0
Set new position for a single axis.
bool getRefPosition(const int joint, double *ref) override
Get the last position reference for the specified axis.
Interface for a generic control board device implementing position control in encoder coordinates.
Buffer contains info about a buffer of type T and it is used to exchange information with yarp::dev::...
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
void releaseBuffer(Buffer< T > &buffer)
Release a buffer.
virtual bool getRefPositionsRaw(double *refs)
Get the last position reference for all axes.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
An interface to the operating system, including Port based communication.
yarp::dev::ControlBoardHelper * castToMapper(void *p)
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
bool getAxes(int *axes) override
Get the number of controlled axes.
void setValue(uint32_t index, T value)
Set the value @value in the buffer at index index.
bool uninitialize()
Clean up internal data and memory.
ImplementPositionDirect(yarp::dev::IPositionDirectRaw *y)
Constructor.