|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
26 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
27 refs[juser] = references[jdevice];
50 size_t subIndex =
device.
lut[j].deviceEntry;
69 size_t subIndex =
device.
lut[l].deviceEntry;
94 size_t subIndex =
device.
lut[j].deviceEntry;
117 for (
int j = 0; j < n_joints; j++) {
118 subIndex =
device.
lut[joints[j]].deviceEntry;
145 size_t subIndex =
device.
lut[j].deviceEntry;
167 size_t subIndex =
device.
lut[j].deviceEntry;
189 size_t subIndex =
device.
lut[j].deviceEntry;
215 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
216 t[juser] = trqs[jdevice];
238 size_t subIndex =
device.
lut[j].deviceEntry;
265 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
266 min[juser] = t_min[jdevice];
267 max[juser] = t_max[jdevice];
bool getTorqueRange(int j, double *min, double *max) override
Get the full scale of the torque sensor of a given joint.
bool setRefTorques(const double *t) override
Set the reference value of the torque for all joints.
virtual bool getTorque(int j, double *t)=0
Get the value of the torque on a given joint (this is the feedback if you have a torque sensor).
bool getRefTorques(double *refs) override
Get the reference value of the torque for all joints.
int * subdev_jointsVectorLen
bool getMotorTorqueParams(int j, yarp::dev::MotorTorqueParameters *params) override
Get a subset of motor parameters (bemf, ktau etc) useful for torque control.
virtual bool getTorqueRanges(double *min, double *max)=0
Get the full scale of the torque sensors of all joints.
virtual bool getRefTorques(double *t)=0
Get the reference value of the torque for all joints.
SubDevice ** subdevices_p
const yarp::os::LogComponent & CONTROLBOARDWRAPPER()
virtual bool setRefTorques(const double *t)=0
Set the reference value of the torque for all joints.
bool getRefTorque(int j, double *t) override
Get the reference value of the torque for a given joint.
SubDevice * getSubdevice(size_t i)
virtual bool setMotorTorqueParams(int j, const yarp::dev::MotorTorqueParameters params)
Set a subset of motor parameters (bemf, ktau etc) useful for torque control.
SubDeviceVector subdevices
virtual bool getTorques(double *t)=0
Get the value of the torque for all joints (this is the feedback if you have torque sensors).
bool getTorques(double *t) override
Get the value of the torque for all joints (this is the feedback if you have torque sensors).
yarp::dev::ITorqueControl * iTorque
#define yCError(component,...)
bool setMotorTorqueParams(int j, const yarp::dev::MotorTorqueParameters params) override
Set a subset of motor parameters (bemf, ktau etc) useful for torque control.
bool getTorqueRanges(double *min, double *max) override
Get the full scale of the torque sensors of all joints.
std::vector< DevicesLutEntry > lut
bool getTorque(int j, double *t) override
Get the value of the torque on a given joint (this is the feedback if you have a torque sensor).
virtual bool setRefTorque(int j, double t)=0
Set the reference value of the torque for a given joint.
size_t maxNumOfJointsInDevices
bool setRefTorque(int j, double t) override
Set the reference value of the torque for a given joint.
virtual bool getRefTorque(int j, double *t)=0
Get the reference value of the torque for a given joint.
virtual bool getMotorTorqueParams(int j, yarp::dev::MotorTorqueParameters *params)
Get a subset of motor parameters (bemf, ktau etc) useful for torque control.
void printError(const std::string &func_name, const std::string &info, bool result)
virtual bool getTorqueRange(int j, double *min, double *max)=0
Get the full scale of the torque sensor of a given joint.