Skip to main content

Questions tagged [colcon]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
16 views

Build with colcon only up to packages in a given directory?

I have a workspace with multiple repositories checked out, and each repository contains many ROS 2 packages. The packages in a repository can depend on packages in the other two repositories. For ...
woodwardsquidward's user avatar
1 vote
1 answer
13 views

Can't colcon build ros2 humble package for UR10e control

I am using ros2 humble to control a ur10e robot. I have successfully installed drivers and can use ...
Single-Arm-Endeavour's user avatar
0 votes
0 answers
10 views

ROS2 colcon build error MSB8066: ModuleNotFoundError: No module named 'rosidl_generator_cs'

Using ros2cs, I am trying to build a package in Windows that includes a custom message type and eventually a service, for use in a C# solution aided by rclnet. But executing this from the Visual ...
Eric Eggers's user avatar
0 votes
0 answers
25 views

python3-catkin-pkg : Conflicts: catkin but 0.8.10-7 is to be installed

I am working on my Final Year Robotics Project, relatively new to Robotics. I am using ROS2 on Ubuntu 22.04 Jammy Jellyfish. I ...
Ammar Mujtaba Tariq's user avatar
0 votes
0 answers
9 views

/usr/bin/ld: cannot find -lpackage_name

I am new to ROS2 (Foxy) and CMake. I have a ROS2 package called senso_gui_control, that is dependent on another package in my workspace (...
shellyshampaine's user avatar
1 vote
1 answer
52 views

How to compile package located outside of docker image using docker-based ROS2

I have used catkin_make in ROS1 to build packages successfully. I am using ROS2 in an image in docker on a raspberry pi zero 2W. To my knowledge I cannot install ROS2 in raspbian OS directly so I am ...
Vince's user avatar
  • 11
0 votes
0 answers
14 views

colcon build error "Findserial.cmake" Not found in CMAKE_MODULE_PATH

I am trying to colcon build a ros repository (which include some packages for controlling some step motors). After sourcing ROS in the root I ran colcon build, and it threw this error: ...
cat_in_the_loop's user avatar
1 vote
1 answer
98 views

ModuleNotFoundError: No module named 'ament_package' in ROS2 Humble Windows

I'm trying to (colcon) build a new C++ package with a binary ROS2 Humble installation in Windows from a Visual Studio 2022 Developer Command Prompt, but each time I run "colcon build" in my ...
Eric Eggers's user avatar
0 votes
1 answer
27 views

Excessive Logging Output During colcon build of ROS2 Packages

I am experiencing an issue with excessive logging output during the colcon build process for packages in the nav2. Despite not having verbose flags set, the build process generates a large amount of ...
Marcus Vinicius's user avatar
0 votes
1 answer
25 views

ROS2 Custom message package is not compiling. Can you see what I am doing wrong?

I have added all the information that might be relevant - it is a lot! The boilerplate required to create a package seems overwhelming to a beginner. This is the error from colcon: ...
user1759557's user avatar
1 vote
0 answers
23 views

How to use Python virtual environments with ROS 2 building with --symlink-install flag?

I want to use a Python virtual environment with ROS 2 and build my package with colcon build --symlink-install. I followed this simple tutorial: Running ROS2 Nodes ...
hugoyvrn's user avatar
1 vote
0 answers
58 views

Can't build with colcon on ROS2 Humble. Issue with empy library

I'm on Ubuntu 22 Desktop. Just installed ROS 2 Humble and can't proceed with this tutorial https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Colcon-Tutorial.html When I try to execute ...
Raúl Bezares's user avatar
0 votes
0 answers
33 views

symlink-install with easy_install python warning

I have encountered an issue when I try to use --symlink-install when I try to build my packages with colcon. This is my scenario: When I ...
robot_student's user avatar
0 votes
0 answers
8 views

Building ro2 from source failed due to tf2_ros_py

I'm trying to build ROS2 from source on ubuntu 20.04 on parallels on apple silicon, but I'm getting this error ...
Anas Badr's user avatar
0 votes
0 answers
15 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
  • 204
0 votes
3 answers
32 views

Path to colcon test output directory in a gtest

Is there a way to specify the path to <workspace>/log/test_<date_time>/ from within a gtest executed with colcon test...
Matt's user avatar
  • 11
0 votes
1 answer
146 views

colcon build disable or hide warning: -Wunused-parameter

I have a lot of warning: unused parameter ‘’ [-Wunused-parameter] when running colcon build. Actually, so much so that I'm ...
Rémi.T's user avatar
1 vote
1 answer
28 views

No Python executables after colcon build (ament_cmake_python)

So I'm trying to create a ROS Humble Python pkg, but after running colcon build --symlink-install and source install/setup.bash ...
mink4sure's user avatar
0 votes
2 answers
59 views

Custom Message header file does not generated during build and gives an error

EDIT: SOLUTION IS IN THE COMMENTS OF THE ANSWER I am migrating a project from ROS1 to ROS2, I haven't created the project myself. In the main package, which is named ...
Omar El Sherbeny's user avatar
0 votes
0 answers
18 views

industrial_ci - Add colcon arguments for selecting packages to build

I'm looking for some solutions: to add option --packages-up-to <package_name> during the colcon build and test phase. How can be it done on Github Actions? I'...
Rafał Górecki's user avatar
0 votes
1 answer
53 views

colcon build unresponsive, maxed out ram/cpu

I'm running ROS2 Humble and recently my computer has been freezing/becoming unresponsive in the middle of colcon build. The build is terminated or I have to force ...
Yato's user avatar
  • 58
1 vote
1 answer
39 views

ldlidar ros 2, colcon build error, pthread mutex init/lock/unlock not declared

So i am trying to use the LD19 Lidar from ldrobot with ros2_iron. I am following this tutorial: https://github.com/ldrobotSensorTeam/ldlidar_stl_ros2. When i enter colcon build in the console it runs ...
Kyell's user avatar
  • 13
0 votes
1 answer
33 views

Where to put packages folders with source you want always available to ROS2?

Historically I always did apt install ros-humble-<package_name> but for some reason the package I am wanting is not available. I can download the package from github and compile it using colcon ...
FourierFlux's user avatar
1 vote
1 answer
33 views

Link against another ROS2 package pre-compiled shared library

I am building a ROS2 package to extract data from maps generated by the ROS2 package slam_toolbox . This package has a lib folder with a small implementation of karto datasets and mappers that I need ...
janonespe's user avatar
0 votes
1 answer
35 views

ROS2 colcon bulid Error

If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result ...
ly121's user avatar
  • 1
0 votes
1 answer
74 views

Could not find a package configuration file provided by "gz-cmake3"

I am running Fortress and Humble and I am getting this error. ...
Amos's user avatar
  • 1
0 votes
2 answers
49 views

How to configure Colcon?

I have been working for some time on a ros2 docker container development environment. Since I had to do some git clone commands into an imaginary folder and needed ...
Guela kais's user avatar
7 votes
2 answers
1k views

"colcon_core.package_augmentation" Error When Building Python Package With Colcon in ROS2 Humble

I get the following error when trying to build my python package with Colcon build ...
umut373's user avatar
  • 73
0 votes
1 answer
96 views

Can not build Moveit

I am using Ubuntu 22.04.4 LTS and ROS2 Humble. I am trying to build Moveit for some robotic applications but I could not do colcon build the tutorials. I tried to do the Moveit tutorials. I got some ...
EngineerandDeveloper's user avatar
1 vote
0 answers
42 views

How to use pre-built static library on ROS2 node

I have .a file and header file (.h) for an SDK for a thermal sensor. This is my package structure. ...
yuan's user avatar
  • 11
0 votes
2 answers
19 views

ROS2 colcon ament: includes non-existent path /usr/local/lib/python3.10/dist-packages/numpy/core/include . How to set the folder to python3/?

I build an ament package A on a docker container on the cloud. Then, I build locally package B that has A (which I pulled via conan) as dependency. And I see this error ...
Alessandro Amici's user avatar
0 votes
1 answer
70 views

ROS2 - modify py launchfile without rebuilding package

In ROS1 we could modify XML launchfile and roslaunch them directly without catkin_make rebuilding, in ROS2 it seems if I modify python launchfile, I need to rebuild the package otherwise ...
Martin's user avatar
  • 198
0 votes
1 answer
101 views

C++ library as submodule not found by linker

I added a CMake-based library as a submodule of a package of mine. With colcon I can correctly build and install the library file and the include files in the ...
Myzhar's user avatar
  • 198
0 votes
2 answers
889 views

ROS 2 Package Executable Not Found by ros2 run

Environment: Operating System: Ubuntu 22.04 ROS Version: ROS 2 Humble Hawksbill Issue: I have created a ROS 2 package named robot, and I am able to build it ...
Mateusz's user avatar
0 votes
1 answer
695 views

colcon build exclude package

Can it be possible to exclude a package from build process, my modifying its CMakeLists.txt So the catkin build command will skip that directory? Best Regards, C.
Can Altineller's user avatar
1 vote
1 answer
276 views

ROS2 Launch file is not found

I am trying to get my ROS2 project into working order. Here are the details of my setup: Building in docker based on osrf/ros:humble-desktop-full my package is laid out like this ...
KopiousKarp's user avatar
2 votes
1 answer
49 views

How to strip down the install directory of a ROS2 package

I need to deploy and update a ROS2 system to an embedded device with limited connectivity. This ROS2 system is made up of many custom packages written both in C++ and Python. At the moment I am just ...
LastStarDust's user avatar
0 votes
1 answer
103 views

Errors with colcon using ros2 tutorial

I've installed ROS2 iron and am following the tutorial [here]https://docs.ros.org/en/iron/Tutorials/Beginner-Client-Libraries/Colcon-Tutorial.html. I have followed the steps up to and including "...
Jevers's user avatar
  • 11
0 votes
1 answer
94 views

error in installation moveit2 tutorial

i tried rosdep install --from-paths src --ignore-src -r -y and src/*/ , src/*/* .. but Cmake ...
ertretff's user avatar
0 votes
1 answer
71 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
148 views

ROS2 Humble colcon tutorial causes flake8 error

I was working on this colcon tutorial and got the following error in the "Build the workspace" section: ...
dererocket's user avatar
0 votes
1 answer
367 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
1 vote
2 answers
1k views

What causes build error: cannot import name 'OVERRIDE_OPT' from 'em'?

When building a pure ROS2 message package (event_camera_msg) on github (CI) using the ros-tooling/[email protected] I get the following cryptic error when building on any ROS2 distro (humble, iron, ...
Bernd Pfrommer's user avatar
0 votes
3 answers
89 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
4 votes
1 answer
1k views

How to speed up colcon build (notably slower than catkin/cmake) and or debug causes?

My team has a ROS2 humble docker image we use for development. It contains our dependencies along with a source installation of Humble targeting Ubuntu arm64 architecture on a Nvidia Jetson device. ...
user1433734's user avatar
0 votes
0 answers
74 views

Build error when using ament_python ROS 2 package

After adding following line to the setup.py: ...
Filip Zorić's user avatar
0 votes
2 answers
413 views

Colcon build error : 0 packages finished

I am using ROS2 humble on Windows 10 and it is installed successfully. Now I am going through this tutorial for creating a workspace: https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/...
Mary's user avatar
  • 1
0 votes
2 answers
144 views

octomap_msgs/conversions.h: No such file or directory

Using 64-bit Ubuntu 22.04.3 LTS On "colcon build" I'm recieving the following error: ...
Ajifoster3's user avatar
0 votes
1 answer
43 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
2 answers
378 views

ROS2 on Windows 10 - `colcon build` uses wrong Python version: "No module named *"

When building my workspace with colcon build, it fails because of missing Python packages: ModuleNotFoundError: No module named 'em' 'em' is just an example, ...
Roberto's user avatar
  • 131

1
2 3 4 5