##

JointForceControl Class Reference

Widget to control joints via application of force. More...

`#include <JointControlWidget.hh>`

Inherits QWidget.

## Public Slots

void | OnChanged (double _value)
| On force changed callback. More...

## Signals

void | changed (double _value, const std::string &_name)
| QT changed signal, used to report the change to the joint controller widget. More...

## Public Member Functions

| JointForceControl (const std::string &_name, QGridLayout *_layout, QWidget *_parent, int _index)
| Constructor. More...
virtual | ~JointForceControl ()
| Destructor. More...
void | Reset ()
| Reset the controls. More...
void | SetForce (const double _force)
| Set the control force. More...
void | SetShowActive (const bool _active)
| Indicate whether controls are active by highlighting them. More...

## Detailed Description

Widget to control joints via application of force.

## Constructor & Destructor Documentation

## 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()

virtual ~JointForceControl | ( |  | ) |

virtual

Destructor.

## Member Function Documentation

## 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()

void Reset | ( |  | ) |

Reset the controls.

## 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:

- JointControlWidget.hh