main_window.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright 2019 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: Darby Lim, Hye-Jong KIM, Ryan Shim, Yong-Ho Na */
18 
19 #ifndef OPEN_MANIPULATOR_P_CONTROL_GUI_MAIN_WINDOW_H
20 #define OPEN_MANIPULATOR_P_CONTROL_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);
69 
70  void tabSelected();
71 
72 private:
73  Ui::MainWindowDesign ui;
75  QTimer *timer;
76 };
77 
78 } // namespace open_manipulator_p_control_gui
79 
80 #endif // OPEN_MANIPULATOR_P_CONTROL_GUI_MAIN_WINDOW_H
MainWindow(int argc, char **argv, QWidget *parent=0)
Definition: main_window.cpp:40


open_manipulator_p_control_gui
Author(s): Ryan Shim , Yong-Ho Na , Hye-Jong KIM
autogenerated on Thu Oct 22 2020 03:16:32