Ask Your Question
0

qt_create works in Fuerte?

asked 2013-12-01 14:44:09 -0600

Astronaut gravatar image

updated 2014-01-28 17:18:42 -0600

ngrennan gravatar image

Hello

Im trying to use Qt as an user interface for a moving robot platform. So trying to integrate it in ROS. Im totally new beginner in QT and pretty advanced in ROS. So I dont know from where to start first?I have created ROS package and all works fine. So now what should I do with QT side?From where to start with QT? I was told to add QT library in my ROS pkg use it like qt.

And when using http://wiki.ros.org/qt_ros what is the difference when add Qt library to ROS pkg? I found that for qt_create there is no documentation for fuerte.Im using Fuerte version of ROS so means it does not works for Fuerte??

Any help as Im bit lost

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-12-06 02:24:45 -0600

autonomy gravatar image

I can't tell you exactly what to do, but I can point you in the right direction. You need to include Qt header files in your and point to Qt libraries for linking in your build. All of this needs to happen in your CMakeLists.txt file and what you include will depend on the libraries you're attempting to use.

Once you point the ROS build system to the right place, you should be able to use Qt just like you would in a regular C++ project:

#include <QTextEdit>
QTextEdit * text = new QTextEdit;
// etc.

For CMakeLists-specific syntax, see http://answers.ros.org/question/12790/ros-qt-creator-gui/ and http://answers.ros.org/question/56047/how-should-i-modify-my-cmakelists-file-to-build-a-qt-ros-node/

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-12-01 14:44:09 -0600

Seen: 57 times

Last updated: Dec 06 '13