Ask Your Question
1

Integrate ROS Groovy and QtCreator.

asked 2013-05-12 00:18:24 -0500

Ziko gravatar image

updated 2014-01-28 17:16:30 -0500

ngrennan gravatar image

I have successfully integrated the code ROS with QT libraries. To do this I created the project with catkin_create_pkg and then I added all the necessary (cpp file, ui, wrappers, etc.) in the file CMakeList.txt.

I am then able to successfully compile my project through catkin. My question now is this: how do I continue my work through the environment QtCreator? I know very well that the QtCreator is capable of interpreted file from CMake, but not by catkin.

My system is Ubuntu 12.04 and ROS Groovy Galapagos.

Thanks to all.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-05-13 23:12:11 -0500

Ziko gravatar image

I was able to use QtCreator by running through the catkin following steps:

  1. Since QtCreator needs its own working directory that I put in a place where you do not bother.
  2. In the "Build Settings"

    2.1. I set the following custom build settings "build steps"

    -command: catkin_make

    -Working directory: /home/myuser/catkin_ws

    -Command arguments: none

    2.2. I set the following custom clean settings "clean steps"

    -command: catkin_make clean

    -Working directory: /home/myuser/catkin_ws

    -Command arguments: none

  3. In the "Run Settings" menu I have replaced the "Run" default configuration with my custom:

    -Run configuration: MyCustomRunConfiguration

    -Executable: my_executable

    -Arguments: none

    -Working diretcory: /home/myuser/catkin_ws/devel/lib/my_executable

I know that is not a permanent solution but only a trick, also the folder created by QtCreator is never used. to now is the best I could do.

edit flag offensive delete link more
1

answered 2013-05-12 06:25:56 -0500

stantol gravatar image

I don't think that you have to do anything special to get QtCreator to build catkin packages. At least, I don't do anything (besides sourcing the ROS setup files in my .bashrc file). All you need to do is open the CMakeLists.txt file as a project and mine works. I also start QtCreator from a terminal, because it does not work when launched from the Ubuntu drop-down menu. (I assume because of sourcing the setup files, but I'm not 100% sure about this.)

edit flag offensive delete link more

Comments

Yes, source the setup file before running qtcreator is necessary.

Ziko gravatar image Ziko  ( 2013-05-13 22:37:27 -0500 )edit

You do not have to launch qtcreator from terminal. Edit your qtcreator.desktop file and replaced the Exec line with: "Exec=bash -i -c qtcreator %F" ... now you can use the icon from the launch bar.

trianta2 gravatar image trianta2  ( 2014-01-14 02:36:07 -0500 )edit

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-05-12 00:18:24 -0500

Seen: 1,165 times

Last updated: May 13 '13