32 stmp = myIstmp->getLastInputStamp();
56 while(!
iencs->getEncoders(
e))
57 fprintf(stderr,
"Getting bad encoders! \n");
62 fprintf(stderr,
"Interface is not ready! \n");
77 ipid->getPidReferences(VOCAB_PIDTYPE_POSITION,
e);
94 iencs->getEncoderSpeeds(
e);
111 iencs->getEncoderAccelerations(
e);
128 ipid->getPidErrors(VOCAB_PIDTYPE_POSITION,
e);
145 ipid->getPidOutputs(VOCAB_PIDTYPE_POSITION,
e);
162 iamp->getCurrents(
e);
198 icmd->getControlModes(tmp);
199 for (
int i=0; i<
nj; i++)
201 if (tmp[i] == VOCAB_CM_POSITION)
e[i] = 0;
202 else if (tmp[i] == VOCAB_CM_POSITION_DIRECT)
e[i] = 1;
203 else if (tmp[i] == VOCAB_CM_VELOCITY)
e[i] = 2;
204 else if (tmp[i] == VOCAB_CM_MIXED)
e[i] = 3;
205 else if (tmp[i] == VOCAB_CM_TORQUE)
e[i] = 4;
206 else if (tmp[i] == VOCAB_CM_PWM)
e[i] = 5;
207 else if (tmp[i] == VOCAB_CM_IDLE)
e[i] = 6;
225 yarp::dev::InteractionModeEnum tmp[50];
228 iint->getInteractionModes(tmp);
229 for (
int i=0; i<
nj; i++)
231 if (tmp[i] == VOCAB_IM_STIFF)
e[i] = 0;
232 else if (tmp[i] == VOCAB_IM_COMPLIANT)
e[i] = 1;
251 ipid->getPidErrors(VOCAB_PIDTYPE_TORQUE,
e);
268 itrq->getRefTorques(
e);
285 fprintf(stderr,
"Getting bad motor encoders! \n");
290 fprintf(stderr,
"Interface is not ready! \n");
305 while(!
imot->getTemperatures(temp))
306 fprintf(stderr,
"Getting bad motortemperatures! \n");
311 fprintf(stderr,
"Interface is not ready! \n");
325 while(!
imotencs->getMotorEncoderSpeeds(
e))
326 fprintf(stderr,
"Getting bad motor encoders! \n");
331 fprintf(stderr,
"Interface is not ready! \n");
345 while(!
imotencs->getMotorEncoderAccelerations(
e))
346 fprintf(stderr,
"Getting bad motor encoders! \n");
351 fprintf(stderr,
"Interface is not ready! \n");
372 ret &=
iamp->getPWM(j, &
e[j]);
void setInterface(IEncoders *)
virtual bool getData(double *)
virtual bool getData(double *)
void setInterface(IControlMode *, int joints)
virtual bool getData(double *)
void setInterface(IAmplifierControl *)
void setStamp(IPreciselyTimed *)
virtual bool getData(double *)
void setInterface(IEncoders *)
void setInterface(IInteractionMode *, int joints)
virtual bool getData(double *)
void setInterface(IMotorEncoders *)
IMotorEncoders * imotencs
virtual bool getData(double *)
IMotorEncoders * imotencs
void setInterface(IMotorEncoders *)
virtual bool getData(double *)
virtual bool getData(double *)
void setInterface(IAmplifierControl *)
virtual bool getData(double *)
void setInterface(IMotorEncoders *)
IMotorEncoders * imotencs
void setInterface(IPidControl *)
virtual bool getData(double *)
void setInterface(IPidControl *)
virtual bool getData(double *)
void setInterface(IPidControl *)
virtual bool getData(double *)
void setInterface(IEncoders *)
virtual bool getData(double *)
void setInterface(IMotor *)
virtual bool getData(double *)
void setInterface(IPidControl *)
virtual bool getData(double *)
void setInterface(ITorqueControl *)
virtual bool getData(double *)
virtual bool getData(double *)
void setInterface(ITorqueControl *)