slam_toolbox_rviz_plugin.h
Go to the documentation of this file.
1 /*
2  * slam_toolbox
3  * Copyright (c) 2018, Simbe Robotics, Inc.
4  *
5  * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
6  * COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
7  * COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
8  * AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
9  *
10  * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO
11  * BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS
12  * CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
13  * CONDITIONS.
14  *
15  */
16 
17 /* Author: Steven Macenski */
18 
19 #ifndef SLAM_TOOLBOX_PANEL_H
20 #define SLAM_TOOLBOX_PANEL_H
21 
22 // ROS
23 #include <ros/ros.h>
24 #include <rviz/panel.h>
25 // STL
26 #include <stdlib.h>
27 #include <stdio.h>
28 // QT
29 #include <QPushButton>
30 #include <QCheckBox>
31 #include <QLineEdit>
32 #include <QComboBox>
33 #include <QVBoxLayout>
34 #include <QHBoxLayout>
35 #include <QtGui>
36 #include <QLabel>
37 #include <QFrame>
38 #include <QRadioButton>
39 
40 #include <thread>
41 
42 // msgs
44 
45 class QLineEdit;
46 class QSpinBox;
47 class QComboBox;
48 
49 #include <rviz/panel.h>
50 
51 namespace slam_toolbox
52 {
53 
55 {
60 };
61 
63 {
64  Q_OBJECT
65 
66 public:
67  SlamToolboxPlugin(QWidget* parent = 0);
69 
70 public Q_SLOTS:
71 protected Q_SLOTS:
72  void ClearChanges();
73  void SaveChanges();
74  void SaveMap();
75  void ClearQueue();
76  void InteractiveCb(int state);
77  void PauseMeasurementsCb(int state);
78  void FirstNodeMatchCb();
79  void PoseEstMatchCb();
80  void CurEstMatchCb();
81  void LocalizeCb();
82  void LoadSubmap();
83  void GenerateMap();
84  void SerializeMap();
85  void DeserializeMap();
86 
88 
89 protected:
90  QVBoxLayout* _vbox;
91  QHBoxLayout* _hbox1;
92  QHBoxLayout* _hbox2;
93  QHBoxLayout* _hbox3;
94  QHBoxLayout* _hbox4;
95  QHBoxLayout* _hbox5;
96  QHBoxLayout* _hbox6;
97  QHBoxLayout* _hbox7;
98  QHBoxLayout* _hbox8;
99  QHBoxLayout* _hbox9;
100  QHBoxLayout* _hbox10;
101 
102  QPushButton* _button1;
103  QPushButton* _button2;
104  QPushButton* _button3;
105  QPushButton* _button4;
106  QPushButton* _button5;
107  QPushButton* _button6;
108  QPushButton* _button7;
109  QPushButton* _button8;
110 
111  QLineEdit* _line1;
112  QLineEdit* _line2;
113  QLineEdit* _line3;
114  QLineEdit* _line4;
115  QLineEdit* _line5;
116  QLineEdit* _line6;
117  QLineEdit* _line7;
118 
119  QCheckBox* _check1;
120  QCheckBox* _check2;
121 
122  QRadioButton* _radio1;
123  QRadioButton* _radio2;
124  QRadioButton* _radio3;
125  QRadioButton* _radio4;
126 
127  QLabel* _label1;
128  QLabel* _label2;
129  QLabel* _label4;
130  QLabel* _label5;
131  QLabel* _label6;
132  QLabel* _label7;
133  QLabel* _label8;
134 
135  QFrame* _line;
136 
138 
139  std::thread* _thread;
140 
142 };
143 
144 } // end namespace
145 
146 #endif


slam_toolbox
Author(s): Steve Macenski
autogenerated on Mon Feb 28 2022 23:46:49