Translate and rotate links by dragging them with the mouse. Automatically loads the ApplyLinkWrench system.
More...
#include <MouseDrag.hh>
|
| void | OnSwitchCOM (const bool _checked) |
| | Callback when COM switch is pressed.
|
| |
|
| | MouseDrag () |
| | Constructor.
|
| |
| | ~MouseDrag () override |
| | Destructor.
|
| |
| void | LoadConfig (const tinyxml2::XMLElement *_pluginElem) override |
| |
| Q_INVOKABLE double | PosStiffness () const |
| | Get the translational stiffness.
|
| |
| Q_INVOKABLE double | RotStiffness () const |
| | Get the rotational stiffness.
|
| |
| Q_INVOKABLE void | SetPosStiffness (double _posStiffness) |
| | Set the translational stiffness.
|
| |
| Q_INVOKABLE void | SetRotStiffness (double _rotStiffness) |
| | Set the rotational stiffness.
|
| |
| void | Update (const UpdateInfo &_info, EntityComponentManager &_ecm) override |
| | Update callback called every time the system is stepped. This is called at a Gazebo Transport thread, so any interaction with Qt should be done through signals and slots.
|
| |
|
| bool | eventFilter (QObject *_obj, QEvent *_event) override |
| |
Translate and rotate links by dragging them with the mouse. Automatically loads the ApplyLinkWrench system.
Configuration
- <rotation_stiffness> : Stiffness of rotation mode, defaults to 100
- <position_stiffness> : Stiffness of translation mode, defaults to 100
◆ MouseDrag()
◆ ~MouseDrag()
◆ eventFilter()
| bool eventFilter |
( |
QObject * |
_obj, |
|
|
QEvent * |
_event |
|
) |
| |
|
overrideprotected |
◆ LoadConfig()
| void LoadConfig |
( |
const tinyxml2::XMLElement * |
_pluginElem | ) |
|
|
override |
◆ OnSwitchCOM
| void OnSwitchCOM |
( |
const bool |
_checked | ) |
|
|
slot |
Callback when COM switch is pressed.
- Parameters
-
| [in] | _checked | True if force should be applied to center of mass |
◆ PosStiffness()
| Q_INVOKABLE double PosStiffness |
( |
| ) |
const |
Get the translational stiffness.
- Returns
- The translational stiffness
◆ PosStiffnessChanged
| void PosStiffnessChanged |
( |
| ) |
|
|
signal |
Notify that the translational stiffness changed.
◆ RotStiffness()
| Q_INVOKABLE double RotStiffness |
( |
| ) |
const |
Get the rotational stiffness.
- Returns
- The rotational stiffness
◆ RotStiffnessChanged
| void RotStiffnessChanged |
( |
| ) |
|
|
signal |
Notify that the rotational stiffness changed.
◆ SetPosStiffness()
| Q_INVOKABLE void SetPosStiffness |
( |
double |
_posStiffness | ) |
|
Set the translational stiffness.
- Parameters
-
| [in] | _posStiffness | The new translational stiffness |
◆ SetRotStiffness()
| Q_INVOKABLE void SetRotStiffness |
( |
double |
_rotStiffness | ) |
|
Set the rotational stiffness.
- Parameters
-
| [in] | _rotStiffness | The new rotational stiffness |
◆ Update()
Update callback called every time the system is stepped. This is called at a Gazebo Transport thread, so any interaction with Qt should be done through signals and slots.
- Parameters
-
| [in] | _info | Current simulation information, such as time. |
| [in] | _ecm | Mutable reference to the ECM, so the system can read and write entities and their components. |
Reimplemented from GuiSystem.
◆ posStiffness
Stiffness of translation mode.
◆ rotStiffness
Stiffness of rotation mode.
The documentation for this class was generated from the following file: