YARP
Yet Another Robot Platform
ControlBoardWrapperImpedanceControl.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERIMPEDANCECONTROL_H
10 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERIMPEDANCECONTROL_H
11 
13 
15 
17  virtual public ControlBoardWrapperCommon,
19 {
20 public:
21  inline bool getAxes(int* ax) override { return ControlBoardWrapperCommon::getAxes(ax); }
22  bool setImpedance(int j, double stiff, double damp) override;
23  bool setImpedanceOffset(int j, double offset) override;
24  bool getImpedance(int j, double* stiff, double* damp) override;
25  bool getImpedanceOffset(int j, double* offset) override;
26  bool getCurrentImpedanceLimit(int j, double* min_stiff, double* max_stiff, double* min_damp, double* max_damp) override;
27 };
28 
29 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERIMPEDANCECONTROL_H
ControlBoardWrapperImpedanceControl::setImpedance
bool setImpedance(int j, double stiff, double damp) override
Set current impedance gains (stiffness,damping) for a specific joint.
Definition: ControlBoardWrapperImpedanceControl.cpp:14
yarp::dev::IImpedanceControl
Interface for control boards implementing impedance control.
Definition: IImpedanceControl.h:75
ControlBoardWrapperImpedanceControl
Definition: ControlBoardWrapperImpedanceControl.h:19
ControlBoardWrapperImpedanceControl::getAxes
bool getAxes(int *ax) override
Get the number of controlled axes.
Definition: ControlBoardWrapperImpedanceControl.h:21
ControlBoardWrapperCommon.h
ControlBoardWrapperCommon
Definition: ControlBoardWrapperCommon.h:19
IImpedanceControl.h
ControlBoardWrapperCommon::getAxes
bool getAxes(int *ax)
Definition: ControlBoardWrapperCommon.cpp:14
ControlBoardWrapperImpedanceControl::setImpedanceOffset
bool setImpedanceOffset(int j, double offset) override
Set current force Offset for a specific joint.
Definition: ControlBoardWrapperImpedanceControl.cpp:38
ControlBoardWrapperImpedanceControl::getCurrentImpedanceLimit
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.
Definition: ControlBoardWrapperImpedanceControl.cpp:110
ControlBoardWrapperImpedanceControl::getImpedanceOffset
bool getImpedanceOffset(int j, double *offset) override
Get current force Offset for a specific joint.
Definition: ControlBoardWrapperImpedanceControl.cpp:86
ControlBoardWrapperImpedanceControl::getImpedance
bool getImpedance(int j, double *stiff, double *damp) override
Get current impedance gains (stiffness,damping,offset) for a specific joint.
Definition: ControlBoardWrapperImpedanceControl.cpp:62