#include <yarp/dev/ImplementImpedanceControl.h>
Public Member Functions | |
ImplementImpedanceControl (yarp::dev::IImpedanceControlRaw *y) | |
virtual | ~ImplementImpedanceControl () |
Destructor. More... | |
bool | getAxes (int *ax) override |
Get the number of controlled axes. More... | |
bool | getImpedance (int j, double *stiffness, double *damping) override |
Get current impedance gains (stiffness,damping,offset) for a specific joint. More... | |
bool | setImpedance (int j, double stiffness, double damping) override |
Set current impedance gains (stiffness,damping) for a specific joint. More... | |
bool | setImpedanceOffset (int j, double offset) override |
Set current force Offset for a specific joint. More... | |
bool | getImpedanceOffset (int j, double *offset) override |
Get current force Offset for a specific joint. More... | |
bool | getCurrentImpedanceLimit (int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp) override |
Get the current impedandance limits for a specific joint. More... | |
Public Member Functions inherited from yarp::dev::IImpedanceControl | |
virtual | ~IImpedanceControl () |
Destructor. More... | |
Protected Member Functions | |
bool | initialize (int size, const int *amap, const double *enc, const double *zos, const double *nw) |
Initialize the internal data and alloc memory. More... | |
bool | uninitialize () |
Clean up internal data and memory. More... | |
Protected Attributes | |
yarp::dev::IImpedanceControlRaw * | iImpedanceRaw |
void * | helper |
Definition at line 21 of file ImplementImpedanceControl.h.
ImplementImpedanceControl::ImplementImpedanceControl | ( | yarp::dev::IImpedanceControlRaw * | y | ) |
Definition at line 21 of file ImplementImpedanceControl.cpp.
|
virtual |
Destructor.
Perform uninitialize if needed.
Definition at line 38 of file ImplementImpedanceControl.cpp.
|
overridevirtual |
Get the number of controlled axes.
This command asks the number of controlled axes for the current physical interface.
Implements yarp::dev::IImpedanceControl.
Reimplemented in FakeMotionControl.
Definition at line 54 of file ImplementImpedanceControl.cpp.
|
overridevirtual |
Get the current impedandance limits for a specific joint.
Implements yarp::dev::IImpedanceControl.
Definition at line 103 of file ImplementImpedanceControl.cpp.
|
overridevirtual |
Get current impedance gains (stiffness,damping,offset) for a specific joint.
Implements yarp::dev::IImpedanceControl.
Definition at line 70 of file ImplementImpedanceControl.cpp.
|
overridevirtual |
Get current force Offset for a specific joint.
Implements yarp::dev::IImpedanceControl.
Definition at line 93 of file ImplementImpedanceControl.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. |
Definition at line 27 of file ImplementImpedanceControl.cpp.
|
overridevirtual |
Set current impedance gains (stiffness,damping) for a specific joint.
Implements yarp::dev::IImpedanceControl.
Definition at line 59 of file ImplementImpedanceControl.cpp.
|
overridevirtual |
Set current force Offset for a specific joint.
Implements yarp::dev::IImpedanceControl.
Definition at line 84 of file ImplementImpedanceControl.cpp.
|
protected |
Clean up internal data and memory.
Definition at line 43 of file ImplementImpedanceControl.cpp.
|
protected |
Definition at line 25 of file ImplementImpedanceControl.h.
|
protected |
Definition at line 24 of file ImplementImpedanceControl.h.