Gazebo Sim

API Reference

8.7.0

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. More...
 

Signals

void PosStiffnessChanged ()
 Notify that the translational stiffness changed. More...
 
void RotStiffnessChanged ()
 Notify that the rotational stiffness changed. More...
 

Public Member Functions

 MouseDrag ()
 Constructor. More...
 
 ~MouseDrag () override
 Destructor. More...
 
void LoadConfig (const tinyxml2::XMLElement *_pluginElem) override
 
Q_INVOKABLE double PosStiffness () const
 Get the translational stiffness. More...
 
Q_INVOKABLE double RotStiffness () const
 Get the rotational stiffness. More...
 
Q_INVOKABLE void SetPosStiffness (double _posStiffness)
 Set the translational stiffness. More...
 
Q_INVOKABLE void SetRotStiffness (double _rotStiffness)
 Set the rotational stiffness. More...
 
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. More...
 
- 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. More...
 
double rotStiffness
 Stiffness of rotation mode. More...
 

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

~MouseDrag ( )
override

Destructor.

Member Function Documentation

◆ eventFilter()

bool eventFilter ( QObject *  _obj,
QEvent *  _event 
)
overrideprotected

◆ LoadConfig()

void LoadConfig ( const tinyxml2::XMLElement *  _pluginElem)
overridevirtual

Reimplemented from Plugin.

◆ OnSwitchCOM

void OnSwitchCOM ( const bool  _checked)
slot

Callback when COM switch is pressed.

Parameters
[in]_checkedTrue 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]_posStiffnessThe new translational stiffness

◆ SetRotStiffness()

Q_INVOKABLE void SetRotStiffness ( double  _rotStiffness)

Set the rotational stiffness.

Parameters
[in]_rotStiffnessThe new rotational stiffness

◆ Update()

void Update ( const UpdateInfo _info,
EntityComponentManager _ecm 
)
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]_infoCurrent simulation information, such as time.
[in]_ecmMutable reference to the ECM, so the system can read and write entities and their components.

Reimplemented from GuiSystem.

Property Documentation

◆ posStiffness

double posStiffness
readwrite

Stiffness of translation mode.

◆ rotStiffness

double rotStiffness
readwrite

Stiffness of rotation mode.


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