|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
16 size_t subIndex =
device.
lut[m].deviceEntry;
36 size_t subIndex =
device.
lut[l].deviceEntry;
56 size_t subIndex =
device.
lut[m].deviceEntry;
76 size_t subIndex =
device.
lut[l].deviceEntry;
96 size_t subIndex =
device.
lut[m].deviceEntry;
113 size_t subIndex =
device.
lut[m].deviceEntry;
131 size_t subIndex =
device.
lut[m].deviceEntry;
159 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
160 encs[juser] = encValues[jdevice];
187 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
188 encs[juser] = encValues[jdevice];
189 t[juser] = tValues[jdevice];
207 size_t subIndex =
device.
lut[m].deviceEntry;
225 size_t subIndex =
device.
lut[m].deviceEntry;
252 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
253 spds[juser] = sValues[jdevice];
270 size_t subIndex =
device.
lut[m].deviceEntry;
297 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
298 accs[juser] = aValues[jdevice];
yarp::dev::IMotorEncoders * iMotEnc
bool getMotorEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all motor encoders.
virtual bool setMotorEncoderCountsPerRevolution(int m, const double cpr)=0
Sets number of counts per revolution for motor encoder m.
bool setMotorEncoderCountsPerRevolution(int m, const double cpr) override
Sets number of counts per revolution for motor encoder m.
virtual bool resetMotorEncoder(int m)=0
Reset motor encoder, single motor.
bool getMotorEncodersTimed(double *encs, double *t) override
Read the instantaneous position of all motor encoders.
bool getMotorEncoderCountsPerRevolution(int m, double *cpr) override
Gets number of counts per revolution for motor encoder m.
virtual bool getMotorEncoder(int m, double *v)=0
Read the value of a motor encoder.
bool getMotorEncoderTimed(int m, double *v, double *t) override
Read the instantaneous position of a motor encoder.
bool getNumberOfMotorEncoders(int *num) override
Get the number of available motor encoders.
virtual bool getMotorEncoderAccelerations(double *accs)=0
Read the instantaneous acceleration of all motor encoders.
bool getMotorEncoderSpeeds(double *spds) override
Read the instantaneous speed of all motor encoders.
bool getMotorEncoderSpeed(int m, double *sp) override
Read the istantaneous speed of a motor encoder.
bool setMotorEncoder(int m, const double val) override
Set the value of the motor encoder for a given motor.
virtual bool getMotorEncoders(double *encs)=0
Read the position of all motor encoders.
bool getMotorEncoders(double *encs) override
Read the position of all motor encoders.
virtual bool getMotorEncoderTimed(int m, double *encs, double *time)=0
Read the instantaneous position of a motor encoder.
SubDevice * getSubdevice(size_t i)
virtual bool getMotorEncoderSpeeds(double *spds)=0
Read the instantaneous speed of all motor encoders.
SubDeviceVector subdevices
bool getMotorEncoder(int m, double *v) override
Read the value of a motor encoder.
bool setMotorEncoders(const double *vals) override
Set the value of all motor encoders.
std::vector< DevicesLutEntry > lut
bool resetMotorEncoder(int m) override
Reset motor encoder, single motor.
virtual bool getMotorEncoderAcceleration(int m, double *acc)=0
Read the instantaneous acceleration of a motor encoder.
virtual bool setMotorEncoder(int m, const double val)=0
Set the value of the motor encoder for a given motor.
bool getMotorEncoderAcceleration(int m, double *acc) override
Read the instantaneous acceleration of a motor encoder.
bool resetMotorEncoders() override
Reset motor encoders.
virtual bool getMotorEncoderCountsPerRevolution(int m, double *cpr)=0
Gets number of counts per revolution for motor encoder m.
size_t maxNumOfJointsInDevices
void printError(const std::string &func_name, const std::string &info, bool result)
virtual bool getMotorEncodersTimed(double *encs, double *time)=0
Read the instantaneous position of all motor encoders.
virtual bool getMotorEncoderSpeed(int m, double *sp)=0
Read the istantaneous speed of a motor encoder.