toolbox_quaternion.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QtPlugin>
4 #include <thread>
7 #include "quaternion_to_rpy.h"
8 
9 namespace Ui
10 {
11 class quaternion_to_RPY;
12 }
13 
15 {
16  Q_OBJECT
17  Q_PLUGIN_METADATA(IID "facontidavide.PlotJuggler3.Toolbox")
18  Q_INTERFACES(PJ::ToolboxPlugin)
19 
20 public:
22 
23  ~ToolboxQuaternion() override;
24 
25  const char* name() const override
26  {
27  return "Quaternion to RPY";
28  }
29 
30  void init(PJ::PlotDataMapRef& src_data, PJ::TransformsMap& transform_map) override;
31 
32  std::pair<QWidget*, WidgetType> providedWidget() const override;
33 
34 public slots:
35 
36  bool onShowWidget() override;
37 
38 private slots:
39 
40  void on_pushButtonSave_clicked();
41 
42  void onParametersChanged();
43 
44  void onClosed();
45 
46 private:
47  QWidget* _widget;
48  Ui::quaternion_to_RPY* ui;
49 
50  bool eventFilter(QObject* obj, QEvent* event) override;
51 
52  QString _dragging_curve;
53 
54  void autoFill(QString prefix);
55 
56  PJ::PlotWidgetBase* _plot_widget = nullptr;
57 
58  PJ::PlotDataMapRef* _plot_data = nullptr;
59 
60  PJ::TransformsMap* _transforms = nullptr;
61 
62  std::unique_ptr<PlotData> _preview_data_roll;
63  std::unique_ptr<PlotData> _preview_data_pitch;
64  std::unique_ptr<PlotData> _preview_data_yaw;
65 
67  {
69  SAVE
70  };
71 
72  bool generateRPY(GenerateType type);
73 };
std::unique_ptr< PlotData > _preview_data_roll
void init(const M_string &remappings)
std::unordered_map< std::string, std::shared_ptr< TransformFunction > > TransformsMap
type
Definition: core.h:1059
std::unique_ptr< PlotData > _preview_data_yaw
std::unique_ptr< PlotData > _preview_data_pitch
Ui::quaternion_to_RPY * ui
const char * name() const override
Name of the plugin type, NOT the particular instance.


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:53