#include <yarp/dev/ImplementTorqueControl.h>
Public Member Functions | |
ImplementTorqueControl (yarp::dev::ITorqueControlRaw *y) | |
virtual | ~ImplementTorqueControl () |
Destructor. More... | |
bool | getAxes (int *ax) override |
Get the number of controlled axes. More... | |
bool | getRefTorque (int j, double *) override |
Get the reference value of the torque for a given joint. More... | |
bool | getRefTorques (double *t) override |
Get the reference value of the torque for all joints. More... | |
bool | setRefTorques (const double *t) override |
Set the reference value of the torque for all joints. More... | |
bool | setRefTorque (int j, double t) override |
Set the reference value of the torque for a given joint. More... | |
bool | setRefTorques (const int n_joint, const int *joints, const double *t) override |
Set new torque reference for a subset of joints. More... | |
bool | getTorques (double *t) override |
Get the value of the torque for all joints (this is the feedback if you have torque sensors). More... | |
bool | getTorque (int j, double *t) override |
Get the value of the torque on a given joint (this is the feedback if you have a torque sensor). More... | |
bool | setMotorTorqueParams (int j, const yarp::dev::MotorTorqueParameters params) override |
Set a subset of motor parameters (bemf, ktau etc) useful for torque control. More... | |
bool | getMotorTorqueParams (int j, yarp::dev::MotorTorqueParameters *params) override |
Get a subset of motor parameters (bemf, ktau etc) useful for torque control. More... | |
bool | getTorqueRange (int j, double *min, double *max) override |
Get the full scale of the torque sensor of a given joint. More... | |
bool | getTorqueRanges (double *min, double *max) override |
Get the full scale of the torque sensors of all joints. More... | |
Public Member Functions inherited from yarp::dev::ITorqueControl | |
virtual | ~ITorqueControl () |
Destructor. More... | |
Protected Member Functions | |
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. More... | |
bool | uninitialize () |
Clean up internal data and memory. More... | |
Protected Attributes | |
yarp::dev::ITorqueControlRaw * | iTorqueRaw |
void * | helper |
yarp::dev::impl::FixedSizeBuffersManager< int > * | intBuffManager |
yarp::dev::impl::FixedSizeBuffersManager< double > * | doubleBuffManager |
Definition at line 32 of file ImplementTorqueControl.h.
ImplementTorqueControl::ImplementTorqueControl | ( | yarp::dev::ITorqueControlRaw * | y | ) |
Definition at line 19 of file ImplementTorqueControl.cpp.
|
virtual |
Destructor.
Perform uninitialize if needed.
Definition at line 26 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Get the number of controlled axes.
This command asks the number of controlled axes for the current physical interface.
Implements yarp::dev::ITorqueControl.
Reimplemented in FakeMotionControl.
Definition at line 71 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Get a subset of motor parameters (bemf, ktau etc) useful for torque control.
j | joint number |
params | a struct containing the motor parameters to be retrieved |
Reimplemented from yarp::dev::ITorqueControl.
Definition at line 102 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Get the reference value of the torque for a given joint.
This is NOT the feedback (see getTorque instead).
j | joint number |
t | the returned reference torque of joint j |
Implements yarp::dev::ITorqueControl.
Definition at line 76 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Get the reference value of the torque for all joints.
This is NOT the feedback (see getTorques instead).
t | pointer to the array of torque values |
Implements yarp::dev::ITorqueControl.
Definition at line 122 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Get the value of the torque on a given joint (this is the feedback if you have a torque sensor).
j | joint number |
t | pointer to the result value |
Implements yarp::dev::ITorqueControl.
Definition at line 178 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Get the full scale of the torque sensor of a given joint.
j | joint number |
min | minimum torque of the joint j |
max | maximum torque of the joint j |
Implements yarp::dev::ITorqueControl.
Definition at line 199 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Get the full scale of the torque sensors of all joints.
min | pointer to the array that will store minimum torques of the joints |
max | pointer to the array that will store maximum torques of the joints |
Implements yarp::dev::ITorqueControl.
Definition at line 186 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Get the value of the torque for all joints (this is the feedback if you have torque sensors).
t | pointer to the array that will store the output |
Implements yarp::dev::ITorqueControl.
Definition at line 149 of file ImplementTorqueControl.cpp.
|
protected |
Initialize the internal data and alloc memory.
size | is the number of controlled axes the driver deals with. |
amap | is a lookup table mapping axes onto physical drivers. |
enc | is an array containing the encoder to angles conversion factors. |
zos | is an array containing the zeros of the encoders. |
Definition at line 31 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Set a subset of motor parameters (bemf, ktau etc) useful for torque control.
j | joint number |
params | a struct containing the motor parameters to be set |
Reimplemented from yarp::dev::ITorqueControl.
Definition at line 88 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Set the reference value of the torque for a given joint.
j | joint number |
t | new value |
Implements yarp::dev::ITorqueControl.
Definition at line 140 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Set the reference value of the torque for all joints.
t | pointer to the array of torque values |
Implements yarp::dev::ITorqueControl.
Definition at line 131 of file ImplementTorqueControl.cpp.
|
overridevirtual |
Set new torque reference for a subset of joints.
joints | pointer to the array of joint numbers |
refs | pointer to the array specifying the new torque reference |
Reimplemented from yarp::dev::ITorqueControl.
Definition at line 158 of file ImplementTorqueControl.cpp.
|
protected |
Clean up internal data and memory.
Definition at line 48 of file ImplementTorqueControl.cpp.
|
protected |
Definition at line 38 of file ImplementTorqueControl.h.
|
protected |
Definition at line 36 of file ImplementTorqueControl.h.
|
protected |
Definition at line 37 of file ImplementTorqueControl.h.
|
protected |
Definition at line 35 of file ImplementTorqueControl.h.