yarp::dev::ControlBoardHelper * castToMapper(void *p)
void posE2A(double enc, int j, double &ang, int &k)
void posA2E(double ang, int j, double &enc, int &k)
Interface for a generic control board device implementing position control in encoder coordinates.
virtual yarp::dev::ReturnValue setPositionRaw(int j, double ref)=0
Set new position for a single axis.
virtual yarp::dev::ReturnValue getRefPositionsRaw(double *refs)=0
Get the last position reference for all axes.
virtual yarp::dev::ReturnValue setPositionsRaw(const int n_joint, const int *joints, const double *refs)=0
Set new reference point for all axes.
virtual yarp::dev::ReturnValue getRefPositionRaw(const int joint, double *ref)=0
Get the last position reference for the specified axis.
virtual ~ImplementPositionDirect()
Destructor.
IPositionDirectRaw * m_iraw
ImplementPositionDirect(yarp::dev::IPositionDirectRaw *y)
Constructor.
bool uninitialize()
Clean up internal data and memory.
yarp::dev::ReturnValue getRefPosition(const int joint, double *ref) override
Get the last position reference for the specified axis.
yarp::dev::ReturnValue getRefPositions(double *refs) override
Get the last position reference for all axes.
yarp::dev::ReturnValue setPositions(const int n_joint, const int *joints, const double *refs) override
Set new reference point for all axes.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
std::vector< int > m_buffer_ints
std::vector< double > m_buffer_doubles
yarp::dev::ReturnValue getAxes(size_t &axes) override
Get the number of controlled axes.
yarp::dev::ReturnValue setPosition(int j, double ref) override
Set new position for a single axis.
A mini-server for performing network communication in the background.
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.