67 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
80 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
81 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,stiffness)
82 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,damping)
90 *stiffness = fabs (*stiffness);
91 *damping = fabs (*damping);
98 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
109 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
110 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,offset)
122 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
123 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,min_stiff)
124 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,max_stiff)
125 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,min_damp)
126 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,max_damp)
yarp::dev::ControlBoardHelper * castToMapper(void *p)
void trqN2S(double newtons, int j, double &sens, int &k)
void impN2S(double newtons, int j, double &sens, int &k)
void trqS2N(const double *sens, double *newtons)
void impS2N(const double *sens, double *newtons)
Interface for control boards implementing impedance control.
virtual yarp::dev::ReturnValue getCurrentImpedanceLimitRaw(int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp)=0
Get the current impedance limits for a specific joint.
virtual yarp::dev::ReturnValue getImpedanceOffsetRaw(int j, double *offset)=0
Get current force Offset for a specific joint.
virtual yarp::dev::ReturnValue setImpedanceRaw(int j, double stiffness, double damping)=0
Set current impedance parameters (stiffness,damping) for a specific joint.
virtual yarp::dev::ReturnValue getAxes(size_t &ax)=0
Get the number of controlled axes.
virtual yarp::dev::ReturnValue setImpedanceOffsetRaw(int j, double offset)=0
Set current force Offset for a specific joint.
virtual yarp::dev::ReturnValue getImpedanceRaw(int j, double *stiffness, double *damping)=0
Get current impedance parameters (stiffness,damping,offset) for a specific joint.
std::vector< int > m_buffer_ints
bool uninitialize()
Clean up internal data and memory.
yarp::dev::ReturnValue getImpedance(int j, double *stiffness, double *damping) override
Get current impedance gains (stiffness,damping,offset) for a specific joint.
virtual ~ImplementImpedanceControl()
Destructor.
yarp::dev::ReturnValue getImpedanceOffset(int j, double *offset) override
Get current force Offset for a specific joint.
bool initialize(int size, const int *amap, const double *enc, const double *zos, const double *nw)
Initialize the internal data and alloc memory.
ImplementImpedanceControl(yarp::dev::IImpedanceControlRaw *y)
std::vector< double > m_buffer_doubles
yarp::dev::ReturnValue setImpedanceOffset(int j, double offset) override
Set current force Offset for a specific joint.
yarp::dev::ReturnValue getAxes(size_t &ax) override
Get the number of controlled axes.
yarp::dev::IImpedanceControlRaw * m_iraw
yarp::dev::ReturnValue setImpedance(int j, double stiffness, double damping) override
Set current impedance gains (stiffness,damping) for a specific joint.
yarp::dev::ReturnValue getCurrentImpedanceLimit(int j, double *min_stiff, double *max_stiff, double *min_damp, double *max_damp) override
Get the current impedance limits for a specific joint.
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.