Questions tagged [colcon]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
42 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
  • 188
0 votes
2 answers
114 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
29 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
0 votes
1 answer
37 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
35 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
33 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
37 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
34 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
57 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
152 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
656 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
65 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
3 votes
1 answer
347 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
53 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
197 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
81 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
34 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
150 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 vote
0 answers
42 views

teb_local_planner problems

I use ROS2 Foxy and I'd like to Colcon build but it's can't the problem make my com not responding. I try to check with this command rosdep install -i --from-path src --rosdistro foxy -y then it ...
Thanapoom Pumee's user avatar
0 votes
0 answers
60 views

MoveIt2 problem to install moveit_configs_utils package during binary downloading

I'm attempting to install MoveIt2 binary on the ROS2 Humble platform, but I'm having trouble installing the moveit_configs_utils package. Before that, I tried to install MoveitIt2 from the source ...
Tomáš Karel's user avatar
0 votes
2 answers
140 views

changes to python code not having effect using colcon build --symlink-install

I am trying to make a publisher by reading the sensor values and sending it throughout. I had an issue at first, so I changed the arguments in the main function as: ...
Bob's user avatar
  • 11
0 votes
0 answers
110 views

ROS2 - Error while building packages with colcon ubuntu in wsl

I am trying to build my first package with colcon but I get the following errors while compiling the examples from ROS repository. I am running Ubuntu 22.04 from WSL2. If anyone knows why is this ...
Sergio Antuna's user avatar
0 votes
1 answer
28 views

Where is CMakefile.txt of colcon?

I get the same issue in pcl https://github.com/PointCloudLibrary/pcl/issues/2303 which is like below /usr/include/pcl-1.10/pcl/octree/octree_key.h:155:9: error: ISO C++ prohibits anonymous structs [-...
Jieun Ko's user avatar
0 votes
0 answers
71 views

Ros 2 Humble Hawksbill Installation on Windows

I followed the official instructions for installing ROS 2 on Windows 11 Pro and the underlay works completely fine. But when I tried to create my own package and then tried to build using ...
Ros wizard's user avatar
0 votes
0 answers
116 views

How to properly link system library to ROS node

I've written a simple ROS2 package with a single node, which I link to a system library (no pkg-config or CMake find module available) directly: ...
joaocandre's user avatar
0 votes
1 answer
101 views

Compile error in Moveit "Getting started" documentation

First, let me make an observation unrelated to my question: After going through most of the getting started documentation (https://moveit.picknik.ai/main/doc/tutorials/getting_started/getting_started....
Josh Mouch's user avatar
0 votes
2 answers
292 views

Can an ROS2 node run in a venv and use a different python than that used by the ROS2 installed version?

Could anyone please share a current link on the successful use of running an ROS2 node (>= Humble) in a venv with a different python version? The troubles ... My ROS2 system is on an RPi and Ubuntu ...
Thou Maker's user avatar
1 vote
2 answers
282 views

ROS2: colcon build --symlink-install --merge-install PermissionError WinError5

I am experiencing problems with colcon build. I am running it in x64 Native Tools Command Prompt for VS 2019 as admin. I get this error for every colcon build i was trying to create. I am using ROS2 ...
Vincent's user avatar
  • 21
0 votes
2 answers
63 views

C++ can not build simple test program after update (Ubuntu 22.04/ROS 2 Rolling)

I just updated my Ubuntu 22.04 installation with ROS 2 rolling on it and now when I try to rebuild my ROS packages I get an error message that it can't compile a simple test program: ...
madgrizzle's user avatar
0 votes
1 answer
281 views

colcon cannot build packages type:ros.catkin

I tried to build a packages type ros.catkin with colcon on Ubuntu22.04,ROS2 Humble. ...
mawa's user avatar
  • 3
0 votes
1 answer
252 views

colcon build on ROS2 humble outputs "listing git files failed - pretending there aren't any"

I started to learn ros2, installed ros2 humble, have followed the tutorial of the channel Robotics Back-End before and I was able to successfully create a node. After some time I wanted to visit the ...
dragging_this's user avatar
0 votes
0 answers
79 views

ROS2 Pybind11 help needed

https://github.com/chrissunny94/floam I am on a pressing issue to bring in Python support for FLOAM . I am currently facing a lot of issues getting linking libraries namespaces object oriented ...
Chris Thaliyath's user avatar
0 votes
0 answers
21 views

ROS 1 Stereo image pairs splitter node migration to ROS 2 Galactic

I have modified the ROS 1 source from this repo to use in ROS 2 galactic While I am able to satisfy the package dependencies, I'm having issues with the following code: ...
andrewb's user avatar
0 votes
1 answer
25 views

Configuration or best practices wrt. automatic chaining of `setup.bash` prefix paths from `colcon build`

I recently found (to my great surprise) that upon issuing 'source install/setup.bash' for my ROS 2 install (built from source), that both Gazebo Sim and ...
JRTG's user avatar
  • 1,624
1 vote
1 answer
126 views

Building example library of ROS 2

I am trying to build the example repository of ROS 2 Humble according to the tutorial. But the command colcon build --symlink-install gives the following error for ...
aladin6060's user avatar
0 votes
0 answers
87 views

colcon test returning return code 5 even though tests aren't failing

When running python tests using colcon, the run_test.py return code is 5, leading to overall test failures. The test file contains 10 tests, none of them marked as ...
Hugo Louis Seize's user avatar
0 votes
1 answer
28 views

How to ensure colcon does not run doxygen

I noticed upon building Gazebo Garden that it runs doxygen. This takes a significant time. Is there a way to disable this?
JRTG's user avatar
  • 1,624
1 vote
1 answer
77 views

How to run (Google) benchmarks in ROS2

There exists an ament_cmake_google_benchmark package that can help building Google Benchmark tests within ROS2, but I can't find a way to invoke those benchmarks from the command line, e.g. with ...
marioprats's user avatar
0 votes
0 answers
71 views

Using yocto recipes, how to build ROS2 application depending on workspace?

I'm working on packaging a ROS2 application for yocto. I have ROS2 installed in my image and can run the demos. Now, I'm stuck with the dependencies for the application. They are configured in a file <...
Dominik Fretz's user avatar
0 votes
0 answers
19 views

micro_ros_agent build stuck on versal kr260

I use a remote SSH connection to send commands to a Xilinx Kria KR260 running Ubuntu 22.04. I have followed the tutorial at this link: https://micro.ros.org/docs/tutorials/core/first_application_rtos/...
N-K's user avatar
  • 1
0 votes
1 answer
321 views

Could not find a package configuration file provided by "nav2_map_server"

I am learning ROS 2 and trying to develop an agriculture autonomous robot package on ROS 2 Humble with Ubuntu 22.04. While building with colcon build, I am getting the following error: ...
GURUV Abundance GURUV's user avatar
0 votes
0 answers
147 views

How to configure Flake8 with colcon test

When creating a package Ros2 automatically generates these tests: test_copyright.py, test_flake8.py, ...
WouterOddBot's user avatar
0 votes
1 answer
20 views

How to use a Jupyter Notebook with Colcon?

I've got a problem that I suspect is easy, but I absolutely can't figure out---any advice is much appreciated. Here's the situation: I have a standard ROS2/Colcon Python package (ie. basically fresh ...
user avatar
1 vote
1 answer
252 views

Compile ROS2 package with pre-compiled shared library

Hi there, In my ros2 package, I want to compile the node with a shared library, which is an SDK shared library provided by the manufacturer of the hardware. I am able to compile my code with ...
user avatar
0 votes
1 answer
36 views

Download a ROS2 package from GitHub and install it with colcon

Is there a standard way to download a ROS2 package from GitHub and install it withcolcon? I am looking for something more automated than just copy-pasting or using ...
user avatar
0 votes
1 answer
344 views

Colcon select Python version

Hello, I encountered problems while setting up Github Actions for a ROS2 Humble project on Windows. I used an action for setting up ROS2 since it seemed pretty complicated on Windows which uses Python ...
user avatar
0 votes
1 answer
15 views

Cannot build package due to pkg_resources.extern.packaging.version.InvalidVersion

Hello, Currently, I am on Galactic, Ubuntu 20.4 Whenever I run colcon build, my process always fails and give the following reason. After doing some research, I know is having an issue about the pip ...
user avatar
0 votes
1 answer
36 views

colcon build error: can't copy 'resource/<pkg-name>': doesn't exist or not a regular file

I am using ROS2 Humble in Pop!_OS 22.04 LTS. This is very surprising to me. Until yesterday the package (beaming: I am making this package for my robot) was building fine. But today when I tried doing ...
user avatar
0 votes
1 answer
161 views

Build of ROS2 package: Out of memory

Problem I try to build a ros2 package and run out of memory so that the system gets unresponsive or the process is terminated. I'm using ros2 foxy on ubuntu 20.04 Hardware CPU: 4 x ARM A53 RAM: 4 GB ...
user avatar
0 votes
1 answer
267 views

colcon build freeze a Raspberry Pi

Thanks all for reading and helping. I'm attempting to install and use Humble on a fresh 22.04 install on a Raspberry Pi reTerminal (CM4) with 4G RAM. Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1015-raspi ...
user avatar