Go to the documentation of this file.
18 #ifndef GZ_GUI_PLUGINS_TELEOP_HH_
19 #define GZ_GUI_PLUGINS_TELEOP_HH_
23 #include <gz/transport/Node.hh>
29 # define Teleop_EXPORTS_API
31 # if (defined(Teleop_EXPORTS))
32 # define Teleop_EXPORTS_API __declspec(dllexport)
34 # define Teleop_EXPORTS_API __declspec(dllimport)
68 WRITE SetMaxForwardVel
69 NOTIFY MaxForwardVelChanged
76 WRITE SetMaxVerticalVel
77 NOTIFY MaxVerticalVelChanged
85 NOTIFY MaxYawVelChanged
95 public: virtual
void LoadConfig(const
tinyxml2::XMLElement *) override;
98 protected:
bool eventFilter(
QObject *_obj,
QEvent *_event) override;
104 public slots:
void OnTeleopTwist(
double _forwardVel,
double _verticalVel,
110 public: Q_INVOKABLE
QString Topic() const;
115 public slots:
void SetTopic(const
QString &_topic);
118 signals:
void TopicChanged();
122 public: Q_INVOKABLE
double MaxForwardVel() const;
126 public slots:
void SetMaxForwardVel(
double _velocity);
129 signals:
void MaxForwardVelChanged();
133 public: Q_INVOKABLE
double MaxVerticalVel() const;
137 public slots:
void SetMaxVerticalVel(
double _velocity);
140 signals:
void MaxVerticalVelChanged();
144 public: Q_INVOKABLE
double MaxYawVel() const;
148 public slots:
void SetMaxYawVel(
double _velocity);
151 signals:
void MaxYawVelChanged();
155 public slots:
void OnKeySwitch(
bool _checked);
158 public:
void SetKeyScale();
162 private:
std::unique_ptr<TeleopPrivate> dataPtr;
#define Teleop_EXPORTS_API
Definition: Teleop.hh:29
Publish teleop stokes to a user selected topic, or to '/cmd_vel' if no topic is selected....
Definition: Teleop.hh:52
Base class for Gazebo GUI plugins.
Definition: gz/gui/Plugin.hh:54
Definition: gz/gui/Application.hh:35