Ask Your Question
6

Setting up QT creator for ROS

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

MoggyQuek gravatar image

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

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 -0600

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 imageMoggyQuek ( 2011-10-27 12:32:31 -0600 )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 image130s ( 2012-06-14 07:31:20 -0600 )edit
9

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

grim gravatar image

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

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

Your Answer

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

Add Answer

Question Tools

Stats

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

Seen: 8,813 times

Last updated: Nov 13 '11