ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
--------------------- How to open a catkin package in QT creator --------------------
catkin_create_pkg <package name=""> [depend 1] [depend 2] [depend 3]
to make build, devel and CMakeLists.txt file
source ./devel/setup.bash
go to opt/ros/hydro/share/catkin/cmake
copy "toplevel.cmake" to the folder u have package
FILE(GLOB children ${CMAKE_SOURCE_DIR}/) FOREACH(child ${children}) IF(IS_DIRECTORY ${child}) file(GLOB_RECURSE dir_files "${child}/") LIST(APPEND extra_files ${dir_files}) ENDIF() ENDFOREACH()
open a QT (go to QT folder and run the file) from a terminal that u've sourced the setup.bash file
In QT creator ... open project -> go to the folder of a package -> open "CMakeLists.txt"
Build Location: choose "build" folder from the folder of a package
Run Cmake : -DCATKIN_DEVEL_PREFIX=../devel -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Debug