ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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?

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?

ROS? What I actually want to do, is to manually update some parameters (setpoint for Robot-Arm) during runtime of my application. What is the best way for doing this?