yarp::dev::ControlBoardHelper * castToMapper(void *p)
void ampereA2S(double ampere, int j, double &sens, int &k)
void ampereS2A(const double *sens, double *ampere)
Interface for control boards implementing current control.
virtual yarp::dev::ReturnValue getRefCurrentRaw(int m, double *curr)=0
Get the reference value of the current for a single motor.
virtual yarp::dev::ReturnValue setRefCurrentsRaw(const double *currs)=0
Set the reference value of the currents for all motors.
virtual yarp::dev::ReturnValue getRefCurrentsRaw(double *currs)=0
Get the reference value of the currents for all motors.
virtual yarp::dev::ReturnValue getCurrentRangesRaw(double *min, double *max)=0
Get the full scale of the current measurements for all motors motor (e.g.
virtual yarp::dev::ReturnValue getNumberOfMotorsRaw(int *number)=0
Retrieves the number of controlled motors from the current physical interface.
virtual yarp::dev::ReturnValue getCurrentRaw(int m, double *curr)=0
Get the instantaneous current measurement for a single motor.
virtual yarp::dev::ReturnValue getCurrentRangeRaw(int m, double *min, double *max)=0
Get the full scale of the current measurement for a given motor (e.g.
virtual yarp::dev::ReturnValue setRefCurrentRaw(int m, double curr)=0
Set the reference value of the current for a single motor.
virtual yarp::dev::ReturnValue getCurrentsRaw(double *currs)=0
Get the instantaneous current measurement for all motors.
ImplementCurrentControl(yarp::dev::ICurrentControlRaw *y)
bool uninitialize()
Clean up internal data and memory.
yarp::dev::ReturnValue getCurrents(double *t) override
Get the instantaneous current measurement for all motors.
std::vector< double > m_buffer_doubles2
yarp::dev::ICurrentControlRaw * m_iraw
std::vector< double > m_buffer_doubles
yarp::dev::ReturnValue getCurrentRange(int j, double *min, double *max) override
Get the full scale of the current measurement for a given motor (e.g.
yarp::dev::ReturnValue getCurrent(int j, double *t) override
Get the instantaneous current measurement for a single motor.
std::vector< int > m_buffer_ints
yarp::dev::ReturnValue getRefCurrents(double *t) override
Get the reference value of the currents for all motors.
bool initialize(int size, const int *amap, const double *ampsToSens)
Initialize the internal data and alloc memory.
yarp::dev::ReturnValue getCurrentRanges(double *min, double *max) override
Get the full scale of the current measurements for all motors motor (e.g.
yarp::dev::ReturnValue getNumberOfMotors(int *ax) override
Retrieves the number of controlled axes from the current physical interface.
virtual ~ImplementCurrentControl()
Destructor.
yarp::dev::ReturnValue setRefCurrent(int j, double t) override
Set the reference value of the current for a single motor.
yarp::dev::ReturnValue setRefCurrents(const double *t) override
Set the reference value of the currents for all motors.
yarp::dev::ReturnValue getRefCurrent(int j, double *) override
Get the reference value of the current for a single motor.
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.