ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Eros also has a package with qt versions of some of the roscpp_tutorials eros_qt_tutorials. They integrate ros/qt along with the .ui designer files so that its easy to build your layout.
You can install eros and build/run eros_qt_tutorials directly, or if you just want to check out the package code without all of eros and pull bits from that:
svn co https://code.ros.org/svn/eros/tags/diamondback/tests/eros_qt_tutorials
The only special thing it uses is the eros_prepare_qt4 cmake macro (in CMakeLists.txt) which doesn't do anything special - it just helps patch a few corner case issues for static qt builds until the next cmake release comes out with some fixes.
If doing a shared library build, you can effectively replace that eros_prepare_qt4 with
# Add other components as you need them
find_package(Qt4 COMPONENTS QtCore QtGui)
include(${QT_USE_FILE})
# Need to pick up autogen'd ui files in build dir, so add the following
include_directories(${CMAKE_CURRENT_BINARY_DIR})
2 | No.2 Revision |
Eros also has a package with qt versions of some of the roscpp_tutorials eros_qt_tutorials. Note that although its in e(mbedded)ros, you don't have to be doing embedded to compile these - they compile just as well natively. They integrate ros/qt along with the .ui designer files so that its easy to build your layout.
You can install eros and build/run eros_qt_tutorials directly, or if you just want to check out the package code without all of eros and pull bits from that:
svn co https://code.ros.org/svn/eros/tags/diamondback/tests/eros_qt_tutorials
The only special thing it uses is the eros_prepare_qt4 cmake macro (in CMakeLists.txt) which doesn't do anything special - it just helps patch a few corner case issues for static qt builds until the next cmake release comes out with some fixes.
If doing a shared library build, you can effectively replace that eros_prepare_qt4 with
# Add other components as you need them
find_package(Qt4 COMPONENTS QtCore QtGui)
include(${QT_USE_FILE})
# Need to pick up autogen'd ui files in build dir, so add the following
include_directories(${CMAKE_CURRENT_BINARY_DIR})