Skip to main content
5 votes
Accepted

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

My error went away after I ran the following commands: sudo apt update sudo apt upgrade Running these commands updated the following packages which fixed my issue: python3-colcon-cd python3-colcon-...
Ritish Shailly's user avatar
3 votes
Accepted

ROS2 - modify py launchfile without rebuilding package

You can use the --symlink-install flag while building your code. This will create symlinks in the install directory which points to actual source files rather then ...
tomRob's user avatar
  • 88
2 votes

How to configure Flake8 with colcon test

Just stumbled across this post having the same issue and question. However, because I only installed some python executables in my package, I generated my workspace with the ...
Nyquist's user avatar
  • 219
2 votes
Accepted

Colcon select Python version

Based on the log information, it's clear this is unrelated to colcon; it's CMake that's finding the wrong version of python when building the ...
phobon's user avatar
  • 270
2 votes
Accepted

verbose colcon build

Does adding this to your colcon build work? --event-handlers console_direct+ --cmake-args -DCMAKE_VERBOSE_MAKEFILE=ON You ...
gvdhoorn-rse's user avatar
  • 39.1k
2 votes

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

It may happen that there are cases where your files are not setup correctly or there are some dependencies issues. In my case I just had to change the Nvidia Graphics driver. Below I have provided ...
Avisheet Srivastava's user avatar
2 votes
Accepted

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

I encountered the same issue while following the ROS 2 service client tutorial. Initially, I attempted the workaround suggested in this ROSanswers post, but it didn't resolve my problem. The root ...
Daniele Affinita's user avatar
2 votes

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

Because the empy version 4.0 will cause this problem. $ pip install --user -U empy==3.3.4 pyros-genmsg setuptools Try this ...
hsndldl's user avatar
  • 21
2 votes
Accepted

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

Check: https://github.com/ros-tooling/action-ros-ci/issues/839 You can fix it by using a newer version of setup-ros. Like: ...
Gustavo Rezende's user avatar
2 votes

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

I was having the same issue as you and I managed to somewhat fix it. To fix it I built with colcon after a clean terminal -- as in without any sources to any ros2 installations -- and got no warning/...
Francisco Martins Junior's user avatar
2 votes
Accepted

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

Have you added the new interfaces package to your ament_target_dependencies? This is how my CMakeLists.txt looks like for a cpp ...
mink4sure's user avatar
2 votes

Error parsing '/home/kento/ws/src/my_robot_luanch/package.xml':

In the error log, it says that you have mismatched tag. You probably forgot to close one of the tags or forgot to add \ to the closing tags. For example: ...
Alp Sarıca's user avatar
1 vote
Accepted

Compiler issues using Raspberry Pi 4B

Finally found a solution looking at the source code of colcon_cmake: colcon is using the number of cpu cores in case there is no MAKEFLAGS already defining (see code below). So, in my case the ...
Siegmund's user avatar
1 vote

Errors with colcon using ros2 tutorial

I think I've answered my own question. The next tutorial goes in to setting up workspaces and covers resolving dependencies, which seems to have fixed it. ...
Jevers's user avatar
  • 11
1 vote
Accepted

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

I just solved it myself. ...
Daniel He's user avatar
1 vote

ROS2 Humble colcon tutorial causes flake8 error

A deprecation warning is typically not a fatal error, and the current code still functions correctly. What it is telling you is that this code may stop working in the next release. To be clear: I'm ...
Mike973's user avatar
  • 956
1 vote

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

Cmake is sequential, you never actually made your library before you try to link it. Switch the order: ...
Steve Macenski's user avatar
1 vote
Accepted

Building example library of ROS 2

This appears to be a recent break with a particular version of setuptools which has been reported in pypa/setuptools#4046 and colcon/colcon-python-setup-py#56. A working mitigation is to upgrade the ...
Adam's user avatar
  • 126
1 vote
Accepted

How to ensure colcon does not run doxygen

This is not a colcon option, but Gazebo libraries have a cmake flag for disabling documentation. You'd pass it through colcon via ...
azeey's user avatar
  • 411
1 vote

How to run (Google) benchmarks in ROS2

When you configure the package with CMake, it gives this advice: ...
Fred Schoen's user avatar
1 vote
Accepted

How to configure Flake8 with colcon test

Adapting test_flake8.py like underneath reads a flake8.ini file in the Ros workspace folder. Perhaps there's a cleaner way to ...
WouterOddBot's user avatar
1 vote
Accepted

octomap_msgs/conversions.h: No such file or directory

I'm not exactly sure of the solution to my problem, but I resolved it. The following is my current source code, CMakeList.txt and package.xml. octomap_publisher_node.cpp ...
Ajifoster3's user avatar
1 vote

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

Try first to remove the install and build folders and build again. It could be because you already installed without ...
Zein's user avatar
  • 41
1 vote

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

Are you building the right package? I've often had the issue that especially when building only one package in isolation, code updated in other packages is not updated. Try building your workspace in ...
clemfandango's user avatar
1 vote
Accepted

Compile error in Moveit "Getting started" documentation

This looks more like a g++ issue than a MoveIt issue. I base my statement on the error message, which says c++: fatal error: Killed signal terminated program ...
ssarkar's user avatar
  • 638
1 vote
Accepted

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

This was somehow fixed and was related to Cmake: https://github.com/ms-iot/ROSOnWindows/issues/448#issuecomment-1766756522
Vincent's user avatar
  • 21
1 vote

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

The issue is with --symlink_install Symbolic links are supported in a limited way on Windows but as far as I know you have to enable developer mode to use it ...
danzimmerman's user avatar
1 vote
Accepted

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

Make sure your flags are correct. In my case, I used DCMAKE_CXX_FLAGS="w" and not DCMAKE_CXX_FLAGS="-w". As Tully pointed out, this could have been resolved by posting the ...
madgrizzle's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible