 |
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_IMPLEMENTTORQUECONTROL_H
10 #define YARP_DEV_IMPLEMENTTORQUECONTROL_H
17 class ImplementTorqueControl;
26 class FixedSizeBuffersManager;
47 bool initialize (
int size,
const int *amap,
const double *enc,
const double *zos,
const double *nw,
const double* amps,
const double* dutys,
const double* bemfs,
const double* ktaus);
72 bool setRefTorques(
const int n_joint,
const int *joints,
const double *
t)
override;
81 #endif // YARP_DEV_IMPLEMENTTORQUECONTROL_H
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
Interface for control boards implementing torque control.
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).
virtual bool getAxes(int *ax)=0
Get the number of controlled axes.
ImplementTorqueControl(yarp::dev::ITorqueControlRaw *y)
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.
bool initialize(int size, const int *amap, const double *enc, const double *zos, const double *nw, const double *amps, const double *dutys, const double *bemfs, const double *ktaus)
Initialize the internal data and alloc memory.
virtual bool setRefTorques(const double *t)=0
Set the reference value of the torque for all joints.
virtual bool setMotorTorqueParams(int j, const yarp::dev::MotorTorqueParameters params)
Set a subset of motor parameters (bemf, ktau etc) useful for torque control.
yarp::dev::ITorqueControlRaw * iTorqueRaw
virtual bool getTorques(double *t)=0
Get the value of the torque for all joints (this is the feedback if you have torque sensors).
The main, catch-all namespace for YARP.
virtual ~ImplementTorqueControl()
Destructor.
Interface for control boards implementing torque control.
bool uninitialize()
Clean up internal data and memory.
virtual bool setRefTorque(int j, double t)=0
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.
virtual bool getTorqueRange(int j, double *min, double *max)=0
Get the full scale of the torque sensor of a given joint.