Widget to control joints via application of force.
More...
#include <JointControlWidget.hh>
Inherits QWidget.
|
void | changed (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 force.
◆ JointForceControl()
JointForceControl |
( |
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. |
◆ ~JointForceControl()
◆ changed
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. |
◆ OnChanged
void OnChanged |
( |
double |
_value | ) |
|
|
slot |
On force changed callback.
- Parameters
-
[in] | _value | Value of the changed slider. |
◆ Reset()
◆ SetForce()
void SetForce |
( |
const double |
_force | ) |
|
Set the control force.
- Parameters
-
[in] | _force | Value of the control force. |
◆ SetShowActive()
void SetShowActive |
( |
const bool |
_active | ) |
|
Indicate whether controls are active by highlighting them.
- Parameters
-
[in] | _active | Whether the joint control is active or not. |
The documentation for this class was generated from the following file: