18 #ifndef IGNITION_GUI_PLUGINS_TELEOP_HH_ 19 #define IGNITION_GUI_PLUGINS_TELEOP_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) 60 WRITE setLinearDirection
61 NOTIFY LinearDirectionChanged
68 WRITE setAngularDirection
69 NOTIFY AngularDirectionChanged
76 public: virtual ~Teleop();
79 public: virtual
void LoadConfig(const
tinyxml2::XMLElement *) override;
82 protected:
bool eventFilter(
QObject *_obj,
QEvent *_event) override;
85 public slots:
void OnTeleopTwist();
91 public: Q_INVOKABLE
int LinearDirection() const;
96 public: Q_INVOKABLE
void setLinearDirection(
int _linearDir);
99 signals:
void LinearDirectionChanged();
105 public: Q_INVOKABLE
int AngularDirection() const;
110 public: Q_INVOKABLE
void setAngularDirection(
int _angularDir);
113 signals:
void AngularDirectionChanged();
118 public slots:
void OnTopicSelection(const
QString &_topic);
122 public slots:
void OnLinearVelSelection(
double _velocity);
126 public slots:
void OnAngularVelSelection(
double _velocity);
130 public slots:
void OnKeySwitch(
bool _checked);
134 public slots:
void OnSlidersSwitch(
bool _checked);
137 public:
void SetKeyDirection();
141 private:
std::unique_ptr<TeleopPrivate> dataPtr;
#define Teleop_EXPORTS_API
Definition: Teleop.hh:29
Definition: Application.hh:35
Base class for Ignition GUI plugins.
Definition: Plugin.hh:54