15 | #include "../include/my_qt_gui_publisher/main_window.hpp"
16 |
17 | /*****************************************************************************
18 | ** Namespaces
19 | *****************************************************************************/
20 |
21 | namespace my_qt_gui_publisher {
22 |
23 | using namespace Qt;
24 |
25 | /*****************************************************************************
26 | ** Implementation [MainWindow]
27 | *****************************************************************************/
28 |
29 | MainWindow::MainWindow(int argc, char** argv, QWidget *parent)
30 | : QMainWindow(parent)
31 | , qnode(argc,argv)
32 | {
33 | ui.setupUi(this); // Calling this incidentally connects all ui's triggers to on_...() callbacks in this class.
34 | QObject::connect(ui.actionAbout_Qt, SIGNAL(triggered(bool)), qApp, SLOT(aboutQt())); // qApp is a global variable for the application
35 |
36 | ReadSettings();
37 | setWindowIcon(QIcon(":/images/icon.png"));
38 | ui.tab_manager->setCurrentIndex(0); // ensure the first tab is showing - qt-designer should have this already hardwired, but often loses it (settings?).
39 | QObject::connect(&qnode, SIGNAL(rosShutdown()), this, SLOT(close()));
40 |
41 | /*********************
42 | ** Logging
43 | **********************/
44 | ui.view_logging->setModel(qnode.loggingModel());
45 | QObject::connect(&qnode, SIGNAL(loggingUpdated()), this, SLOT(updateLoggingView()));
46 |
47 | /*********************
48 | ** Auto Start
49 | **********************/
50 | if ( ui.checkbox_remember_settings->isChecked() ) {
51 | on_button_connect_clicked(true);
52 | }
53 | }
54 |
55 | MainWindow::~MainWindow() {}
56 |
57 | /*****************************************************************************
58 | ** Implementation [Slots]
59 | *****************************************************************************/
60 |
61 | void MainWindow::showNoMasterMessage() {
62 | QMessageBox msgBox;
63 | msgBox.setText("Couldn't find the ros master.");
64 | msgBox.exec();
65 | close();
66 | }
67 |
68 | /*
69 | * These triggers whenever the button is clicked, regardless of whether it
70 | * is already checked or not.
71 | */
72 |
73 | void MainWindow::on_button_connect_clicked(bool check ) {
74 | if ( ui.checkbox_use_environment->isChecked() ) {
75 | if ( !qnode.init() ) {
76 | showNoMasterMessage();
77 | } else {
78 | ui.button_connect->setEnabled(false);
79 | }
80 | } else {
81 | if ( ! qnode.init(ui.line_edit_master->text().toStdString(),
82 | ui.line_edit_host->text().toStdString()) ) {
83 | showNoMasterMessage();
84 | } else {
85 | ui.button_connect->setEnabled(false);
86 | ui.line_edit_master->setReadOnly(true);
87 | ui.line_edit_host->setReadOnly(true);
88 | ui.line_edit_topic->setReadOnly(true);
89 | }
90 | }
91 | }
92 |
93 |
94 | void MainWindow::on_checkbox_use_environment_stateChanged(int state) {
95 | bool enabled;
96 | if ( state == 0 ) {
97 | enabled = true;
98 | } else {
99 | enabled = false;
100 | }
101 | ui.line_edit_master->setEnabled(enabled);
102 | ui.line_edit_host->setEnabled(enabled);
103 | //ui.line_edit_topic->setEnabled(enabled);
104 | }
105 |
106 | /*****************************************************************************
107 | ** Implemenation [Slots][manually connected]
108 | *****************************************************************************/
109 |
110 | /**
111 | * This function is signalled by the underlying model. When the model changes,
112 | * this will drop the cursor down to the last line in the QListview to ensure
113 | * the user can always see the latest log message.
114 | */
115 | void MainWindow::updateLoggingView() {
116 | ui.view_logging->scrollToBottom();
117 | }
118 |
119 | /*****************************************************************************
120 | ** Implementation [Menu]
121 | *****************************************************************************/
122 |
123 | void MainWindow::on_actionAbout_triggered() {
124 | QMessageBox::about(this, tr("About ..."),tr("PACKAGE_NAME Test Program 0.10
Copyright Yujin Robot
This package needs an about description.
"));
125 | }
126 |
127 | /*****************************************************************************
128 | ** Implementation [Configuration]
129 | *****************************************************************************/
130 |
131 | void MainWindow::ReadSettings() {
132 | QSettings settings("Qt-Ros Package", "my_qt_gui_publisher");
133 | restoreGeometry(settings.value("geometry").toByteArray());
134 | restoreState(settings.value("windowState").toByteArray());
135 | QString master_url = settings.value("master_url",QString("http://192.168.1.2:11311/")).toString();
136 | QString host_url = settings.value("host_url", QString("192.168.1.3")).toString();
137 | //QString topic_name = settings.value("topic_name", QString("/chatter")).toString();
138 | ui.line_edit_master->setText(master_url);
139 | ui.line_edit_host->setText(host_url);
140 | //ui.line_edit_topic->setText(topic_name);
141 | bool remember = settings.value("remember_settings", false).toBool();
142 | ui.checkbox_remember_settings->setChecked(remember);
143 | bool checked = settings.value("use_environment_variables", false).toBool();
144 | ui.checkbox_use_environment->setChecked(checked);
145 | if ( checked ) {
146 | ui.line_edit_master->setEnabled(false);
147 | ui.line_edit_host->setEnabled(false);
148 | //ui.line_edit_topic->setEnabled(false);
149 | }
150 | }
151 |
152 | void MainWindow::WriteSettings() {
153 | QSettings settings("Qt-Ros Package", "my_qt_gui_publisher");
154 | settings.setValue("master_url",ui.line_edit_master->text());
155 | settings.setValue("host_url",ui.line_edit_host->text());
156 | //settings.setValue("topic_name",ui.line_edit_topic->text());
157 | settings.setValue("use_environment_variables",QVariant(ui.checkbox_use_environment->isChecked()));
158 | settings.setValue("geometry", saveGeometry());
159 | settings.setValue("windowState", saveState());
160 | settings.setValue("remember_settings",QVariant(ui.checkbox_remember_settings->isChecked()));
161 |
162 | }
163 |
164 | void MainWindow::closeEvent(QCloseEvent *event)
165 | {
166 | WriteSettings();
167 | QMainWindow::closeEvent(event);
168 | }
169 |
170 | } // namespace my_qt_gui_publisher
171 |
172 |
--------------------------------------------------------------------------------
/QtROS_GUI/my_qt_gui_subscriber/src/main_window.cpp:
--------------------------------------------------------------------------------
1 | /**
2 | * @file /src/main_window.cpp
3 | *
4 | * @brief Implementation for the qt gui.
5 | *
6 | * @date February 2011
7 | **/
8 | /*****************************************************************************
9 | ** Includes
10 | *****************************************************************************/
11 |
12 | #include
13 | #include
14 | #include
15 | #include "../include/my_qt_gui_subscriber/main_window.hpp"
16 |
17 | /*****************************************************************************
18 | ** Namespaces
19 | *****************************************************************************/
20 |
21 | namespace my_qt_gui_subscriber {
22 |
23 | using namespace Qt;
24 |
25 | /*****************************************************************************
26 | ** Implementation [MainWindow]
27 | *****************************************************************************/
28 |
29 | MainWindow::MainWindow(int argc, char** argv, QWidget *parent)
30 | : QMainWindow(parent)
31 | , qnode(argc,argv)
32 | {
33 | ui.setupUi(this); // Calling this incidentally connects all ui's triggers to on_...() callbacks in this class.
34 | QObject::connect(ui.actionAbout_Qt, SIGNAL(triggered(bool)), qApp, SLOT(aboutQt())); // qApp is a global variable for the application
35 |
36 | ReadSettings();
37 | setWindowIcon(QIcon(":/images/icon.png"));
38 | ui.tab_manager->setCurrentIndex(0); // ensure the first tab is showing - qt-designer should have this already hardwired, but often loses it (settings?).
39 | QObject::connect(&qnode, SIGNAL(rosShutdown()), this, SLOT(close()));
40 |
41 | /*********************
42 | ** Logging
43 | **********************/
44 | ui.view_logging->setModel(qnode.loggingModel());
45 | QObject::connect(&qnode, SIGNAL(loggingUpdated()), this, SLOT(updateLoggingView()));
46 |
47 | /*********************
48 | ** Auto Start
49 | **********************/
50 | if ( ui.checkbox_remember_settings->isChecked() ) {
51 | on_button_connect_clicked(true);
52 | }
53 | }
54 |
55 | MainWindow::~MainWindow() {}
56 |
57 | /*****************************************************************************
58 | ** Implementation [Slots]
59 | *****************************************************************************/
60 |
61 | void MainWindow::showNoMasterMessage() {
62 | QMessageBox msgBox;
63 | msgBox.setText("Couldn't find the ros master.");
64 | msgBox.exec();
65 | close();
66 | }
67 |
68 | /*
69 | * These triggers whenever the button is clicked, regardless of whether it
70 | * is already checked or not.
71 | */
72 |
73 | void MainWindow::on_button_connect_clicked(bool check ) {
74 | if ( ui.checkbox_use_environment->isChecked() ) {
75 | if ( !qnode.init() ) {
76 | showNoMasterMessage();
77 | } else {
78 | ui.button_connect->setEnabled(false);
79 | }
80 | } else {
81 | if ( ! qnode.init(ui.line_edit_master->text().toStdString(),
82 | ui.line_edit_host->text().toStdString()) ) {
83 | showNoMasterMessage();
84 | } else {
85 | ui.button_connect->setEnabled(false);
86 | ui.line_edit_master->setReadOnly(true);
87 | ui.line_edit_host->setReadOnly(true);
88 | ui.line_edit_topic->setReadOnly(true);
89 | }
90 | }
91 | }
92 |
93 |
94 | void MainWindow::on_checkbox_use_environment_stateChanged(int state) {
95 | bool enabled;
96 | if ( state == 0 ) {
97 | enabled = true;
98 | } else {
99 | enabled = false;
100 | }
101 | ui.line_edit_master->setEnabled(enabled);
102 | ui.line_edit_host->setEnabled(enabled);
103 | //ui.line_edit_topic->setEnabled(enabled);
104 | }
105 |
106 | /*****************************************************************************
107 | ** Implemenation [Slots][manually connected]
108 | *****************************************************************************/
109 |
110 | /**
111 | * This function is signalled by the underlying model. When the model changes,
112 | * this will drop the cursor down to the last line in the QListview to ensure
113 | * the user can always see the latest log message.
114 | */
115 | void MainWindow::updateLoggingView() {
116 | ui.view_logging->scrollToBottom();
117 | }
118 |
119 | /*****************************************************************************
120 | ** Implementation [Menu]
121 | *****************************************************************************/
122 |
123 | void MainWindow::on_actionAbout_triggered() {
124 | QMessageBox::about(this, tr("About ..."),tr("PACKAGE_NAME Test Program 0.10
Copyright Yujin Robot
This package needs an about description.
"));
125 | }
126 |
127 | /*****************************************************************************
128 | ** Implementation [Configuration]
129 | *****************************************************************************/
130 |
131 | void MainWindow::ReadSettings() {
132 | QSettings settings("Qt-Ros Package", "my_qt_gui_subscriber");
133 | restoreGeometry(settings.value("geometry").toByteArray());
134 | restoreState(settings.value("windowState").toByteArray());
135 | QString master_url = settings.value("master_url",QString("http://192.168.1.2:11311/")).toString();
136 | QString host_url = settings.value("host_url", QString("192.168.1.3")).toString();
137 | //QString topic_name = settings.value("topic_name", QString("/chatter")).toString();
138 | ui.line_edit_master->setText(master_url);
139 | ui.line_edit_host->setText(host_url);
140 | //ui.line_edit_topic->setText(topic_name);
141 | bool remember = settings.value("remember_settings", false).toBool();
142 | ui.checkbox_remember_settings->setChecked(remember);
143 | bool checked = settings.value("use_environment_variables", false).toBool();
144 | ui.checkbox_use_environment->setChecked(checked);
145 | if ( checked ) {
146 | ui.line_edit_master->setEnabled(false);
147 | ui.line_edit_host->setEnabled(false);
148 | //ui.line_edit_topic->setEnabled(false);
149 | }
150 | }
151 |
152 | void MainWindow::WriteSettings() {
153 | QSettings settings("Qt-Ros Package", "my_qt_gui_subscriber");
154 | settings.setValue("master_url",ui.line_edit_master->text());
155 | settings.setValue("host_url",ui.line_edit_host->text());
156 | //settings.setValue("topic_name",ui.line_edit_topic->text());
157 | settings.setValue("use_environment_variables",QVariant(ui.checkbox_use_environment->isChecked()));
158 | settings.setValue("geometry", saveGeometry());
159 | settings.setValue("windowState", saveState());
160 | settings.setValue("remember_settings",QVariant(ui.checkbox_remember_settings->isChecked()));
161 |
162 | }
163 |
164 | void MainWindow::closeEvent(QCloseEvent *event)
165 | {
166 | WriteSettings();
167 | QMainWindow::closeEvent(event);
168 | }
169 |
170 | } // namespace my_qt_gui_subscriber
171 |
172 |
--------------------------------------------------------------------------------
/developping_log.md:
--------------------------------------------------------------------------------
1 | # Developping Log
2 |
3 | ## 1. QT SDK 5.0 Installation
4 |
5 | http://www.wikihow.com/Install-Qt-SDK-on-Ubuntu-Linux
6 |
7 | *First Qt program*
8 |
9 | http://www.wikihow.com/Create-Your-First-Qt-Program-on-Ubuntu-Linux
10 |
11 | # 2. Qtcreator installation in terminal
12 |
13 | ```
14 | $ sudo apt-get install ros-indigo-qt-create
15 | $ sudo apt-get install ros-indigo-qt-build
16 | $ sudo apt-get install qtcreator
17 | ```
18 |
19 | ## 3. Prepare the ros environment
20 |
21 | ```
22 | $ mkdir -p ~/ros_ws/src
23 | $ cd ~/ros_ws/src
24 | $ catkin_init_workspace
25 | $ cd ~/ros_ws/
26 | $ catkin_make
27 | $ echo "source ~/ros_ws/devel/setup.bash" >> ~/.bashrc
28 | ```
29 |
30 | ## 4. Create qt_ros template
31 |
32 | ```
33 | $ cd ~/ros_ws/src
34 | $ catkin_create_qt_pkg qdude
35 | ```
36 |
37 | ## 5. Start qtcreator in terminal
38 |
39 | ```
40 | $ qtcreator
41 | ```
42 |
43 | ## 6. How to open a ros project in qtcreator?
44 |
45 | http://xiaoyatec.com/2015/10/13/ros%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E4%B9%8Bqt-creator%E4%BA%8C/
46 |
47 | http://wiki.ros.org/IDEs#QtCreator
48 |
49 | #### NOTE:
50 |
51 | 1) rosbuild
52 |
53 | To open a rosbuild ROS package code as a project, use "Open File or Project" and select the CMakeLists.txt of your ROS package. Take care to select the "[package_name]/build" directory as the build directory, which is the ROS default. On the next screen click 'Run Cmake' and then Finish. This may not show all the folders such as launch and include in the project tree. If you want to choose the files manually, goto File->New File or Project->Import Project->Import Existing Project and selected to choose all files/folders included in the project.
54 |
55 | 2) catkin_make
56 |
57 | To open a catkin code as a project, use "Open File or Project" and select the top level CMakeLists.txt of the catkin workspace (e.g. "src/CMakeLists.txt"). Select the catkin build folder as the build directory and 'Run CMake' (in order to enable debugging add following line into arguments edit box: -DCMAKE_BUILD_TYPE=Debug).
58 |
59 | Recently this has started to fail, because the main CMakeLists is a symlink to a non writtable location. The workaround is to make a copy to toplevel.cmake instead of using a symlink. And if you want the project to be named something else than "Project" then add a line at the top with "project(MyProjectName)"
60 |
61 | To be able to modify all the files in the workspace add those lines in "src/CMakeLists.txt" :
62 |
63 | **Add all files in subdirectories of the project in a dummy_target so qtcreator have access to all files**
64 |
65 | ```
66 | FILE(GLOB children ${CMAKE_SOURCE_DIR}/*)
67 | FOREACH(child ${children})
68 | IF(IS_DIRECTORY ${child})
69 | file(GLOB_RECURSE dir_files "${child}/*")
70 | LIST(APPEND extra_files ${dir_files})
71 | ENDIF()
72 | ENDFOREACH()
73 | add_custom_target(dummy_${PROJECT_NAME} SOURCES ${extra_files})
74 | ```
75 |
76 | You may specify the correct catkin devel and install spaces at Projects->Build Settings by providing the following CMake arguments: `-DCATKIN_DEVEL_PREFIX=../devel -DCMAKE_INSTALL_PREFIX=../install`
77 |
78 | 3) catkin tools
79 |
80 | With the new catkin_tools, there is no longer a top level make file for the whole workspace. Instead, open each package as an individual project in QtCreator. The trick is to set the build folder to ws/build/your_package instead of ws/build as before.
81 |
82 | =============================================================================================
83 |
84 | **create rqt plugin pkg**
85 |
86 | http://wiki.ros.org/rqt/Tutorials/Create%20your%20new%20rqt%20plugin
87 |
88 | catkin_create_pkg rqt_mypkg roscpp rqt_gui rqt_gui_cpp
89 |
90 | **Writing a C++ Plugin**
91 |
92 | http://wiki.ros.org/rqt/Tutorials/Writing%20a%20C%2B%2B%20Plugin
93 |
94 | **Using .ui file in rqt plugin**
95 |
96 | http://wiki.ros.org/rqt/Tutorials/Using%20.ui%20file%20in%20rqt%20plugin
97 |
98 | **Add a new ROS publisher node to a QTcreator project which already contains a ROS subscriber node**
99 |
100 | http://answers.ros.org/question/212459/add-a-new-ros-publisher-node-to-a-qtcreator-project-which-already-contains-a-ros-subscriber-node/
101 |
102 |
103 | =============================================================================================
104 |
105 | #### useful resources in github:
106 |
107 | https://github.com/ros-visualization
108 |
109 | https://github.com/ros-visualization/rqt_common_plugins.git
110 |
111 | https://github.com/ros-visualization/rqt_robot_plugins.git
112 |
113 | http://docs.ros.org/electric/api/qt_tutorials/html/index.html
114 |
115 | =============================================================================================
116 |
117 | #### Possible errors:
118 |
119 | 1. CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
120 |
121 | ```
122 | Could not find a package configuration file provided by "qt_build" with any of the following names:
123 |
124 | qt_buildConfig.cmake
125 | qt_build-config.cmake
126 |
127 | Add the installation prefix of "qt_build" to CMAKE_PREFIX_PATH or set "qt_build_DIR" to a directory containing one of the above files. If "qt_build" provides a separate development package or SDK, be sure it has been installed.
128 | ```
129 |
130 | **Solve:**
131 |
132 | ```
133 | sudo apt-get install ros-indigo-qt-build
134 | ```
135 |
136 | Referring to:
137 |
138 | http://answers.ros.org/question/172056/failed-to-include-qt-ros-from-qt_build/
139 |
140 | 2. catkin_make: command not found
141 |
142 | ```
143 | $ source /opt/ros/indigo/setup.bash
144 | ```
145 |
146 | to add to your ~/.bashrc:
147 |
148 | ```
149 | echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
150 | source ~/.bashrc
151 | ```
152 |
153 | 3. CMake Error: The source "/home/peng/ros_ws/src/qtros/CMakeLists.txt" does not match the source "/home/peng/ros_ws/src/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
154 |
155 | **Search:**
156 |
157 | CMake Error: The source .. does not match the source .. used to generate cache. Re-run cmake with a different source directory.
158 |
159 | **Solve:**
160 |
161 | Delete CMakeCache.txt in the folder you executing cmake.
162 |
163 | 4. If roscd says similar to roscd: No such package/stack 'beginner_tutorials' , you will need to source the environment setup file like you did at the end of the create_a_workspace tutorial:
164 |
165 | ```
166 | $ source devel/setup.bash
167 | ```
168 |
169 | 5. source ... No such dir and file...
170 |
171 | **Solve:**
172 |
173 | To set your workspace permanently, open your .bashrc file in a text editor.
174 |
175 | for example -- gedit ~/.bashrc -- and add
176 |
177 | export ROS_PACKAGE_PATH=/your/path/to/workspace:$ROS_PACKAGE_PATH
178 |
179 | 6. http://stackoverflow.com/questions/2752352/how-to-add-include-path-in-qt-creator
180 |
181 | ===============================================================================================
182 |
183 | ## Other links that may useful:
184 |
185 | 1. rqt plugin
186 |
187 | http://wiki.ros.org/rqt/Tutorials/Writing%20a%20C%2B%2B%20Plugin
188 |
189 | 2. ros ide built by QT Creator & Communication Example
190 |
191 | http://my.phirobot.com/blog/2013-12-ros_ide_qtcreator.htmlc
192 |
193 | 3. project set
194 |
195 | http://blog.csdn.net/zyh821351004/article/details/43672887
196 |
197 |
198 | ===================
199 |
200 | https://aur.archlinux.org/packages/ros-indigo-qt-gui/
201 |
202 |
--------------------------------------------------------------------------------
/QtROS_GUI/button_test/src/main_window.cpp:
--------------------------------------------------------------------------------
1 | /**
2 | * @file /src/main_window.cpp
3 | *
4 | * @brief Implementation for the qt gui.
5 | *
6 | * @date February 2011
7 | **/
8 | /*****************************************************************************
9 | ** Includes
10 | *****************************************************************************/
11 |
12 | #include
13 | #include
14 | #include
15 | #include "../include/button_test/main_window.hpp"
16 |
17 | /*****************************************************************************
18 | ** Namespaces
19 | *****************************************************************************/
20 |
21 | namespace button_test {
22 |
23 | using namespace Qt;
24 |
25 | /*****************************************************************************
26 | ** Implementation [MainWindow]
27 | *****************************************************************************/
28 |
29 | MainWindow::MainWindow(int argc, char** argv, QWidget *parent)
30 | : QMainWindow(parent)
31 | , qnode(argc,argv) {
32 | ui.setupUi(this); // Calling this incidentally connects all ui's triggers to on_...() callbacks in this class.
33 | QObject::connect(ui.actionAbout_Qt, SIGNAL(triggered(bool)), qApp, SLOT(aboutQt())); // qApp is a global variable for the application
34 |
35 | ReadSettings();
36 | setWindowIcon(QIcon(":/images/icon.png"));
37 | ui.tab_manager->setCurrentIndex(0); // ensure the first tab is showing - qt-designer should have this already hardwired, but often loses it (settings?).
38 | QObject::connect(&qnode, SIGNAL(rosShutdown()), this, SLOT(close()));
39 |
40 | /*********************
41 | ** Logging
42 | **********************/
43 | ui.view_logging->setModel(qnode.loggingModel());
44 | QObject::connect(&qnode, SIGNAL(loggingUpdated()), this, SLOT(updateLoggingView()));
45 |
46 | /*********************
47 | ** Auto Start
48 | **********************/
49 | if ( ui.checkbox_remember_settings->isChecked() ) {
50 | on_button_connect_clicked(true);
51 | }
52 |
53 | /*******************************
54 | ** Button test - explicit way
55 | ********************************/
56 | QObject::connect(ui.button_left, SIGNAL(clicked()), this, SLOT(moveLeft()));
57 | }
58 |
59 | MainWindow::~MainWindow() {}
60 |
61 | /*****************************************************************************
62 | ** Implementation [Slots]
63 | *****************************************************************************/
64 |
65 | void MainWindow::showNoMasterMessage() {
66 | QMessageBox msgBox;
67 | msgBox.setText("Couldn't find the ros master.");
68 | msgBox.exec();
69 | close();
70 | }
71 |
72 | void MainWindow::showButtonTestMessage() {
73 | QMessageBox msgBox;
74 | msgBox.setText("Button test ...");
75 | msgBox.exec();
76 | //close();
77 | }
78 |
79 | /*
80 | * These triggers whenever the button is clicked, regardless of whether it
81 | * is already checked or not.
82 | */
83 |
84 | void MainWindow::on_button_connect_clicked(bool check ) {
85 | if ( ui.checkbox_use_environment->isChecked() ) {
86 | if ( !qnode.init() ) {
87 | showNoMasterMessage();
88 | } else {
89 | ui.button_connect->setEnabled(false);
90 | }
91 | } else {
92 | if ( ! qnode.init(ui.line_edit_master->text().toStdString(),
93 | ui.line_edit_host->text().toStdString()) ) {
94 | showNoMasterMessage();
95 | } else {
96 | ui.button_connect->setEnabled(false);
97 | ui.line_edit_master->setReadOnly(true);
98 | ui.line_edit_host->setReadOnly(true);
99 | ui.line_edit_topic->setReadOnly(true);
100 | }
101 | }
102 | }
103 |
104 | void MainWindow::on_button_test_clicked(bool check ) {
105 | showButtonTestMessage();
106 | }
107 |
108 | void MainWindow::on_checkbox_use_environment_stateChanged(int state) {
109 | bool enabled;
110 | if ( state == 0 ) {
111 | enabled = true;
112 | } else {
113 | enabled = false;
114 | }
115 | ui.line_edit_master->setEnabled(enabled);
116 | ui.line_edit_host->setEnabled(enabled);
117 | //ui.line_edit_topic->setEnabled(enabled);
118 | }
119 |
120 | /*****************************************************************************
121 | ** Implemenation [Slots][manually connected]
122 | *****************************************************************************/
123 |
124 | /**
125 | * This function is signalled by the underlying model. When the model changes,
126 | * this will drop the cursor down to the last line in the QListview to ensure
127 | * the user can always see the latest log message.
128 | */
129 | void MainWindow::updateLoggingView() {
130 | ui.view_logging->scrollToBottom();
131 | }
132 |
133 | void MainWindow::moveLeft() {
134 | logging_model = qnode.loggingModel();
135 | logging_model->insertRows(logging_model->rowCount(), 1);
136 | std::stringstream logging_model_msg;
137 | logging_model_msg << "move to left ...";
138 | QVariant new_row(QString(logging_model_msg.str().c_str()));
139 | logging_model->setData(logging_model->index(logging_model->rowCount()-1), new_row);
140 |
141 | std::cout << logging_model->rowCount() << std::endl;
142 | std::cout << logging_model_msg.str().c_str() << std::endl;
143 | }
144 |
145 | /*****************************************************************************
146 | ** Implementation [Menu]
147 | *****************************************************************************/
148 |
149 | void MainWindow::on_actionAbout_triggered() {
150 | QMessageBox::about(this, tr("About ..."),tr("PACKAGE_NAME Test Program 0.10
Copyright Yujin Robot
This package needs an about description.
"));
151 | }
152 |
153 | /*****************************************************************************
154 | ** Implementation [Configuration]
155 | *****************************************************************************/
156 |
157 | void MainWindow::ReadSettings() {
158 | QSettings settings("Qt-Ros Package", "button_test");
159 | restoreGeometry(settings.value("geometry").toByteArray());
160 | restoreState(settings.value("windowState").toByteArray());
161 | QString master_url = settings.value("master_url",QString("http://192.168.1.2:11311/")).toString();
162 | QString host_url = settings.value("host_url", QString("192.168.1.3")).toString();
163 | //QString topic_name = settings.value("topic_name", QString("/chatter")).toString();
164 | ui.line_edit_master->setText(master_url);
165 | ui.line_edit_host->setText(host_url);
166 | //ui.line_edit_topic->setText(topic_name);
167 | bool remember = settings.value("remember_settings", false).toBool();
168 | ui.checkbox_remember_settings->setChecked(remember);
169 | bool checked = settings.value("use_environment_variables", false).toBool();
170 | ui.checkbox_use_environment->setChecked(checked);
171 | if ( checked ) {
172 | ui.line_edit_master->setEnabled(false);
173 | ui.line_edit_host->setEnabled(false);
174 | //ui.line_edit_topic->setEnabled(false);
175 | }
176 | }
177 |
178 | void MainWindow::WriteSettings() {
179 | QSettings settings("Qt-Ros Package", "button_test");
180 | settings.setValue("master_url",ui.line_edit_master->text());
181 | settings.setValue("host_url",ui.line_edit_host->text());
182 | //settings.setValue("topic_name",ui.line_edit_topic->text());
183 | settings.setValue("use_environment_variables",QVariant(ui.checkbox_use_environment->isChecked()));
184 | settings.setValue("geometry", saveGeometry());
185 | settings.setValue("windowState", saveState());
186 | settings.setValue("remember_settings",QVariant(ui.checkbox_remember_settings->isChecked()));
187 | }
188 |
189 | void MainWindow::closeEvent(QCloseEvent *event) {
190 | WriteSettings();
191 | QMainWindow::closeEvent(event);
192 | }
193 |
194 | } // namespace button_test
195 |
196 |
--------------------------------------------------------------------------------
/QtROS_GUI/my_qt_gui_publisher/ui/main_window.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | MainWindowDesign
4 |
5 |
6 |
7 | 0
8 | 0
9 | 944
10 | 704
11 |
12 |
13 |
14 | QRosApp
15 |
16 |
17 |
18 | :/images/icon.png:/images/icon.png
19 |
20 |
21 |
22 |
23 |
24 |
25 | -
26 |
27 |
28 |
29 | 100
30 | 0
31 |
32 |
33 |
34 |
35 |
36 |
37 | 0
38 |
39 |
40 |
41 | Ros Communications
42 |
43 |
44 |
-
45 |
46 |
47 |
48 | 0
49 | 0
50 |
51 |
52 |
53 | Logging
54 |
55 |
56 |
-
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
90 |
91 |
92 |
93 |
94 | 0
95 | 0
96 |
97 |
98 |
99 |
100 | 325
101 | 368
102 |
103 |
104 |
105 | Qt::RightDockWidgetArea
106 |
107 |
108 | Command Panel
109 |
110 |
111 | 2
112 |
113 |
114 |
115 | -
116 |
117 |
118 |
119 | 0
120 | 0
121 |
122 |
123 |
124 | QFrame::StyledPanel
125 |
126 |
127 | QFrame::Raised
128 |
129 |
130 |
-
131 |
132 |
133 | Ros Master
134 |
135 |
136 |
-
137 |
138 |
139 | QFrame::StyledPanel
140 |
141 |
142 | QFrame::Raised
143 |
144 |
145 | Ros Master Url
146 |
147 |
148 |
149 | -
150 |
151 |
152 | http://192.168.1.2:11311/
153 |
154 |
155 |
156 | -
157 |
158 |
159 | QFrame::StyledPanel
160 |
161 |
162 | QFrame::Raised
163 |
164 |
165 | Ros IP
166 |
167 |
168 |
169 | -
170 |
171 |
172 | 192.168.1.67
173 |
174 |
175 |
176 | -
177 |
178 |
179 | QFrame::StyledPanel
180 |
181 |
182 | QFrame::Raised
183 |
184 |
185 | Ros Hostname
186 |
187 |
188 |
189 | -
190 |
191 |
192 | false
193 |
194 |
195 | unused
196 |
197 |
198 |
199 | -
200 |
201 |
202 | Qt::RightToLeft
203 |
204 |
205 | Use environment variables
206 |
207 |
208 |
209 | -
210 |
211 |
212 | Qt::RightToLeft
213 |
214 |
215 | Remember settings on startup
216 |
217 |
218 |
219 | -
220 |
221 |
222 | Qt::Horizontal
223 |
224 |
225 |
226 | 170
227 | 21
228 |
229 |
230 |
231 |
232 | -
233 |
234 |
235 | true
236 |
237 |
238 |
239 | 0
240 | 0
241 |
242 |
243 |
244 | Set the target to the current joint trajectory state.
245 |
246 |
247 | Clear all waypoints and set the target to the current joint trajectory state.
248 |
249 |
250 | Connect
251 |
252 |
253 |
254 |
255 |
256 |
257 | -
258 |
259 |
260 | Qt::Vertical
261 |
262 |
263 |
264 | 20
265 | 233
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 | -
274 |
275 |
276 |
277 | 0
278 | 0
279 |
280 |
281 |
282 | Quit
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 | &Quit
292 |
293 |
294 | Ctrl+Q
295 |
296 |
297 | Qt::ApplicationShortcut
298 |
299 |
300 |
301 |
302 | &Preferences
303 |
304 |
305 |
306 |
307 | &About
308 |
309 |
310 |
311 |
312 | About &Qt
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 | action_Quit
322 | triggered()
323 | MainWindowDesign
324 | close()
325 |
326 |
327 | -1
328 | -1
329 |
330 |
331 | 399
332 | 299
333 |
334 |
335 |
336 |
337 | quit_button
338 | clicked()
339 | MainWindowDesign
340 | close()
341 |
342 |
343 | 859
344 | 552
345 |
346 |
347 | 469
348 | 299
349 |
350 |
351 |
352 |
353 |
354 |
--------------------------------------------------------------------------------
/QtROS_GUI/my_qt_gui_subscriber/ui/main_window.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | MainWindowDesign
4 |
5 |
6 |
7 | 0
8 | 0
9 | 944
10 | 704
11 |
12 |
13 |
14 | QRosApp
15 |
16 |
17 |
18 | :/images/icon.png:/images/icon.png
19 |
20 |
21 |
22 |
23 |
24 |
25 | -
26 |
27 |
28 |
29 | 100
30 | 0
31 |
32 |
33 |
34 |
35 |
36 |
37 | 0
38 |
39 |
40 |
41 | Ros Communications
42 |
43 |
44 |
-
45 |
46 |
47 |
48 | 0
49 | 0
50 |
51 |
52 |
53 | Logging
54 |
55 |
56 |
-
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
90 |
91 |
92 |
93 |
94 | 0
95 | 0
96 |
97 |
98 |
99 |
100 | 325
101 | 368
102 |
103 |
104 |
105 | Qt::RightDockWidgetArea
106 |
107 |
108 | Command Panel
109 |
110 |
111 | 2
112 |
113 |
114 |
115 | -
116 |
117 |
118 |
119 | 0
120 | 0
121 |
122 |
123 |
124 | QFrame::StyledPanel
125 |
126 |
127 | QFrame::Raised
128 |
129 |
130 |
-
131 |
132 |
133 | Ros Master
134 |
135 |
136 |
-
137 |
138 |
139 | QFrame::StyledPanel
140 |
141 |
142 | QFrame::Raised
143 |
144 |
145 | Ros Master Url
146 |
147 |
148 |
149 | -
150 |
151 |
152 | http://192.168.1.2:11311/
153 |
154 |
155 |
156 | -
157 |
158 |
159 | QFrame::StyledPanel
160 |
161 |
162 | QFrame::Raised
163 |
164 |
165 | Ros IP
166 |
167 |
168 |
169 | -
170 |
171 |
172 | 192.168.1.67
173 |
174 |
175 |
176 | -
177 |
178 |
179 | QFrame::StyledPanel
180 |
181 |
182 | QFrame::Raised
183 |
184 |
185 | Ros Hostname
186 |
187 |
188 |
189 | -
190 |
191 |
192 | false
193 |
194 |
195 | unused
196 |
197 |
198 |
199 | -
200 |
201 |
202 | Qt::RightToLeft
203 |
204 |
205 | Use environment variables
206 |
207 |
208 |
209 | -
210 |
211 |
212 | Qt::RightToLeft
213 |
214 |
215 | Remember settings on startup
216 |
217 |
218 |
219 | -
220 |
221 |
222 | Qt::Horizontal
223 |
224 |
225 |
226 | 170
227 | 21
228 |
229 |
230 |
231 |
232 | -
233 |
234 |
235 | true
236 |
237 |
238 |
239 | 0
240 | 0
241 |
242 |
243 |
244 | Set the target to the current joint trajectory state.
245 |
246 |
247 | Clear all waypoints and set the target to the current joint trajectory state.
248 |
249 |
250 | Connect
251 |
252 |
253 |
254 |
255 |
256 |
257 | -
258 |
259 |
260 | Qt::Vertical
261 |
262 |
263 |
264 | 20
265 | 233
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 | -
274 |
275 |
276 |
277 | 0
278 | 0
279 |
280 |
281 |
282 | Quit
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 | &Quit
292 |
293 |
294 | Ctrl+Q
295 |
296 |
297 | Qt::ApplicationShortcut
298 |
299 |
300 |
301 |
302 | &Preferences
303 |
304 |
305 |
306 |
307 | &About
308 |
309 |
310 |
311 |
312 | About &Qt
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 | action_Quit
322 | triggered()
323 | MainWindowDesign
324 | close()
325 |
326 |
327 | -1
328 | -1
329 |
330 |
331 | 399
332 | 299
333 |
334 |
335 |
336 |
337 | quit_button
338 | clicked()
339 | MainWindowDesign
340 | close()
341 |
342 |
343 | 859
344 | 552
345 |
346 |
347 | 469
348 | 299
349 |
350 |
351 |
352 |
353 |
354 |
--------------------------------------------------------------------------------
/QtROS_GUI/my_qt_gui_publisher/CMakeLists.txt.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ProjectExplorer.Project.ActiveTarget
7 | 0
8 |
9 |
10 | ProjectExplorer.Project.EditorSettings
11 |
12 | true
13 | false
14 | true
15 |
16 | Cpp
17 |
18 | CppGlobal
19 |
20 |
21 |
22 | QmlJS
23 |
24 | QmlJSGlobal
25 |
26 |
27 | 2
28 | UTF-8
29 | false
30 | 4
31 | false
32 | true
33 | 1
34 | true
35 | 0
36 | true
37 | 0
38 | 8
39 | true
40 | 1
41 | true
42 | true
43 | true
44 | false
45 |
46 |
47 |
48 | ProjectExplorer.Project.PluginSettings
49 |
50 |
51 |
52 | ProjectExplorer.Project.Target.0
53 |
54 | Qt 5.5.1 (gcc_64)
55 | Qt 5.5.1 (gcc_64)
56 | {af6bc52b-1e37-4682-8c70-c1471fde4890}
57 | 0
58 | 0
59 | 0
60 |
61 | false
62 | /home/peng/ros_ws/src/gui_project/build-my_qt_gui_publisher
63 |
64 |
65 |
66 |
67 | false
68 | false
69 | true
70 | Make
71 |
72 | CMakeProjectManager.MakeStep
73 |
74 | 1
75 | Build
76 |
77 | ProjectExplorer.BuildSteps.Build
78 |
79 |
80 |
81 | clean
82 |
83 | true
84 | false
85 | true
86 | Make
87 |
88 | CMakeProjectManager.MakeStep
89 |
90 | 1
91 | Clean
92 |
93 | ProjectExplorer.BuildSteps.Clean
94 |
95 | 2
96 | false
97 |
98 | Default
99 | Default
100 | CMakeProjectManager.CMakeBuildConfiguration
101 |
102 | 1
103 |
104 |
105 | 0
106 | Deploy
107 |
108 | ProjectExplorer.BuildSteps.Deploy
109 |
110 | 1
111 | Deploy locally
112 |
113 | ProjectExplorer.DefaultDeployConfiguration
114 |
115 | 1
116 |
117 |
118 |
119 | false
120 | false
121 | false
122 | false
123 | true
124 | 0.01
125 | 10
126 | true
127 | 1
128 | 25
129 |
130 | 1
131 | true
132 | false
133 | true
134 | valgrind
135 |
136 | 0
137 | 1
138 | 2
139 | 3
140 | 4
141 | 5
142 | 6
143 | 7
144 | 8
145 | 9
146 | 10
147 | 11
148 | 12
149 | 13
150 | 14
151 |
152 | my_qt_gui_publisher
153 |
154 | false
155 |
156 | 2
157 |
158 | my_qt_gui_publisher
159 |
160 | CMakeProjectManager.CMakeRunConfiguration.my_qt_gui_publisher
161 | 3768
162 | true
163 | false
164 | false
165 | false
166 | true
167 |
168 | 1
169 |
170 |
171 |
172 | ProjectExplorer.Project.TargetCount
173 | 1
174 |
175 |
176 | ProjectExplorer.Project.Updater.EnvironmentId
177 | {2ec80e12-3826-466b-a6dd-497976731f3d}
178 |
179 |
180 | ProjectExplorer.Project.Updater.FileVersion
181 | 15
182 |
183 |
184 |
--------------------------------------------------------------------------------
/QtROS_GUI/my_qt_gui_subscriber/CMakeLists.txt.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ProjectExplorer.Project.ActiveTarget
7 | 0
8 |
9 |
10 | ProjectExplorer.Project.EditorSettings
11 |
12 | true
13 | false
14 | true
15 |
16 | Cpp
17 |
18 | CppGlobal
19 |
20 |
21 |
22 | QmlJS
23 |
24 | QmlJSGlobal
25 |
26 |
27 | 2
28 | UTF-8
29 | false
30 | 4
31 | false
32 | true
33 | 1
34 | true
35 | 0
36 | true
37 | 0
38 | 8
39 | true
40 | 1
41 | true
42 | true
43 | true
44 | false
45 |
46 |
47 |
48 | ProjectExplorer.Project.PluginSettings
49 |
50 |
51 |
52 | ProjectExplorer.Project.Target.0
53 |
54 | Qt 5.5.1 (gcc_64)
55 | Qt 5.5.1 (gcc_64)
56 | {af6bc52b-1e37-4682-8c70-c1471fde4890}
57 | 0
58 | 0
59 | 0
60 |
61 | false
62 | /home/peng/ros_ws/src/gui_project/build-my_qt_gui_subscriber
63 |
64 |
65 |
66 |
67 | false
68 | false
69 | true
70 | Make
71 |
72 | CMakeProjectManager.MakeStep
73 |
74 | 1
75 | Build
76 |
77 | ProjectExplorer.BuildSteps.Build
78 |
79 |
80 |
81 | clean
82 |
83 | true
84 | false
85 | true
86 | Make
87 |
88 | CMakeProjectManager.MakeStep
89 |
90 | 1
91 | Clean
92 |
93 | ProjectExplorer.BuildSteps.Clean
94 |
95 | 2
96 | false
97 |
98 | Default
99 | Default
100 | CMakeProjectManager.CMakeBuildConfiguration
101 |
102 | 1
103 |
104 |
105 | 0
106 | Deploy
107 |
108 | ProjectExplorer.BuildSteps.Deploy
109 |
110 | 1
111 | Deploy locally
112 |
113 | ProjectExplorer.DefaultDeployConfiguration
114 |
115 | 1
116 |
117 |
118 |
119 | false
120 | false
121 | false
122 | false
123 | true
124 | 0.01
125 | 10
126 | true
127 | 1
128 | 25
129 |
130 | 1
131 | true
132 | false
133 | true
134 | valgrind
135 |
136 | 0
137 | 1
138 | 2
139 | 3
140 | 4
141 | 5
142 | 6
143 | 7
144 | 8
145 | 9
146 | 10
147 | 11
148 | 12
149 | 13
150 | 14
151 |
152 | my_qt_gui_subscriber
153 |
154 | false
155 |
156 | 2
157 |
158 | my_qt_gui_subscriber
159 |
160 | CMakeProjectManager.CMakeRunConfiguration.my_qt_gui_subscriber
161 | 3768
162 | true
163 | false
164 | false
165 | false
166 | true
167 |
168 | 1
169 |
170 |
171 |
172 | ProjectExplorer.Project.TargetCount
173 | 1
174 |
175 |
176 | ProjectExplorer.Project.Updater.EnvironmentId
177 | {2ec80e12-3826-466b-a6dd-497976731f3d}
178 |
179 |
180 | ProjectExplorer.Project.Updater.FileVersion
181 | 15
182 |
183 |
184 |
--------------------------------------------------------------------------------
/QtROS_GUI/button_test/CMakeLists.txt.user.3.2-pre1:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ProjectExplorer.Project.ActiveTarget
7 | 0
8 |
9 |
10 | ProjectExplorer.Project.EditorSettings
11 |
12 | true
13 | false
14 | true
15 |
16 | Cpp
17 |
18 | CppGlobal
19 |
20 |
21 |
22 | QmlJS
23 |
24 | QmlJSGlobal
25 |
26 |
27 | 2
28 | UTF-8
29 | false
30 | 4
31 | false
32 | true
33 | 1
34 | true
35 | 0
36 | true
37 | 0
38 | 8
39 | true
40 | 1
41 | true
42 | true
43 | true
44 | false
45 |
46 |
47 |
48 | ProjectExplorer.Project.PluginSettings
49 |
50 |
51 |
52 | ProjectExplorer.Project.Target.0
53 |
54 | Qt 5.5.1 (gcc_64)
55 | Qt 5.5.1 (gcc_64)
56 | {af6bc52b-1e37-4682-8c70-c1471fde4890}
57 | 0
58 | 0
59 | 0
60 |
61 | false
62 | /home/peng/ros_ws/src/gui_project/build-button_test
63 |
64 |
65 |
66 |
67 | false
68 | false
69 | true
70 | Make
71 |
72 | CMakeProjectManager.MakeStep
73 |
74 | 1
75 | Build
76 |
77 | ProjectExplorer.BuildSteps.Build
78 |
79 |
80 |
81 | clean
82 |
83 | true
84 | false
85 | true
86 | Make
87 |
88 | CMakeProjectManager.MakeStep
89 |
90 | 1
91 | Clean
92 |
93 | ProjectExplorer.BuildSteps.Clean
94 |
95 | 2
96 | false
97 |
98 | Default
99 | Default
100 | CMakeProjectManager.CMakeBuildConfiguration
101 |
102 | 1
103 |
104 |
105 | 0
106 | Deploy
107 |
108 | ProjectExplorer.BuildSteps.Deploy
109 |
110 | 1
111 | Deploy locally
112 |
113 | ProjectExplorer.DefaultDeployConfiguration
114 |
115 | 1
116 |
117 |
118 |
119 | false
120 | false
121 | false
122 | false
123 | true
124 | 0.01
125 | 10
126 | true
127 | 1
128 | 25
129 |
130 | 1
131 | true
132 | false
133 | true
134 | valgrind
135 |
136 | 0
137 | 1
138 | 2
139 | 3
140 | 4
141 | 5
142 | 6
143 | 7
144 | 8
145 | 9
146 | 10
147 | 11
148 | 12
149 | 13
150 | 14
151 |
152 | button_test
153 |
154 | false
155 |
156 | 2
157 |
158 | button_test
159 |
160 | CMakeProjectManager.CMakeRunConfiguration.button_test
161 | 3768
162 | true
163 | false
164 | false
165 | false
166 | true
167 |
168 | 1
169 |
170 |
171 |
172 | ProjectExplorer.Project.TargetCount
173 | 1
174 |
175 |
176 | ProjectExplorer.Project.Updater.EnvironmentId
177 | {2ec80e12-3826-466b-a6dd-497976731f3d}
178 |
179 |
180 | ProjectExplorer.Project.Updater.FileVersion
181 | 15
182 |
183 |
184 |
--------------------------------------------------------------------------------
/QtROS_GUI/button_test/ui/main_window.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | MainWindowDesign
4 |
5 |
6 |
7 | 0
8 | 0
9 | 944
10 | 704
11 |
12 |
13 |
14 | QRosApp
15 |
16 |
17 |
18 | :/images/icon.png:/images/icon.png
19 |
20 |
21 |
22 |
23 |
24 |
25 | -
26 |
27 |
28 |
29 | 100
30 | 0
31 |
32 |
33 |
34 |
35 |
36 |
37 | 0
38 |
39 |
40 |
41 | Ros Communications
42 |
43 |
44 |
-
45 |
46 |
47 | test
48 |
49 |
50 |
51 | -
52 |
53 |
54 |
55 | 0
56 | 0
57 |
58 |
59 |
60 | Logging
61 |
62 |
63 |
-
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
97 |
98 |
99 |
100 |
101 | 0
102 | 0
103 |
104 |
105 |
106 |
107 | 325
108 | 395
109 |
110 |
111 |
112 | Qt::RightDockWidgetArea
113 |
114 |
115 | Command Panel
116 |
117 |
118 | 2
119 |
120 |
121 |
122 | -
123 |
124 |
125 |
126 | 0
127 | 0
128 |
129 |
130 |
131 | QFrame::StyledPanel
132 |
133 |
134 | QFrame::Raised
135 |
136 |
137 |
-
138 |
139 |
140 | Ros Master
141 |
142 |
143 |
-
144 |
145 |
146 | QFrame::StyledPanel
147 |
148 |
149 | QFrame::Raised
150 |
151 |
152 | Ros Master Url
153 |
154 |
155 |
156 | -
157 |
158 |
159 | http://192.168.1.2:11311/
160 |
161 |
162 |
163 | -
164 |
165 |
166 | QFrame::StyledPanel
167 |
168 |
169 | QFrame::Raised
170 |
171 |
172 | Ros IP
173 |
174 |
175 |
176 | -
177 |
178 |
179 | 192.168.1.67
180 |
181 |
182 |
183 | -
184 |
185 |
186 | QFrame::StyledPanel
187 |
188 |
189 | QFrame::Raised
190 |
191 |
192 | Ros Hostname
193 |
194 |
195 |
196 | -
197 |
198 |
199 | false
200 |
201 |
202 | unused
203 |
204 |
205 |
206 | -
207 |
208 |
209 | Qt::RightToLeft
210 |
211 |
212 | Use environment variables
213 |
214 |
215 |
216 | -
217 |
218 |
219 | Qt::RightToLeft
220 |
221 |
222 | Remember settings on startup
223 |
224 |
225 |
226 | -
227 |
228 |
229 | Qt::Horizontal
230 |
231 |
232 |
233 | 170
234 | 21
235 |
236 |
237 |
238 |
239 | -
240 |
241 |
242 | true
243 |
244 |
245 |
246 | 0
247 | 0
248 |
249 |
250 |
251 | Set the target to the current joint trajectory state.
252 |
253 |
254 | Clear all waypoints and set the target to the current joint trajectory state.
255 |
256 |
257 | Connect
258 |
259 |
260 |
261 | -
262 |
263 |
264 | true
265 |
266 |
267 |
268 | 0
269 | 0
270 |
271 |
272 |
273 | Left.
274 |
275 |
276 | Move to left.
277 |
278 |
279 | Left
280 |
281 |
282 |
283 |
284 |
285 |
286 | -
287 |
288 |
289 | Qt::Vertical
290 |
291 |
292 |
293 | 20
294 | 233
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 | -
303 |
304 |
305 |
306 | 0
307 | 0
308 |
309 |
310 |
311 | Quit
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 | &Quit
321 |
322 |
323 | Ctrl+Q
324 |
325 |
326 | Qt::ApplicationShortcut
327 |
328 |
329 |
330 |
331 | &Preferences
332 |
333 |
334 |
335 |
336 | &About
337 |
338 |
339 |
340 |
341 | About &Qt
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 | action_Quit
351 | triggered()
352 | MainWindowDesign
353 | close()
354 |
355 |
356 | -1
357 | -1
358 |
359 |
360 | 399
361 | 299
362 |
363 |
364 |
365 |
366 | quit_button
367 | clicked()
368 | MainWindowDesign
369 | close()
370 |
371 |
372 | 859
373 | 552
374 |
375 |
376 | 469
377 | 299
378 |
379 |
380 |
381 |
382 |
383 |
--------------------------------------------------------------------------------
/Qt_GUI/QtWidgetsTest/QtWidgetsTest/QtWidgetsTest.pro.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EnvironmentId
7 | {2ec80e12-3826-466b-a6dd-497976731f3d}
8 |
9 |
10 | ProjectExplorer.Project.ActiveTarget
11 | 0
12 |
13 |
14 | ProjectExplorer.Project.EditorSettings
15 |
16 | true
17 | false
18 | true
19 |
20 | Cpp
21 |
22 | CppGlobal
23 |
24 |
25 |
26 | QmlJS
27 |
28 | QmlJSGlobal
29 |
30 |
31 | 2
32 | UTF-8
33 | false
34 | 4
35 | false
36 | 80
37 | true
38 | true
39 | 1
40 | true
41 | false
42 | 0
43 | true
44 | 0
45 | 8
46 | true
47 | 1
48 | true
49 | true
50 | true
51 | false
52 |
53 |
54 |
55 | ProjectExplorer.Project.PluginSettings
56 |
57 |
58 |
59 | ProjectExplorer.Project.Target.0
60 |
61 | Desktop Qt 5.5.1 GCC 64bit
62 | Desktop Qt 5.5.1 GCC 64bit
63 | qt.55.gcc_64_kit
64 | 0
65 | 0
66 | 0
67 |
68 | /home/peng/ROSCppGUI/QtWidgetsTest/build-QtWidgetsTest-Desktop_Qt_5_5_1_GCC_64bit-Debug
69 |
70 |
71 | true
72 | qmake
73 |
74 | QtProjectManager.QMakeBuildStep
75 | false
76 | true
77 |
78 | false
79 | false
80 | false
81 |
82 |
83 | true
84 | Make
85 |
86 | Qt4ProjectManager.MakeStep
87 |
88 | -w
89 | -r
90 |
91 | false
92 |
93 |
94 |
95 | 2
96 | Build
97 |
98 | ProjectExplorer.BuildSteps.Build
99 |
100 |
101 |
102 | true
103 | Make
104 |
105 | Qt4ProjectManager.MakeStep
106 |
107 | -w
108 | -r
109 |
110 | true
111 | clean
112 |
113 |
114 | 1
115 | Clean
116 |
117 | ProjectExplorer.BuildSteps.Clean
118 |
119 | 2
120 | false
121 |
122 | Debug
123 |
124 | Qt4ProjectManager.Qt4BuildConfiguration
125 | 2
126 | true
127 |
128 |
129 | /home/peng/ROSCppGUI/QtWidgetsTest/build-QtWidgetsTest-Desktop_Qt_5_5_1_GCC_64bit-Release
130 |
131 |
132 | true
133 | qmake
134 |
135 | QtProjectManager.QMakeBuildStep
136 | false
137 | true
138 |
139 | false
140 | false
141 | false
142 |
143 |
144 | true
145 | Make
146 |
147 | Qt4ProjectManager.MakeStep
148 |
149 | -w
150 | -r
151 |
152 | false
153 |
154 |
155 |
156 | 2
157 | Build
158 |
159 | ProjectExplorer.BuildSteps.Build
160 |
161 |
162 |
163 | true
164 | Make
165 |
166 | Qt4ProjectManager.MakeStep
167 |
168 | -w
169 | -r
170 |
171 | true
172 | clean
173 |
174 |
175 | 1
176 | Clean
177 |
178 | ProjectExplorer.BuildSteps.Clean
179 |
180 | 2
181 | false
182 |
183 | Release
184 |
185 | Qt4ProjectManager.Qt4BuildConfiguration
186 | 0
187 | true
188 |
189 | 2
190 |
191 |
192 | 0
193 | Deploy
194 |
195 | ProjectExplorer.BuildSteps.Deploy
196 |
197 | 1
198 | Deploy locally
199 |
200 | ProjectExplorer.DefaultDeployConfiguration
201 |
202 | 1
203 |
204 |
205 |
206 | false
207 | false
208 | false
209 | false
210 | true
211 | 0.01
212 | 10
213 | true
214 | 1
215 | 25
216 |
217 | 1
218 | true
219 | false
220 | true
221 | valgrind
222 |
223 | 0
224 | 1
225 | 2
226 | 3
227 | 4
228 | 5
229 | 6
230 | 7
231 | 8
232 | 9
233 | 10
234 | 11
235 | 12
236 | 13
237 | 14
238 |
239 | -1
240 |
241 |
242 |
243 | %{buildDir}
244 | Custom Executable
245 |
246 | ProjectExplorer.CustomExecutableRunConfiguration
247 | 3768
248 | false
249 | true
250 | false
251 | false
252 | true
253 |
254 | 1
255 |
256 |
257 |
258 | ProjectExplorer.Project.TargetCount
259 | 1
260 |
261 |
262 | ProjectExplorer.Project.Updater.FileVersion
263 | 18
264 |
265 |
266 | Version
267 | 18
268 |
269 |
270 |
--------------------------------------------------------------------------------
/QtROS_GUI/button_test/CMakeLists.txt.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EnvironmentId
7 | {9ed8b67c-5b8c-4819-94d1-62d973ec8e82}
8 |
9 |
10 | ProjectExplorer.Project.ActiveTarget
11 | 0
12 |
13 |
14 | ProjectExplorer.Project.EditorSettings
15 |
16 | true
17 | false
18 | true
19 |
20 | Cpp
21 |
22 | CppGlobal
23 |
24 |
25 |
26 | QmlJS
27 |
28 | QmlJSGlobal
29 |
30 |
31 | 2
32 | UTF-8
33 | false
34 | 4
35 | false
36 | 80
37 | true
38 | true
39 | 1
40 | true
41 | false
42 | 0
43 | true
44 | true
45 | 0
46 | 8
47 | true
48 | 1
49 | true
50 | true
51 | true
52 | false
53 |
54 |
55 |
56 | ProjectExplorer.Project.PluginSettings
57 |
58 |
59 |
60 | ProjectExplorer.Project.Target.0
61 |
62 | Desktop Qt 5.7.0 GCC 64bit
63 | Desktop Qt 5.7.0 GCC 64bit
64 | qt.57.gcc_64_kit
65 | 0
66 | 0
67 | 0
68 |
69 |
70 | /home/peng/catkin_ws/src/ROSCppGUI/QtROS_GUI/build-button_test-Desktop_Qt_5_7_0_GCC_64bit-Default
71 |
72 |
73 |
74 |
75 | all
76 |
77 | true
78 | Make
79 |
80 | CMakeProjectManager.MakeStep
81 |
82 | 1
83 | Build
84 |
85 | ProjectExplorer.BuildSteps.Build
86 |
87 |
88 |
89 |
90 |
91 | clean
92 |
93 | true
94 | Make
95 |
96 | CMakeProjectManager.MakeStep
97 |
98 | 1
99 | Clean
100 |
101 | ProjectExplorer.BuildSteps.Clean
102 |
103 | 2
104 | false
105 |
106 | Default
107 | Default
108 | CMakeProjectManager.CMakeBuildConfiguration
109 |
110 |
111 |
112 | CMAKE_BUILD_TYPE:STRING=Debug
113 |
114 | /home/peng/catkin_ws/src/ROSCppGUI/QtROS_GUI/build-button_test-Desktop_Qt_5_7_0_GCC_64bit-Debug
115 |
116 |
117 |
118 |
119 |
120 |
121 | true
122 | Make
123 |
124 | CMakeProjectManager.MakeStep
125 |
126 | 1
127 | Build
128 |
129 | ProjectExplorer.BuildSteps.Build
130 |
131 |
132 |
133 |
134 |
135 | clean
136 |
137 | true
138 | Make
139 |
140 | CMakeProjectManager.MakeStep
141 |
142 | 1
143 | Clean
144 |
145 | ProjectExplorer.BuildSteps.Clean
146 |
147 | 2
148 | false
149 |
150 | Debug
151 | Debug
152 | CMakeProjectManager.CMakeBuildConfiguration
153 |
154 |
155 |
156 | CMAKE_BUILD_TYPE:STRING=Release
157 |
158 | /home/peng/catkin_ws/src/ROSCppGUI/QtROS_GUI/build-button_test-Desktop_Qt_5_7_0_GCC_64bit-Release
159 |
160 |
161 |
162 |
163 |
164 |
165 | true
166 | Make
167 |
168 | CMakeProjectManager.MakeStep
169 |
170 | 1
171 | Build
172 |
173 | ProjectExplorer.BuildSteps.Build
174 |
175 |
176 |
177 |
178 |
179 | clean
180 |
181 | true
182 | Make
183 |
184 | CMakeProjectManager.MakeStep
185 |
186 | 1
187 | Clean
188 |
189 | ProjectExplorer.BuildSteps.Clean
190 |
191 | 2
192 | false
193 |
194 | Release
195 | Release
196 | CMakeProjectManager.CMakeBuildConfiguration
197 |
198 |
199 |
200 | CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
201 |
202 | /home/peng/catkin_ws/src/ROSCppGUI/QtROS_GUI/build-button_test-Desktop_Qt_5_7_0_GCC_64bit-Release with Debug Information
203 |
204 |
205 |
206 |
207 |
208 |
209 | true
210 | Make
211 |
212 | CMakeProjectManager.MakeStep
213 |
214 | 1
215 | Build
216 |
217 | ProjectExplorer.BuildSteps.Build
218 |
219 |
220 |
221 |
222 |
223 | clean
224 |
225 | true
226 | Make
227 |
228 | CMakeProjectManager.MakeStep
229 |
230 | 1
231 | Clean
232 |
233 | ProjectExplorer.BuildSteps.Clean
234 |
235 | 2
236 | false
237 |
238 | Release with Debug Information
239 | Release with Debug Information
240 | CMakeProjectManager.CMakeBuildConfiguration
241 |
242 |
243 |
244 | CMAKE_BUILD_TYPE:STRING=MinSizeRel
245 |
246 | /home/peng/catkin_ws/src/ROSCppGUI/QtROS_GUI/build-button_test-Desktop_Qt_5_7_0_GCC_64bit-Minimum Size Release
247 |
248 |
249 |
250 |
251 |
252 |
253 | true
254 | Make
255 |
256 | CMakeProjectManager.MakeStep
257 |
258 | 1
259 | Build
260 |
261 | ProjectExplorer.BuildSteps.Build
262 |
263 |
264 |
265 |
266 |
267 | clean
268 |
269 | true
270 | Make
271 |
272 | CMakeProjectManager.MakeStep
273 |
274 | 1
275 | Clean
276 |
277 | ProjectExplorer.BuildSteps.Clean
278 |
279 | 2
280 | false
281 |
282 | Minimum Size Release
283 | Minimum Size Release
284 | CMakeProjectManager.CMakeBuildConfiguration
285 |
286 | 5
287 |
288 |
289 | 0
290 | Deploy
291 |
292 | ProjectExplorer.BuildSteps.Deploy
293 |
294 | 1
295 | Deploy locally
296 |
297 | ProjectExplorer.DefaultDeployConfiguration
298 |
299 | 1
300 |
301 |
302 | false
303 | false
304 | 1000
305 |
306 | true
307 |
308 | false
309 | false
310 | false
311 | false
312 | true
313 | 0.01
314 | 10
315 | true
316 | 1
317 | 25
318 |
319 | 1
320 | true
321 | false
322 | true
323 | valgrind
324 |
325 | 0
326 | 1
327 | 2
328 | 3
329 | 4
330 | 5
331 | 6
332 | 7
333 | 8
334 | 9
335 | 10
336 | 11
337 | 12
338 | 13
339 | 14
340 |
341 | button_test
342 |
343 |
344 | /tmp/qtc-cmake-6KZtuq/devel/lib/button_test
345 | 2
346 |
347 | button_test
348 |
349 | CMakeProjectManager.CMakeRunConfiguration.button_test
350 | 3768
351 | false
352 | true
353 | false
354 | false
355 | true
356 |
357 | 1
358 |
359 |
360 |
361 | ProjectExplorer.Project.TargetCount
362 | 1
363 |
364 |
365 | ProjectExplorer.Project.Updater.FileVersion
366 | 18
367 |
368 |
369 | Version
370 | 18
371 |
372 |
373 |
--------------------------------------------------------------------------------