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]_nameName of the joint.
[in]_layoutLayout to add the control to.
[in]_parentParent of the widget.
[in]_indexRow 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]_valueValue of the slider.
[in]_nameName of the joint.

◆ OnChanged

void OnChanged ( double  _value)
slot

On force changed callback.

Parameters
[in]_valueValue of the changed slider.

◆ Reset()

void Reset ( )

Reset the controls.

◆ SetForce()

void SetForce ( const double  _force)

Set the control force.

Parameters
[in]_forceValue of the control force.

◆ SetShowActive()

void SetShowActive ( const bool  _active)

Indicate whether controls are active by highlighting them.

Parameters
[in]_activeWhether the joint control is active or not.

The documentation for this class was generated from the following file: