|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
27 public
yarp::dev::DeviceDriver,
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::dev::DeviceResponder,
36 public
yarp::os::Thread
45 double xScale, yScale;
69 for (
int i=0; i<njoints; i++) {
112 for (
int i=0; i<njoints; i++) {
128 for (
int i=0; i<njoints; i++) {
154 for (
int i=0; i<njoints; i++) {
170 for (
int i=0; i<njoints; i++) {
186 for (
int i=0; i<njoints; i++) {
195 (*acc) = this->acc[j];
202 for (
int i=0; i<njoints; i++) {
232 for (
int i=0; i<njoints; i++) {
246 for (
int i=0; i<njoints; i++) {
261 for (
int i=0; i<njoints; i++) {
275 for (
int i=0; i<njoints; i++) {
289 for (
int i=0; i<njoints; i++) {
295 bool positionMove(
const int n_joint,
const int *joints,
const double *refs)
override {
return false; }
297 bool relativeMove(
const int n_joint,
const int *joints,
const double *deltas)
override {
return false; }
299 bool checkMotionDone(
const int n_joint,
const int *joints,
bool *flags)
override {
return false; }
301 bool setRefSpeeds(
const int n_joint,
const int *joints,
const double *spds)
override {
return false; }
303 bool setRefAccelerations(
const int n_joint,
const int *joints,
const double *accs)
override {
return false; }
305 bool getRefSpeeds(
const int n_joint,
const int *joints,
double *spds)
override {
return false; }
309 bool stop(
const int n_joint,
const int *joints)
override {
return false; }
315 bool ret = getEncoders(encs);
318 for (
int i=0; i<njoints; i++)
327 bool ret = getEncoder(j, enc);
340 for (
int i=0; i<njoints; i++) {
346 bool velocityMove(
const int n_joint,
const int *joints,
const double *spds)
override {
return false; }
372 for (
int i=0; i<njoints; i++) {
400 yCWarning(
FAKEBOT,
"Calibrating joint %d with parameters %u %lf %lf %lf", j, iv, v1, v2, v3);
410 bool getLimits(
int axis,
double *min,
double *max)
override
418 bool setLimits(
int axis,
double min,
double max)
override
424 bool setVelLimits(
int axis,
double min,
double max)
override {
return false; }
426 bool getVelLimits(
int axis,
double *min,
double *max)
override {
return false; }
#define YARP_DECLARE_LOG_COMPONENT(name)
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 getRefAcceleration(int j, double *acc) override
Get reference acceleration for a joint.
void resize(size_t size) override
Resize the vector.
bool setRefAcceleration(int j, double acc) override
Set reference acceleration for a joint.
bool velocityMove(int j, double sp) override
Start motion at a given speed, single joint.
bool velocityMove(const int n_joint, const int *joints, const double *spds) override
Start motion at a given speed for a subset of joints.
A base class for nested structures that can be searched.
int width() const override
Return the width of each frame.
bool setEncoder(int j, double val) override
Set the value of the encoder for a given joint.
bool close() override
Close the DeviceDriver.
contains the definition of a Vector type
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 getEncoderSpeeds(double *spds) override
Read the instantaneous speed of all axes.
bool relativeMove(const int n_joint, const int *joints, const double *deltas) override
Set relative position for a subset of joints.
bool checkMotionDone(bool *flag) override
Check if the current trajectory is terminated.
bool stop(const int n_joint, const int *joints) override
Stop motion for subset of joints.
bool relativeMove(int j, double delta) override
Set relative position.
#define yCWarning(component,...)
const yarp::os::LogComponent & FAKEBOT()
bool positionMove(const int n_joint, const int *joints, const double *refs) override
Set new reference point for a subset of joints.
bool getRefAccelerations(double *accs) override
Get reference acceleration of all joints.
bool enableAmp(int j) override
Enable the amplifier on a specific joint.
bool getRefSpeed(int j, double *ref) override
Get reference speed for a joint.
bool getCurrents(double *vals) override
bool getLimits(int axis, double *min, double *max) override
Get the software limits for a particular axis.
bool setMaxCurrent(int j, double v) override
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...
int height() const override
Return the height of each frame.
bool getEncoderAcceleration(int j, double *spds) override
Read the instantaneous acceleration of an axis.
define control board standard interfaces
bool calibrationDone(int j) override
Check if the calibration is terminated, on a particular joint.
bool getEncoderTimed(int j, double *enc, double *time) override
Read the instantaneous acceleration of all axes.
double now()
Return the current time in seconds, relative to an arbitrary starting point.
bool setRefAccelerations(const int n_joint, const int *joints, const double *accs) override
Set reference acceleration on all joints.
bool getEncodersTimed(double *encs, double *time) override
Read the instantaneous acceleration of all axes.
bool getEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all axes.
bool setRefSpeeds(const int n_joint, const int *joints, const double *spds) override
Set reference speed on all joints.
bool getAmpStatus(int k, int *v) override
fakebot: Documentation to be added
bool stop(int j) override
Stop motion, single joint.
bool getMaxCurrent(int j, double *v) override
Returns the maximum electric current allowed for a given motor.
bool resetEncoder(int j) override
Reset encoder, single joint.
bool disableAmp(int j) override
Disable the amplifier on a specific joint.
bool getEncoderSpeed(int j, double *sp) override
Read the istantaneous speed of an axis.
bool setRefAccelerations(const double *accs) override
Set reference acceleration on all joints.
define common interfaces to discover remote camera capabilities
bool getAxes(int *ax) override
Get the number of controlled axes.
bool getRefSpeeds(const int n_joint, const int *joints, double *spds) override
Get reference speed of all joints.
The main, catch-all namespace for YARP.
bool resetEncoders() override
Reset encoders.
bool getRefAccelerations(const int n_joint, const int *joints, double *accs) override
Get reference acceleration for a joint.
bool positionMove(int j, double ref) override
Set new reference point for a single axis.
bool getEncoders(double *encs) override
Read the position of all axes.
bool setRefSpeeds(const double *spds) override
Set reference speed on all joints.
bool relativeMove(const double *deltas) override
Set relative position, all joints.
bool velocityMove(const double *sp) override
Start motion at a given speed, multiple joints.
bool stop() override
Stop motion, multiple joints.
bool checkMotionDone(const int n_joint, const int *joints, bool *flags) override
Check if the current trajectory is terminated.
bool getAmpStatus(int *st) override
bool getCurrent(int j, double *val) override
bool setEncoders(const double *vals) override
Set the value of all encoders.
bool getRefSpeeds(double *spds) override
Get reference speed of all joints.
bool getVelLimits(int axis, double *min, double *max) override
Get the software speed limits for a particular axis.
bool getEncoder(int j, double *v) override
Read the value of an encoder.
bool checkMotionDone(int j, bool *flag) override
Check if the current trajectory is terminated.
bool positionMove(const double *refs) override
Set new reference point for all axes.
bool calibrateAxisWithParams(int j, unsigned int iv, double v1, double v2, double v3) override
Start calibration, this method is very often platform specific.