Qt App Templates

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

Tutorial Level: BEGINNER

New in electric

Goal

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

Details

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

  • a ros master chooser
  • separate ui and ros node classes
  • ros node class has connections for gui logging and a spinner

It can be compiled natively in linux or with the mingw cros compiler.

Usage

> rosrun qt_create roscreate-qt-pkg qdude

Simply make in place (native compile) or use rosbuild2 to cross-compile with mingw - refer to the mingw build environment and the mingw qt-ros tutorials for more details.

Once compiled and running, you can:

  • Affect gui changes in main_window.ui with qt designer

  • Modify qt code in main_window.hpp/main_window.cpp

  • Do ros topics and services in qnode.hpp/qnode.cpp.

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

Wiki: qt_create/Tutorials/Qt App Templates (last edited 2012-04-02 20:35:12 by TylerCove)