main_window.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright 2020 ROBOTIS CO., LTD.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *******************************************************************************/
16 
17 /* Authors: Ryan Shim */
18 
19 #ifndef TURTLEBOT3_MANIPULATION_GUI_MAIN_WINDOW_H
20 #define TURTLEBOT3_MANIPULATION_GUI_MAIN_WINDOW_H
21 
22 /*****************************************************************************
23 ** Includes
24 *****************************************************************************/
25 
26 #include <QMainWindow>
27 #include "ui_main_window.h"
28 #include "qnode.hpp"
29 #include <QTimer>
30 #include <eigen3/Eigen/Eigen>
31 
32 /*****************************************************************************
33 ** Namespace
34 *****************************************************************************/
35 
37 
38 /*****************************************************************************
39 ** Interface [MainWindow]
40 *****************************************************************************/
41 class MainWindow : public QMainWindow {
42 Q_OBJECT
43 
44 public:
45  MainWindow(int argc, char** argv, QWidget *parent = 0);
46  ~MainWindow();
47  void writeLog(QString str);
48 
49 public Q_SLOTS:
50  void timerCallback();
51  void on_btn_timer_start_clicked(void);
52  void on_btn_init_pose_clicked(void);
53  void on_btn_home_pose_clicked(void);
54  void on_btn_gripper_open_clicked(void);
60  void on_btn_set_gripper_clicked(void);
61 
62  void tabSelected();
63 
64 private:
65  Ui::MainWindowDesign ui;
67  QTimer *timer;
68 };
69 
70 } // namespace turtlebot3_manipulation_gui
71 
72 #endif // TURTLEBOT3_MANIPULATION_GUI_MAIN_WINDOW_H
MainWindow(int argc, char **argv, QWidget *parent=0)
Definition: main_window.cpp:40


turtlebot3_manipulation_gui
Author(s): Darby Lim , Ryan Shim
autogenerated on Sun May 10 2020 03:49:19