[Documentation] [TitleIndex] [WordIndex

(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Qt App Templates

Description: Speeding app development with quickstart templates via roscreate-qt-pkg.

Tutorial Level: BEGINNER

  Show EOL distros: 

Goal

  • Generate a qt-ros application package with roscreate-qt-pkg.

  • Generate a qt-ros application package with catkin_create_qt_pkg.

Details

Currently the creational script generates only one template app, though this may be expanded in future. Features include:

Usage

> rosrun qt_create roscreate-qt-pkg qdude

You can either build with rosbuild (native) or catkin (native/cross-compiles). Refer to the mingw build environment and the mingw qt-ros tutorials for more details.

> source /path/to/my/source/workspace/devel/setup.bash
> cd /path/to/my/workspace/src
> catkin_create_qt_pkg qdude
> cd /path/to/my/workspace
> catkin_make --force-cmake
> rosrun qdude qdude

> source /path/to/my/source/workspace/devel/setup.bash
> cd /path/to/my/workspace/src
> catkin_create_qt_pkg qdude
> cd /path/to/my/workspace
> catkin_make --force-cmake
> rosrun qdude qdude

Simply catkin_make in place (native compile) to compile. We've temporarily dropped cross compiling support with the mingw cross compiler on groovy (we're not using any longer) but is possible. Feel free to ask questions if you want to get it working.

Once compiled and running, you can:

For more advanced qt options (e.g. specifying qt components), see the notes in qt_build for a more detailed explanation now how to use the cmake api to configure your package.

Screenshot

mingw_cross/Tutorials/Mingw Qt-Ros Packages/mingw_demo.png


2020-01-18 13:02