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

colcon package ignore regex

asked 2022-05-03 06:43:26 -0500

BhanuKiran.Chaluvadi gravatar image

Hi I would like ignore connext and cyclonedds related packages e.g: rmw_connextdds, rmw_connextdds_common, rti_connext_dds_cmake_module && cyclonedds, rmw_cyclonedds_cpp

colcon build  --symlink-install --packages-ignore-regex connext cyclonedds

But I have a warning says

[0.349s] WARNING:colcon.colcon_core.package_discovery:the --packages-ignore-regex 'connext' doesn't match any of the package names.

How to have a proper regex to ignore the packages ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-06-27 21:55:58 -0500

nuclearsandwich gravatar image

The regex selection and skip arguments are implemented using python's re.match meaning that the regular expression must patch the start of the string (in this case the package name) so changing the command to:

colcon build  --symlink-install --packages-ignore-regex '.*connext' '.*cyclonedds'

should have the intended effect.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-05-03 06:43:26 -0500

Seen: 518 times

Last updated: Jun 27 '22