EtherCAT Graphical User Interface Code 0.0.1
EtherCAT GUI that uses different communication protocols with EtherCAT Master server.
Loading...
Searching...
No Matches
rviz_widget.h
1#ifndef RVIZ_WIDGET_H
2#define RVIZ_WIDGET_H
3
4#include <rviz/visualization_manager.h>
5#include <rviz/render_panel.h>
6#include <rviz/display.h>
7
8#include <yaml-cpp/yaml.h>
9
10class RvizWidget : public QWidget
11{
12
13 Q_OBJECT
14
15public:
16
17 RvizWidget(QWidget * parent = nullptr);
18
19 //bool init(Args&);
20 void update();
21 QString name();
22
23 //~RvizWidget();
24
25private:
26
27 rviz::VisualizationManager* _manager;
28 rviz::RenderPanel* _render_panel;
29 rviz::Display* _robot_model;
30 rviz::Display* _robot_marker_array;
31
32
33 // QWidget interface
34protected:
35 void contextMenuEvent(QContextMenuEvent* event) override;
36
37 // CustomQtWidget interface
38public:
39 bool loadConfig(const YAML::Node& cfg);
40 bool saveConfig(YAML::Node& cfg);
41 bool usesOpenGl();
42};
43
44#endif // RVIZ_WIDGET_H
Definition rviz_widget.h:11