Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Browsing latest articles
Browse All 354 View Live
↧

CLion not-catkin packages

I am using CLION for development of ROS C++ files. In my project some files are not catkin compatible but standalone CPP packages. When loading the top level CMakeLists into CLion, I receive an error,...

View Article


How to correctly link opencl with ros?

I just have installed opencl in my ubuntu 18 based on [this](https://gist.github.com/Brainiarc7/1d13c7f432ba03a8e38720c83cd973d5) tutorial. i also find similar question...

View Article


rplidar_ros fails to build MacOS X

Dear ROS community, while trying to build the rplidar_ros package in the catkin_ws I get the following error: Scanning dependencies of target rplidarNodeClient Scanning dependencies of target...

View Article

Cmake error when installing ros-melodic-desktop-full

Hi guys. I am running Manjaro Linux, and I am trying to install ros-melodic-desktop-full from the AUR. The error I get is: ImportError: "from catkin_pkg.package import parse_package" failed: No module...

View Article

How to properly build include a small library/namespace in a ROS-Project

I have a ROS project consisting of several nodes each of which is built from the CMakeLists like this: `add_executable(node1 src/node1.cpp src/node1callback.cpp) target_link_libraries(node1...

View Article


[qtcreator-ros] CMake Project parsing failed.

Hello, Using Ubuntu 18.04 & melodic, using Qt Creator 4.8.0-rc1 (4.7.84), and Qt5.12.0. The general idea is that I have reinstalled fully my PC, and want to keep on working on a project started...

View Article

C++ define for ros-version: ifdef ROS_MELODIC

I have some problems with some planner plugins a implemented for the navigation stack. They now are not compatible with melodic because several parts of the API changed, ie: *...

View Article

How to know which version of gcc/g++ compiled ros and how to change it for...

Hi, I have a problem compiling my workspace: [https://answers.ros.org/question/313955/undefined-reference-to-everything/](https://answers.ros.org/question/313955/undefined-reference-to-everything/) and...

View Article


ld searches in wrong folder for libraries when cross-compiling

Hi guys, I'm trying to cross-compile my own packages for armv7, so far I've been able to specify the correct toolchain by using the rostoolchain.cmake file. I also fixed a lot of other things I've had...

View Article


Add imported executable to package

Here is the CMakeLists.txt of my package find_package(catkin ) catkin_package() add_executable (my_test main.cpp) add_executable(my_test_imported IMPORTED) set_target_properties(my_test_imported...

View Article

CMake 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

Packaging 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 Article

Install 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 Article


Enforce 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 Article

How 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 Article


generate 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 Article

Disable 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 Article


Problem 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 Article

error 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 Article

Workflow 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 Article

Proper 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 Article


How 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 Article


CMake 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 Article

How 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 Article

catkin 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 Article


please 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 Article

cannot 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 Article

CMake 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 Article

ROS2 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 Article



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 Article
Browsing latest articles
Browse All 354 View Live