catkin

Trigger catkin build process from within python

房东的猫 提交于 2020-07-22 08:35:52
问题 I am working on a python script to organize a project consisting of several repos. Some of the targets are build using catkin. Since catkin is a python tool, I suspect there has to be a way to call an equivalent to catkin build from within a python script. However, I am struggeling to do so. The closest I have come so far is: from catkin_tools.commands import catkin catkin.main(["build"]) However, this does not look correct to me, apart from the fact that upon finishing the build process, I

How to port a qmake project to cmake

為{幸葍}努か 提交于 2020-01-22 16:47:40
问题 I would like to "port" this C++ project, which uses qmake (i.e., a Tool.pro file) for building, to cmake . Essentially, I'm asking how to go about writing the necessary CMakeLists.txt file(s) by looking at the Tool.pro file above. This is what I've done so far: include_directories(../lib/cudd-2.5.0/include BFAbstractionLibrary) add_executable(slugs BFAbstractionLibrary/bddDump.cpp BFAbstractionLibrary/BFCuddVarVector.cpp BFAbstractionLibrary/BFCudd.cpp BFAbstractionLibrary/BFCuddManager.cpp \

catkin_make unable to create executable and automatically copy header files to devel

允我心安 提交于 2019-12-25 08:09:04
问题 when I ran my catkin_make, I understand that it should automatically copy the header files which I included in the main cpp file into devel and create an executable, however, it is not doing so. The error: Linking CXX executable /home/catkin_ws/devel/lib/mqtt_pub/mqtt_pub_node /usr/bin/ld: cannot find -lmosquitto.h collect2: error: ld returned 1 exit status make[2]: *** [/home/catkin_ws/devel/lib/mqtt_pub/mqtt_pub_node] Error 1 make[1]: *** [mqtt_pub/CMakeFiles/mqtt_pub_node.dir/all] Error 2

ros can't find OpenCV , the path /usr/local/

随声附和 提交于 2019-12-12 03:28:29
问题 I am working with ros and OpenCV. I installed OpenCV in the default path /usr/local , but when I build programs with catkin_make in my workstation, it shows Project cv_bridge specifies /usr/include/opencv as an include dir, which is not found. Can you show me what can I do to solve the problem? Thank you. 回答1: I recommend you use the opencv2_catkin package that automatically finds and links your package to OpenCV. As per the Readme, just add the following dependency to your own package:

ROS with QtCreator: autocompletion

感情迁移 提交于 2019-12-12 03:22:28
问题 I'm using and like QtCreator to code and build my ROS projects written in c++ . Unfortunately the auto-completion for my own header files is not working: e.g. #include "LineTracker.hh" Building the project works perfectly. And also the auto-completion for other external packages like ros or opencv is working. Update 2.0: With QtCreator 3.6 the solution is not working Update 1.0: Found a solution, see bottom! Thats how my CMakeLists.txt looks: cmake_minimum_required(VERSION 2.8.3) project(line

Can a ROS node be created outside a catkin workspace?

拈花ヽ惹草 提交于 2019-12-11 21:12:22
问题 I want to create a ROS publisher node outside a catkin workspace. Can it be created? 回答1: Of course you can. Treat ROS like any other cpp library or python package. In python you have to keep PYTHONPATH environment variable pointing to ros packages in /opt/ros/kinetic/lib/python2.7/dist-packages . In cpp you have to tell compiler where to look for includes ( /opt/ros/kinetic/include ), libraries ( /opt/ros/kinetic/lib ) and which library to import. For the simplest application -lroscpp

ROS-Jade版在UbuntuKylin15.04上的安装和源码编译完整脚本

♀尐吖头ヾ 提交于 2019-12-10 01:21:19
ROS( http://www.ros.org/about-ros/ )是一个机器人操作系统,源于斯坦福,现在由开源机器人基金会( http://www.osrfoundation.org /)进行发展。目前最新的版本是Jade。ROS并不是完整的操作系统,而是一个应用层的运行环境,支持很多种宿主操作系统,如Ubuntu,也支持Mac OS X,支持ARM上的Ubuntu和Android。设想的生态链如下所示: 一、安装编译好的版本的脚本 完整的说明请参阅: http://my.oschina.net/u/2306127/blog/480585 #加入软件源到系统软件仓库列表 sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' #加入软件仓库的认证码 sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116 #执行软件仓库列表更新 sudo apt-get update #安装全部桌面应用软件 sudo apt-get install ros-jade-desktop-full

CMake find_package not finding Find<package>.cmake

守給你的承諾、 提交于 2019-12-06 12:35:52
问题 I made and installed the aruco library, which put a Findaruco.cmake file in the /usr/local/lib/cmake directory. In my CMakeLists.txt file I have ... find_package(aruco REQUIRED) and it always returns the standard error By not providing "Findaruco.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "aruco", but CMake did not find one. Could not find a package configuration file provided by "aruco" with any of the following names:

CMake find_package not finding Find<package>.cmake

雨燕双飞 提交于 2019-12-04 18:59:35
I made and installed the aruco library, which put a Findaruco.cmake file in the /usr/local/lib/cmake directory. In my CMakeLists.txt file I have ... find_package(aruco REQUIRED) and it always returns the standard error By not providing "Findaruco.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "aruco", but CMake did not find one. Could not find a package configuration file provided by "aruco" with any of the following names: arucoConfig.cmake aruco-config.cmake Add the installation prefix of "aruco" to CMAKE_PREFIX_PATH or set "aruco

How to port a qmake project to cmake

孤街醉人 提交于 2019-12-03 21:57:41
I would like to "port" this C++ project , which uses qmake (i.e., a Tool.pro file) for building, to cmake . Essentially, I'm asking how to go about writing the necessary CMakeLists.txt file(s) by looking at the Tool.pro file above. This is what I've done so far: include_directories(../lib/cudd-2.5.0/include BFAbstractionLibrary) add_executable(slugs BFAbstractionLibrary/bddDump.cpp BFAbstractionLibrary/BFCuddVarVector.cpp BFAbstractionLibrary/BFCudd.cpp BFAbstractionLibrary/BFCuddManager.cpp \ BFAbstractionLibrary/BFCuddVarCube.cpp tools.cpp synthesisAlgorithm.cpp synthesisContextBasics.cpp