27 public
yarp::dev::DeprecatedDeviceDriver,
28 public
yarp::dev::IPositionControl,
29 public
yarp::dev::IVelocityControl,
30 public
yarp::dev::IAmplifierControl,
31 public
yarp::dev::IEncodersTimed,
32 public
yarp::dev::IFrameGrabberImage,
33 public
yarp::dev::IControlCalibration,
34 public
yarp::dev::IControlLimits,
35 public
yarp::os::Thread,
62 for (
int i=0; i<njoints; i++) {
105 for (
int i=0; i<njoints; i++) {
121 for (
int i=0; i<njoints; i++) {
147 for (
int i=0; i<njoints; i++) {
163 for (
int i=0; i<njoints; i++) {
179 for (
int i=0; i<njoints; i++) {
188 (*acc) = this->acc[j];
195 for (
int i=0; i<njoints; i++) {
225 for (
int i=0; i<njoints; i++) {
239 for (
int i=0; i<njoints; i++) {
254 for (
int i=0; i<njoints; i++) {
268 for (
int i=0; i<njoints; i++) {
282 for (
int i=0; i<njoints; i++) {
288 bool positionMove(
const int n_joint,
const int *joints,
const double *refs)
override {
return false; }
290 bool relativeMove(
const int n_joint,
const int *joints,
const double *deltas)
override {
return false; }
292 bool checkMotionDone(
const int n_joint,
const int *joints,
bool *flags)
override {
return false; }
294 bool setRefSpeeds(
const int n_joint,
const int *joints,
const double *spds)
override {
return false; }
296 bool setRefAccelerations(
const int n_joint,
const int *joints,
const double *accs)
override {
return false; }
298 bool getRefSpeeds(
const int n_joint,
const int *joints,
double *spds)
override {
return false; }
302 bool stop(
const int n_joint,
const int *joints)
override {
return false; }
308 bool ret = getEncoders(encs);
311 for (
int i=0; i<njoints; i++)
320 bool ret = getEncoder(j, enc);
333 for (
int i=0; i<njoints; i++) {
339 bool velocityMove(
const int n_joint,
const int *joints,
const double *spds)
override {
return false; }
365 for (
int i=0; i<njoints; i++) {
393 yCWarning(
FAKEBOT,
"Calibrating joint %d with parameters %u %lf %lf %lf", j, iv, v1, v2, v3);
403 bool getLimits(
int axis,
double *min,
double *max)
override
411 bool setLimits(
int axis,
double min,
double max)
override
417 bool setVelLimits(
int axis,
double min,
double max)
override {
return false; }
419 bool getVelLimits(
int axis,
double *min,
double *max)
override {
return false; }
define control board standard interfaces
const yarp::os::LogComponent & FAKEBOT()
contains the definition of a Vector type
This class is the parameters parser for class FakeBot.
fakebot deprecated: Documentation to be added
bool getEncoderSpeed(int j, double *sp) override
Read the istantaneous speed of an axis.
bool getEncoders(double *encs) override
Read the position of all axes.
bool getAmpStatus(int k, int *v) override
bool stop(const int n_joint, const int *joints) override
Stop motion for subset of joints.
bool setEncoder(int j, double val) override
Set the value of the encoder for a given joint.
bool velocityMove(int j, double sp) override
Start motion at a given speed, single joint.
bool getVelLimits(int axis, double *min, double *max) override
Get the software speed limits for a particular axis.
bool getEncoderTimed(int j, double *enc, double *time) override
Read the instantaneous acceleration of all axes.
bool enableAmp(int j) override
Enable the amplifier on a specific joint.
bool setVelLimits(int axis, double min, double max) override
Set the software speed limits for a particular axis, the behavior of the control card when these limi...
bool relativeMove(int j, double delta) override
Set relative position.
bool velocityMove(const int n_joint, const int *joints, const double *spds) override
Start motion at a given speed for a subset of joints.
bool calibrateAxisWithParams(int j, unsigned int iv, double v1, double v2, double v3) override
Start calibration, this method is very often platform specific.
bool setLimits(int axis, double min, double max) override
Set the software limits for a particular axis, the behavior of the control card when these limits are...
bool getRefSpeeds(const int n_joint, const int *joints, double *spds) override
Get reference speed of all joints.
bool resetEncoder(int j) override
Reset encoder, single joint.
bool checkMotionDone(int j, bool *flag) override
Check if the current trajectory is terminated.
bool calibrationDone(int j) override
Check if the calibration is terminated, on a particular joint.
bool checkMotionDone(const int n_joint, const int *joints, bool *flags) override
Check if the current trajectory is terminated.
int height() const override
Return the height of each frame.
bool positionMove(const int n_joint, const int *joints, const double *refs) override
Set new reference point for a subset of joints.
bool setMaxCurrent(int j, double v) override
bool getEncoderSpeeds(double *spds) override
Read the instantaneous speed of all axes.
bool getRefAccelerations(double *accs) override
Get reference acceleration of all joints.
bool stop() override
Stop motion, multiple joints.
bool velocityMove(const double *sp) override
Start motion at a given speed, multiple joints.
bool getCurrents(double *vals) override
bool setEncoders(const double *vals) override
Set the value of all encoders.
bool relativeMove(const double *deltas) override
Set relative position, all joints.
bool relativeMove(const int n_joint, const int *joints, const double *deltas) override
Set relative position for a subset of joints.
int width() const override
Return the width of each frame.
bool getRefAcceleration(int j, double *acc) override
Get reference acceleration for a joint.
bool checkMotionDone(bool *flag) override
Check if the current trajectory is terminated.
bool positionMove(const double *refs) override
Set new reference point for all axes.
bool getRefAccelerations(const int n_joint, const int *joints, double *accs) override
Get reference acceleration for a joint.
bool getEncoder(int j, double *v) override
Read the value of an encoder.
bool getEncodersTimed(double *encs, double *time) override
Read the instantaneous acceleration of all axes.
bool setRefAcceleration(int j, double acc) override
Set reference acceleration for a joint.
bool getLimits(int axis, double *min, double *max) override
Get the software limits for a particular axis.
bool getAmpStatus(int *st) override
bool setRefAccelerations(const int n_joint, const int *joints, const double *accs) override
Set reference acceleration on all joints.
bool getMaxCurrent(int j, double *v) override
Returns the maximum electric current allowed for a given motor.
bool setRefSpeeds(const int n_joint, const int *joints, const double *spds) override
Set reference speed on all joints.
bool getRefSpeed(int j, double *ref) override
Get reference speed for a joint.
bool getRefSpeeds(double *spds) override
Get reference speed of all joints.
bool close() override
Close the DeviceDriver.
bool getAxes(int *ax) override
Get the number of controlled axes.
bool getCurrent(int j, double *val) override
bool resetEncoders() override
Reset encoders.
bool setRefAccelerations(const double *accs) override
Set reference acceleration on all joints.
bool setRefSpeed(int j, double sp) override
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
bool setRefSpeeds(const double *spds) override
Set reference speed on all joints.
bool disableAmp(int j) override
Disable the amplifier on a specific joint.
bool getEncoderAcceleration(int j, double *spds) override
Read the instantaneous acceleration of an axis.
bool stop(int j) override
Stop motion, single joint.
bool positionMove(int j, double ref) override
Set new reference point for a single axis.
bool getEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all axes.
A base class for nested structures that can be searched.
void resize(size_t size) override
Resize the vector.
#define yCWarning(component,...)
#define YARP_DECLARE_LOG_COMPONENT(name)
double now()
Return the current time in seconds, relative to an arbitrary starting point.
The main, catch-all namespace for YARP.