Ament/Colcon: Share variable between package CMakeLists
I want to share a filepath variable between the `CMakeLists` of two packages. When I set in the first` CMakeLists` a variable using the following ways: set(varABC "x" CACHE STRING "Description") set(...
View ArticleROS2 for Win32 (x86): How to make colcon call cmake without "Win64"?
Hi, for a couple of days now, I've been trying to compile ROS2 for x86 under Windows. Because of other dependecies, I can't use x64. I tried a lot of stuff on my Windows 10 64bit machine that didn't...
View ArticleCMake Error: The following variables are used in this project but they are...
Hello everyone, Actually, I am working on Ubuntu 14 and Indigo Version, so am trying to make some packages. I got an error message below : -- Using these message generators: gencpp;genlisp;genpy CMake...
View Articlecannot compile - catkin vs. ros-melodic on ubuntu 18.04
Hi, I know that this issue is partially redundant but after days of research I cannot find any suitabel answer: I am usung odroid C2 on Ubuntu 18.04 (3.16.65.39) from hardkernel and I am trying to...
View Articleplease tell me how to write LAUNCH file in ROS2 CRYSTAL ...and also how to...
your answers give me lot of boost up to me...
View Articlecatkin build with multi-core make for building individual packages
I have multiple libraries and the main program. When I run `catkin build` command it starts with 8 jobs but after finishing building libraries continues to build the main program only using 1 job (one...
View ArticleHow to use arbitrary version of OpenCV
Hi, i have ROS Kinetic installed and it comes with OpenCV. I also have the latested OpenCV that i downloaded from github and installed in /usr/local. The following code that i wrote will always use...
View ArticleCMake can't find C++ compiler in Linux Mint
HI everyone, I'm using Linux Mint 17.2 and got this message below while trying to create a catkin workspace: bruna@bruna-laptop ~/catkin_ws $ catkin_make Base path: /home/bruna/catkin_ws Source space:...
View ArticleHow to Build with Extra Warning Flags without ROS Header Warnings?
I'm attempting to enable the -Wextra and -Wall flags in my packages such that potential bugs can be caught from these warnings. Enabling these flags causes a huge cascade of warnings from ROS headers...
View ArticleProper CMakeLists
It looks like I do not understand something in CMakelists. In my package, I have two C++ files, one called uart.cpp and another one called joint.cpp. Joint uses uart functions and variables but only...
View ArticleWorkflow for CLion and ROS
So I've had a pretty good start with ROS using the tutorials, but the entire build toolchain is an absolute nightmare as far as I understand. Having to continuously add the executable and source files...
View Articleerror installing depth_nav_tools
Hi All, I am trying to install `depth_nav_tools`, however, the catkin_make fails with errors: In file included from...
View ArticleProblem when building with rosbuild
I am trying to build my project using rosbuild and when I remove the rosbuild_init() it works. Here it goes the CMakeList.txt> cmake_minimum_required(VERSION 2.4.6)>...
View ArticleDisable generation of Javascript, Lisp, EusLisp messages
In a standard `CMakeLists.txt`, message parsing code for Javascript, Lisp and EusLisp gets generated, but I'm not interested in these. Is there an easy way to disable this generation?
View Articlegenerate cmake debug files for isolated catkin workspace
Hi everyone, I have a problem while trying to use eclipse to debug ros c++ projects in an isolated catkin workspace. In this workspace I have several packages, that I build with: catkin_make_isolated...
View ArticleHow to properly set AMENT_PREFIX_PATH?
Hi, I have some doubts about how `AMENT_PREFIX_PATH` and `CMAKE_PREFIX_PATH` should be set. According to the ament design documentation http://design.ros2.org/articles/ament.html > Therefore ament...
View ArticleEnforce consecutive execution order for gtest and rostest.
My ROS package contains two test executables, one gtest and one rostest. They are specified in the CMakeLists as, `catkin_add_gtest(...)` and `add_rostest_gtest(...)` respectively. When performing...
View ArticleInstall a package parallel to /opt/ros
I have a custom package that I built. I ran bloom-generate rosdebian on the package and generated a debian folder. When I looked into debian/rules, I saw the following,...
View ArticlePackaging protobuf files using ament_cmake for ROS2
I'm trying to create an ament package for some protobuf files. Currently I have the cmake in my protobuf related package invoking protoc to generate the C++ and header files. However I feel like I'm...
View ArticleCMake Upgrade for ROS Melodic in Ubuntu 18.04
Hello Everyone, In my ROS project I want to use a C++ library written by myself. This library builds with CMake itself and use the FetchContent module which was introduced in CMake version 3.11. I...
View Article