Translate and rotate links by dragging them with the mouse. Automatically loads the ApplyLinkWrench system. More...
#include <MouseDrag.hh>
Public Slots | |
void | OnSwitchCOM (const bool _checked) |
Callback when COM switch is pressed. | |
Signals | |
void | PosStiffnessChanged () |
Notify that the translational stiffness changed. | |
void | RotStiffnessChanged () |
Notify that the rotational stiffness changed. | |
Public Member Functions | |
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. | |
Public Member Functions inherited from Plugin | |
Plugin () | |
virtual | ~Plugin () |
QQuickItem * | CardItem () const |
virtual std::string | ConfigStr () |
QQmlContext * | Context () const |
bool | DeleteLaterRequested () const |
void | Load (const tinyxml2::XMLElement *_pluginElem) |
QQuickItem * | PluginItem () const |
void | PostParentChanges () |
virtual std::string | Title () const |
Protected Member Functions | |
bool | eventFilter (QObject *_obj, QEvent *_event) override |
Protected Member Functions inherited from Plugin | |
void | DeleteLater () |
Properties | |
double | posStiffness |
Stiffness of translation mode. | |
double | rotStiffness |
Stiffness of rotation mode. | |
Additional Inherited Members | |
Protected Attributes inherited from Plugin | |
std::string | configStr |
std::string | title |
Detailed Description
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
Constructor & Destructor Documentation
◆ MouseDrag()
MouseDrag | ( | ) |
Constructor.
◆ ~MouseDrag()
|
override |
Destructor.
Member Function Documentation
◆ eventFilter()
|
overrideprotected |
◆ LoadConfig()
|
overridevirtual |
Reimplemented from Plugin.
◆ OnSwitchCOM
|
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
|
signal |
Notify that the translational stiffness changed.
◆ RotStiffness()
Q_INVOKABLE double RotStiffness | ( | ) | const |
Get the rotational stiffness.
- Returns
- The rotational stiffness
◆ 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()
|
overridevirtual |
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.
Property Documentation
◆ posStiffness
|
readwrite |
Stiffness of translation mode.
◆ rotStiffness
|
readwrite |
Stiffness of rotation mode.
The documentation for this class was generated from the following file: