ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

colcon build package blacklist

asked 2020-10-19 14:20:21 -0600

updated 2020-10-20 11:38:35 -0600

I am trying to build a ros2 workspace with colcon. How I can blacklist packages?

I am looking for the catkin-equivalent to:

catkin config --blacklist baz

--- updated information --

I tried unsuccessfully the following:

$ colcon build --packages-skip mypackage

usage: colcon [-h] [--log-base LOG_BASE] [--log-level LOG_LEVEL] {build,test,test-result} ...
colcon: error: unrecognized arguments: --packages-skip mypackage

also tried unsuccessfully:

$ colcon build --packages-ignore mypackage

usage: colcon [-h] [--log-base LOG_BASE] [--log-level LOG_LEVEL] {build,test,test-result} ...
colcon: error: unrecognized arguments: --packages-ignore mypackage
edit retag flag offensive close merge delete

Comments

2

Do you have the Debian package python3-colcon-package-selection or the Python package colcon-package-selection installed?

Dirk Thomas gravatar image Dirk Thomas  ( 2020-10-20 11:42:36 -0600 )edit

Nopes. That was the issue. Thank you.

Pablo Iñigo Blasco gravatar image Pablo Iñigo Blasco  ( 2020-10-20 12:34:42 -0600 )edit

4 Answers

Sort by » oldest newest most voted
2

answered 2020-10-20 00:25:43 -0600

KenYN gravatar image

There's --packages-skip baz which might serve your purposes. See the docs for lots more including and excluding options.

edit flag offensive delete link more

Comments

1

--packages-ignorecould also be an option: see https://colcon.readthedocs.io/en/rele...

Dirk Thomas gravatar image Dirk Thomas  ( 2020-10-20 01:03:40 -0600 )edit
1

answered 2020-10-20 07:36:04 -0600

miura gravatar image

COLCON_IGNORE may be useful. Once you set it, you can blacklist a package until you unblacklist it.

ref: https://answers.ros.org/question/2997...

edit flag offensive delete link more
0

answered 2021-04-14 13:50:41 -0600

The problem is that some of the colcon subpackages were not installed. After the installation of all the colcon packages that problem is solved. Specifically the one that was missing was "python3-colcon-parallel-executor ".

Therefore, the solution is:

sudo apt-get install python3-colcon-parallel-executor

edit flag offensive delete link more
0

answered 2022-07-13 13:31:39 -0600

Lidor Shimoni gravatar image

updated 2022-07-13 13:32:09 -0600

Hi, my problem was very similar but the command colcon build --packages-select pkg_name did not work as well. my solution was:

sudo apt install python3-colcon*

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2020-10-19 14:20:21 -0600

Seen: 3,578 times

Last updated: Jul 13 '22