Questions tagged [cmake]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

find_package() of exported dependencies builds with --merge-install but not isolated

Running ubunut 22.04, ros humble from binaries. I have written 3 packages. Two containing libraries and the third an executable. I have split the libraries just because they were semantically ...
Nyquist's user avatar
  • 134
0 votes
0 answers
7 views

Ros2 Link library plugin hardware with other library

I need in hardware interface plugin to create object other library. How can I link a library? add_library(robot_library) add_library(hardware_library) I tried ...
Вадим Елисеев's user avatar
1 vote
1 answer
26 views

How to add command line tools for math to Gazebo?

I am trying to solve this issue on the gz-math repo. My initial approach was to make changes to CMakeFiles.txt inside gz-math and add a cpp code to convert a quaternion given in arguments to Euler ...
sdhar04's user avatar
  • 11
0 votes
1 answer
14 views

Unable to use custom message from another ROS package

I have been trying to use a custom message called sPoses from one package (jackal_2dnav) in another (explore) in the same ROS workspace, but I have been unable to get it to work. I added jackal_2dnav ...
Joshua L's user avatar
0 votes
1 answer
31 views

How to use custom ros2 msg files without ament?

I am using ros2 without colcon or ament in my project. It works with existing message types but now I want to use custom ros msgs in this project. I have no idea how to do that. For ros1 I can see an ...
nimesh00's user avatar
0 votes
0 answers
55 views

How to include a base class without any ROS2 functionality in 2 different ROS2 packages

I have a base class which contains some generic functions and they're not ROS related. An example of this class would be: ...
Mostafa_Hegazy's user avatar
0 votes
0 answers
19 views

Issue - Unknown CMake command "list_append_unique"

Base path: /Users/arghymu/my-robotics-system/catkin_ws Source space: /Users/arghymu/my-robotics-system/catkin_ws/src Build space: /Users/arghymu/my-robotics-system/catkin_ws/build Devel space: /Users/...
Arghya's user avatar
  • 1
0 votes
1 answer
58 views

How to add wiringPi library with cmake on vscode?

I tried a few things but I am not so knowlegable about it. I tried with cmakeLists.txt: ...
Jonathan Dawsa's user avatar
2 votes
1 answer
106 views

ROS 2 cross-compile cannot handle custom dependency

Issue Reproduction Hello, I am currently working on cross-compiling ROS 2 from x86 to ARM. In my project, I have overwritten some of the built-in ROS 2 packages and also created some custom basic ...
aezakmi's user avatar
  • 21
0 votes
0 answers
18 views

Library index error in ROS Foxy

The error is shown below: ...
Athira GS's user avatar
0 votes
1 answer
157 views

getting a warning regarding cmake whiile doing catkin_make in ROS noetic

I've build a few workspaces for different project but i never got any error, but this time, got this msg. ...
akash's user avatar
  • 1
0 votes
1 answer
133 views

catkin cmake can't find ros packages

when building my ros1 (noetic ubuntu 20.04) package, catkin cmake can't find Catkin packages automatically. (setting the apth for all works, but it is not the right way: ...
Bilal's user avatar
  • 144
0 votes
1 answer
49 views

Colcon build does not build all of my packages (after I deleted and reinstalled older cmake)

I am working for a drone university project in a team and we set up a project in ROS2 galactic (https://github.com/AlboAlby00/CrazyflieControllers). I wanted to try out a new github repository which ...
Daniel He's user avatar
0 votes
1 answer
19 views

CMake Error: 'iDynTree::idyntree-core' was not found before

I am trying to build my package ros2_control_demo_hardware which uses ros2 control. But I have the following error after colcon build: ...
Benno's user avatar
  • 3
0 votes
0 answers
24 views

Custom messages are not generated in ROS 2

Project Goal I am working on a project with ROS 2 where my primary goal is to read data from LVX files (associated with Livox LiDAR sensors) and publish this data to a ROS bag. The key steps in my ...
Choppari Veneela's user avatar
0 votes
0 answers
67 views

ModuleNotFoundError while compiling ROS 2 beginner package

I'm attempting to build a ROS 2 package named my_robot_interfaces using the colcon build tool. However, I'm encountering the error message ...
Hrishikesh k's user avatar
0 votes
0 answers
53 views

ROS2-Ompl integration build error

I am a total noob in cpp and linux terminal. I am working to get my little turtlebot3 in simulation to navigate through the map I generated through ros slam. Now I am facing some errors when using tf2 ...
Venkat Balaji's user avatar
0 votes
0 answers
31 views

Compilation Errors with Gazebo Plugin on Windows

I am currently working on a project where I need to build a Gazebo plugin for a UR5 model. My development environment is set up on Windows, and I am using MinGW as my compiler within a Conda ...
Dev's user avatar
  • 1
0 votes
0 answers
19 views

ros2 using cpp ament package library in another cpp ament package

i'm trying to transform ego-planner-swarm founded in: https://github.com/ZJU-FAST-Lab/ego-planner-swarm to ros2... in my ros2 workspace, i have 3 packages... bspline_opt(as library) plan_manage ...
arash mokhtari sherkat's user avatar
0 votes
1 answer
200 views

ROS2 port of ORB SLAM3. Can copy libDoW2.so and libg2o.so using Cmake but getting error while loading shared libraries: libpango_vars.so

Ubuntu 22.04, ROS2 Humble Hi, To port my research project to ROS2, I have been trying to make a native ROS2 implementation of ORB SLAM3 following the ROS1 implementation done by thien94 in ...
Azmyin Md. Kamal's user avatar
0 votes
1 answer
248 views

ROS2 - CMake Error - ament_target_dependencies() the first argument must be a valid target name

I created a plugin ConditionNode to use on the behaviour tree to alter some behavior in navigation. It appears that my cmake file has an error when i run colcon build. The error is: Starting >>&...
Lourenço Conceição's user avatar
0 votes
3 answers
78 views

Compiler issues using Raspberry Pi 4B

I am a newbie at ROS, so there is a lot of things to learn. I successfully installed Ubuntu Server 22.04 and ROS2 Humble on my Raspberry Pi 4B (2GB). When trying to build the examples with colcon, the ...
Siegmund's user avatar
0 votes
1 answer
39 views

Debugging ros2 libraries

I am trying to understand custom memory allocators for ROS2. To understand the functioning of tlsf I am using tlsf_example ...
red_demise's user avatar
0 votes
1 answer
20 views

How to use libSegFault with ROS node(let)s?

I'm trying to debug a segmentation fault on a ROS nodelet. I've tried to use libSegFault by adding the following lines to CMakeLists.txt: ...
xperroni's user avatar
  • 1,353
0 votes
1 answer
195 views

I get the error "find_package(catkin) failed" in my workspace after cmake

I am working with a catkin workspace in C++ and when I open it in an IDE, the cmake command gives the following error: CMake Error at CMakeLists.txt:65 (message): find_package(catkin) failed. catkin ...
Emco's user avatar
  • 1
0 votes
0 answers
58 views

A cmake error about ros catkin in windows system

my CMakeLists.txt is like belows, ...
Xiuyi Yang's user avatar
0 votes
1 answer
60 views

Rviz2 Custom panel plugin: "Could not load library dlopen error, undefined symbol: _ZTV10Rviz2Panel, at ./src/shared_library.c:99"

I have a package, inside which I have a .cpp and .hpp files for a custom rviz2 panel implementation. Currently, the most bare bones possible. Everything compiles normaly. However, when I add the panel ...
Krzo's user avatar
  • 11
0 votes
0 answers
52 views

Create a custom static library for microros without cross-compilation

I am trying to build a static custom library for Microros. I am building it directly on board (Kria KR260) and this is the cmake I am using (no cross-compilation): ...
N-K's user avatar
  • 1
1 vote
1 answer
25 views

Could I create multi dynamic_reconfigure in one package in one CMakeList?

I have two *.cfg files, each one working with its executable process. The CMakeLists: ...
Adam Peng's user avatar
0 votes
1 answer
189 views

Using TensorFlow in ROS2

I'm trying to add gesture recognition capabilities in my ros2 humble C++ package, and I started out with trying to use the TensorFlow C++ API. However, I am unable to install TensorFlow for my ROS2 ...
KK29's user avatar
  • 23
0 votes
0 answers
67 views

CMakeList git clone then add_subdirectory - not working

I got this problem where the directory listed on add_subdirectory does not find a CMakeList file and as I checked the folder, it is empty, the package is not yet cloned. Is there a way where the ...
racaraca69's user avatar
0 votes
1 answer
53 views

Custom Protobuf messages for Gazebo Sim, in separate package

I would like to define custom Protobuf messages for Gazebo Sim in a separate 'interfaces' repository (i.e. not in the gz-msgs source tree), and use them in another '...
JRTG's user avatar
  • 1,664
0 votes
3 answers
361 views

Error: Could not configure catkin workspace: Cannot load environment from resultspace "/opt/ros/humble"

I am trying to build a project for that I am using Ubuntu 22.04 Linux version. For ROS-Humble: https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html For Catkin-tools: https://catkin-...
Nani's user avatar
  • 1
0 votes
0 answers
74 views

On windows build fails cannot open/find include file

I'm trying to build a mini toy project on windows (ros humble) and 1 package (the last one) fails to build throwing the error fatal error C1083: Cannot open include file: 'test_actions/actions.hpp': ...
Tony's user avatar
  • 21
0 votes
1 answer
38 views

Adding environment variable to compile transport code

Hello, I'm writting some piece of code to extract info from gazebo simulations, making use of a topic that is being published in transport. My issue is, using the publisher/subscriber CMakeList.txt ...
user avatar
0 votes
1 answer
61 views

colcon build doesn't generate executables

I am trying to get started with ROS2 Humble and when running colcon build no executable files are created. My project structure looks like this: ...
user avatar
0 votes
1 answer
5 views

Unable to include a header-only library

I have the following project structure: utils include image_utils.h CMakelists.txt package.xml graph src graph.cpp CMakelists.txt package.xml I am ...
user avatar
0 votes
1 answer
26 views

Why cmake is looking for default Boost version?

I have installed latest Boost library 1.80.0 from source on Ubuntu 20.04, then I tried to install the abb_robot_driver, but I ...
user avatar
0 votes
1 answer
304 views

How to create ROS2 library with dependence installed with CMake FetchContent?

I want to create a package that combines the rclcpp libraries and an external library installed with CMake FetchContent. How do I properly create a cmake file? I have already tried different ways, but ...
user avatar
0 votes
1 answer
18 views

How to override DEFAULT_RMW_IMPLEMENTATION?

When I build things with colcon I see compiler invocations like this: g++ -DDEFAULT_RMW_IMPLEMENTATION=rmw_fastrtps_cpp ... I would like to override that ...
user avatar
0 votes
2 answers
297 views

Managing dependencies in ROS2 workspaces

I am starting a new ROS2 project and would like to use an external library that is not yet packaged for ROS (this one if that helps). I added that source to my workspace and modified the ...
user avatar
0 votes
1 answer
135 views

[ROS2]error while loading shared libraries: libxsensdeviceapi.so.4: cannot open shared object file: No such file or directory

I'm trying to migrate a ROS1 libraries to ROS2 and have some trouble with setting up the packages. I can colcon build my package sucessfully, but it display the ...
user avatar
0 votes
1 answer
54 views

Compiling Cartographer ros failed (cartographer_pbstream)

Hi I followed the exact step by step procedure suggested at https://google-cartographer-ros.readthedocs.io/en/latest/compilation.html to build the cartographer package. I came to the build and install ...
user avatar
0 votes
1 answer
4 views

main doesn't find the functions in the header file

Hi! I would like to create a header file, but when I do catkin_make, it doesn't find the functions in the header file. I think that the problem is in my CMaleLists.txt. Do I have to add something ...
user avatar
0 votes
1 answer
398 views

ros2 foxy including header file from other package

I have two packages, temp_lib and temp_pkg. In temp_lib I have a file ...
user avatar
0 votes
2 answers
4 views

Multiple Cmakelist.txt

I have a Cmakelist.txt that looks as follows in my project ...
user avatar
1 vote
1 answer
172 views

Including custom header file in ROS2 CMakeList

Hello everyone, I'm trying to create a ROS2 package, which has a custom header file, and links to other header files downloaded from GitHub (in this case WiringPi). For doing this, I understand that I ...
user avatar
0 votes
1 answer
26 views

Couldn’t find executable named talker.cpp

When I run catkin_make, talker listener all files are linked and showed build target talker listener 100%. But when i want to run this using rosrun it says "couldn’t find executable named talker&...
user avatar
0 votes
1 answer
93 views

no such file or directory ros/ros.h

In my file I have included #include "ros/ros.h" it says no such file or directory. I am using VS Code, ROS noetic on Ubuntu 20.04 LTS. Here is my package.xml: ...
user avatar
0 votes
1 answer
4 views

CFG_EXTRAS equivalent for ros2/colcon

We have a ROS1 CMakeLists.txt that contains: ...
user avatar

1
2 3 4 5
11