|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
23 size_t subIndex =
device.
lut[j].deviceEntry;
50 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
51 min[juser] = c_min[jdevice];
52 max[juser] = c_max[jdevice];
72 size_t subIndex =
device.
lut[l].deviceEntry;
97 size_t subIndex =
device.
lut[j].deviceEntry;
120 for (
int j = 0; j < n_joint; j++) {
121 subIndex =
device.
lut[joints[j]].deviceEntry;
151 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
152 t[juser] = references[jdevice];
174 size_t subIndex =
device.
lut[j].deviceEntry;
virtual bool getRefCurrent(int m, double *curr)=0
Get the reference value of the current for a single motor.
bool setRefCurrents(const double *t) override
Set the reference value of the currents for all motors.
virtual bool setRefCurrents(const double *currs)=0
Set the reference value of the currents for all motors.
int * subdev_jointsVectorLen
bool setRefCurrent(int j, double t) override
Set the reference value of the current for a single motor.
yarp::dev::ICurrentControl * iCurr
SubDevice ** subdevices_p
const yarp::os::LogComponent & CONTROLBOARDWRAPPER()
bool getRefCurrent(int j, double *t) override
Get the reference value of the current for a single motor.
SubDevice * getSubdevice(size_t i)
SubDeviceVector subdevices
virtual bool getRefCurrents(double *currs)=0
Get the reference value of the currents for all motors.
bool getCurrentRange(int j, double *min, double *max) override
Get the full scale of the current measurement for a given motor (e.g.
bool getCurrentRanges(double *min, double *max) override
Get the full scale of the current measurements for all motors motor (e.g.
#define yCError(component,...)
virtual bool setRefCurrent(int m, double curr)=0
Set the reference value of the current for a single motor.
std::vector< DevicesLutEntry > lut
virtual bool getCurrentRange(int m, double *min, double *max)=0
Get the full scale of the current measurement for a given motor (e.g.
virtual bool getCurrentRanges(double *min, double *max)=0
Get the full scale of the current measurements for all motors motor (e.g.
bool getRefCurrents(double *t) override
Get the reference value of the currents for all motors.
size_t maxNumOfJointsInDevices
void printError(const std::string &func_name, const std::string &info, bool result)