Widget to control joints via application of position PID controller.  
 More...
#include <JointControlWidget.hh>
Inherits QWidget.
|  | 
| void | OnChanged (double _value) | 
|  | Callback when the value of position slider changed.  More... 
 | 
|  | 
| void | OnDChanged (double _value) | 
|  | Callback when the value of D gain slider changed.  More... 
 | 
|  | 
| void | OnIChanged (double _value) | 
|  | Callback when the value of I gain slider changed.  More... 
 | 
|  | 
| void | OnPChanged (double _value) | 
|  | Callback when the value of P gain slider changed.  More... 
 | 
|  | 
|  | 
| void | changed (double _value, const std::string &_name) | 
|  | QT changed signal, used to report the change to the joint controller widget.  More... 
 | 
|  | 
| void | dChanged (double _value, const std::string &_name) | 
|  | QT changed signal, used to report the change to the joint controller widget.  More... 
 | 
|  | 
| void | iChanged (double _value, const std::string &_name) | 
|  | QT changed signal, used to report the change to the joint controller widget.  More... 
 | 
|  | 
| void | pChanged (double _value, const std::string &_name) | 
|  | QT changed signal, used to report the change to the joint controller widget.  More... 
 | 
|  | 
Widget to control joints via application of position PID controller. 
      
        
          | JointPIDPosControl | ( | const std::string & | _name, | 
        
          |  |  | QGridLayout * | _layout, | 
        
          |  |  | QWidget * | _parent, | 
        
          |  |  | int | _index | 
        
          |  | ) |  |  | 
      
 
Constructor. 
- Parameters
- 
  
    | [in] | _name | Name of the joint. |  | [in] | _layout | Layout to add the control to. |  | [in] | _parent | Parent of the widget. |  | [in] | _index | Row index into the grid layout. |  
 
 
 
  
  | 
        
          | void changed | ( | double | _value, |  
          |  |  | const std::string & | _name |  
          |  | ) |  |  |  | signal | 
 
QT changed signal, used to report the change to the joint controller widget. 
- Parameters
- 
  
    | [in] | _value | Value of the slider. |  | [in] | _name | Name of the joint. |  
 
 
 
  
  | 
        
          | void dChanged | ( | double | _value, |  
          |  |  | const std::string & | _name |  
          |  | ) |  |  |  | signal | 
 
QT changed signal, used to report the change to the joint controller widget. 
- Parameters
- 
  
    | [in] | _value | Value of the slider. |  | [in] | _name | Name of the joint. |  
 
 
 
  
  | 
        
          | void iChanged | ( | double | _value, |  
          |  |  | const std::string & | _name |  
          |  | ) |  |  |  | signal | 
 
QT changed signal, used to report the change to the joint controller widget. 
- Parameters
- 
  
    | [in] | _value | Value of the slider. |  | [in] | _name | Name of the joint. |  
 
 
 
  
  | 
        
          | void OnChanged | ( | double | _value | ) |  |  | slot | 
 
Callback when the value of position slider changed. 
- Parameters
- 
  
    | [in] | _value | Value of the slider. |  
 
 
 
  
  | 
        
          | void OnDChanged | ( | double | _value | ) |  |  | slot | 
 
Callback when the value of D gain slider changed. 
- Parameters
- 
  
    | [in] | _value | Value of the slider. |  
 
 
 
  
  | 
        
          | void OnIChanged | ( | double | _value | ) |  |  | slot | 
 
Callback when the value of I gain slider changed. 
- Parameters
- 
  
    | [in] | _value | Value of the slider. |  
 
 
 
  
  | 
        
          | void OnPChanged | ( | double | _value | ) |  |  | slot | 
 
Callback when the value of P gain slider changed. 
- Parameters
- 
  
    | [in] | _value | Value of the slider. |  
 
 
 
  
  | 
        
          | void pChanged | ( | double | _value, |  
          |  |  | const std::string & | _name |  
          |  | ) |  |  |  | signal | 
 
QT changed signal, used to report the change to the joint controller widget. 
- Parameters
- 
  
    | [in] | _value | Value of the slider. |  | [in] | _name | Name of the joint. |  
 
 
 
      
        
          | void SetDGain | ( | const double | _dGain | ) |  | 
      
 
Set the PID derivative gain. 
- Parameters
- 
  
    | [in] | _dGain | Derivative gain value. |  
 
 
 
      
        
          | void SetIGain | ( | const double | _iGain | ) |  | 
      
 
Set the PID integral gain. 
- Parameters
- 
  
    | [in] | _iGain | Integral gain value. |  
 
 
 
      
        
          | void SetPGain | ( | const double | _pGain | ) |  | 
      
 
Set the PID proportional gain. 
- Parameters
- 
  
    | [in] | _pGain | Proportional gain value. |  
 
 
 
      
        
          | void SetPositionTarget | ( | const double | _target | ) |  | 
      
 
Set the PID target position. 
- Parameters
- 
  
    | [in] | _target | Target position. |  
 
 
 
      
        
          | void SetShowActive | ( | const bool | _active | ) |  | 
      
 
Indicate whether controls are active by highlighting them. 
- Parameters
- 
  
    | [in] | _active | Whether the joint control is active or not. |  
 
 
 
Set the units to degrees. 
 
 
Set the units to radians. 
 
 
The documentation for this class was generated from the following file: