Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running colcon test in a workspace with ROS1 and ROS2 packages triggers ERROR:colcon:colcon test: Duplicate package names not supported #516

Open
MaxandreOgeret opened this issue Jun 21, 2022 · 1 comment

Comments

@MaxandreOgeret
Copy link

MaxandreOgeret commented Jun 21, 2022

Hello, I have a workspace that I use to run the ros1_bridge and if I try to run the test like so :

colcon test --merge-install --install-base install/ros1_bridge

I get the following error :

[0.436s] ERROR:colcon:colcon test: Duplicate package names not supported:
- my_custom_msgs:
  - ros1_ws/src/messages/my_custom_msgs
  - ros2_ws/src/messages/my_custom_msgs

Those packages are used separately by ROS1 and ROS2 and shouldnt trigger this error I believe.

Thanks for your help !

@cottsay
Copy link
Member

cottsay commented Jul 14, 2022

You should build the workspaces separately, not together. Invoke a build from inside ros1_ws and then invoke the setup script for that workspace, then change to ros2_ws and run the build for that workspace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants