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

Setting up QT creator for ROS

asked 2011-10-24 15:00:01 -0500

MoggyQuek gravatar image

updated 2014-01-28 17:10:38 -0500

ngrennan gravatar image

Hi, I would like to ask whether there are any tutorials on how to setup the QT creator so that I can include ROS code into it. i am interested in using the QT creator to create a GUI that can publish msgs to control other parts of my ROS program. Thank you

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
13

answered 2011-10-24 19:30:10 -0500

sebsch gravatar image

There is no need to set it up. Just create a package, open its CMakeLists.txt with QtCreator and you are done.

If you are not accustomed to using CMake with Qt you can have a look at this page. Getting to know CMake might require some reading, but I do not regret ditching qmake for CMake.

edit flag offensive delete link more

Comments

1
I had tried creating a package and use QTCreator to open the CMakeLists.txt. However, it seesm that CMake is unable to detect the rosbuild cmake file due to the environment variable $ENV(ROS_ROOT). Is there any way to correct this problem?
MoggyQuek gravatar image MoggyQuek  ( 2011-10-27 12:32:31 -0500 )edit

@MoggyQuek can you provide the error message that you got when Qt Creator was "unable to detect rosbuild cmake file" as you described? I'm just curious and I haven't seen that error

130s gravatar image 130s  ( 2012-06-14 07:31:20 -0500 )edit
9

answered 2011-11-10 19:39:54 -0500

grim gravatar image

updated 2011-11-13 19:32:59 -0500

Hey MoggyQuek regarding your problem about the undetected environment variables - if you have already exported the variables as described in Required_ROS_Environment_Variables, then try starting QtCreator directly in a terminal like this:

/.qtcreator

now the variables will be available.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-10-24 15:00:01 -0500

Seen: 9,222 times

Last updated: Nov 13 '11