ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hey, thank you for your answer. I'm really new to QT and ROS. I tried to follow your links but was not able to understand it completely.
I've build my example GUI with QT Creator. Right now, it just consists of a button. When it's clicked, then "Hello" is printed on the console. I'm using c++ as I've never used Python before.
My ROS-Programm looks like this:
int main (int argc, char **argv){
ros::init(argc,argv,"my_test");
ros::NodeHandle subscriber;
ros::NodeHandle publisher("~");
Test myTest(subscriber,publisher);
ros::spin();
return 0;}
Where Test is some Test-Class that publishes and subscribes topics. For creating my ROS-Programm I use QT-Creator with CMakeList.txt, manifest.xml and Makefile.
My GUI-Programm has also a Main-Method:
int main(int argc, char *argv[]){
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();}
How do I actually integrate my QT-GUI to ROS?
2 | No.2 Revision |
Hey, thank you for your answer. I'm really new to QT and ROS. I tried to follow your links but was not able to understand it completely.
I've build my example GUI with QT Creator. Right now, it just consists of a button. When it's clicked, then "Hello" is printed on the console. I'm using c++ as I've never used Python before.
My ROS-Programm looks like this:
int main (int argc, char **argv){
ros::init(argc,argv,"my_test");
ros::NodeHandle subscriber;
ros::NodeHandle publisher("~");
Test myTest(subscriber,publisher);
ros::spin();
return 0;}
Where Test is some Test-Class that publishes and subscribes topics. For creating my ROS-Programm I use QT-Creator with CMakeList.txt, manifest.xml and Makefile.
My GUI-Programm has also a Main-Method:
int main(int argc, char *argv[]){
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();}
How do I actually integrate my QT-GUI to ROS?