Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In order to work from inside QtCreator with ROS projects you have to first start it properly. As you know after the installation you have to source both the setup.bash in ROS' installation folder as well as the one in YOUR_CATKIN_WS/devel/. This are however not know outside the terminal environment. That is why if you launch your QtCreator the normal way that is not through the qtcreator command in your terminal) QtCreator will throw errors at you (missing ros.h included). If you start the IDE from within your terminal you are good to go:

  • Run catkin_make in your top-level folder of your catkin workspace. This will create all the need to have folders you have to have in your package in order for it to be a proper package
  • Launch QtCreator via the terminal (with the environment variables for ROS set)
  • Go to Open File or Project in your File menu. Navigate to the CMakeLists.txt in the root of your package (YOUR_CATKIN_WS/src/YOUR_PACKAGE/CMakeLists.txt) and open it. When asked where QtCreator should put the build files go to the top-level folder of your catkin workspace, select the build folder and then the folder with the name of your package (this is automatically created after you run catkin_make).

Now you can work with all packages that you create in your catkin workspace without any issues.

In order to work from inside QtCreator with ROS projects you have to first start it properly. As you know after the installation you have to source both the setup.bash in ROS' installation folder as well as the one in YOUR_CATKIN_WS/devel/. This are however not know known outside the terminal environment. That is why if you launch your QtCreator the normal way that is not through the qtcreator command in your terminal) QtCreator will throw errors at you (missing ros.h included). If you start the IDE from within your terminal you are good to go:

  • Run catkin_make in your top-level folder of your catkin workspace. This will create all the need to have folders you have to have in your package in order for it to be a proper package
  • Launch QtCreator via the terminal (with the environment variables for ROS set)
  • Go to Open File or Project in your File menu. Navigate to the CMakeLists.txt in the root of your package (YOUR_CATKIN_WS/src/YOUR_PACKAGE/CMakeLists.txt) and open it. When asked where QtCreator should put the build files go to the top-level folder of your catkin workspace, select the build folder and then the folder with the name of your package (this is automatically created after you run catkin_make).

Now you can work with all packages that you create in your catkin workspace without any issues.

In order to work from inside QtCreator with ROS projects you have to first start it properly. As you know after the installation you have to source both the setup.bash in ROS' installation folder as well as the one in YOUR_CATKIN_WS/devel/. This are however not known outside the terminal environment. That is why if you launch your QtCreator the normal way that is not through the qtcreator command in your terminal) QtCreator will throw errors at you (missing ros.h included). If you start the IDE from within your terminal you are good to go:

  • Run catkin_make in your top-level folder of your catkin workspace. This will create all the need to have folders you have to have in your package in order for it to be a proper package
  • Launch QtCreator via the terminal (with the environment variables for ROS set)
  • Go to Open File or Project in your File menu. Navigate to the CMakeLists.txt in the root of your package (YOUR_CATKIN_WS/src/YOUR_PACKAGE/CMakeLists.txt) and open it. When asked where QtCreator should put the build files go to the top-level folder of your catkin workspace, select the build folder and then the folder with the name of your package (this is automatically created after you run catkin_make).

Now you can work with all packages that you create in your catkin workspace without any issues.

EDIT: As for the Rqt plugin story you can easily do that by following these articles. It's a little bit too much work omho and you might screw things up especially with Python but after 2-3 tries you should be able to do this on your own without too much of a fuss.