cyberbotics / webots_ros2

Webots ROS 2 packages
Apache License 2.0
389 stars 141 forks source link

Colcon build returns error: package directory 'webots_ros2_importer/urdf2webots/urdf2webots' does not exist #859

Open hedaniel7 opened 8 months ago

hedaniel7 commented 8 months ago

Describe the Bug colcon build returns error: package directory 'webots_ros2_importer/urdf2webots/urdf2webots' does not exist

Steps to Reproduce

  1. clone the repo
  2. execute colcon build

Expected behavior successful build

Affected Packages List of affected packages:

Screenshots If applicable, add screenshots to help explain your problem.

System

Additional context

dan@SurfBoard3:~/Projects/webots_ros2$ colcon build
[2.184s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
    'webots_ros2_driver' is in: /home/dan/Projects/CrazyflieControllers/install/webots_ros2_driver
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.

If you understand the risks and want to override a package anyways, add the following to the command line:
    --allow-overriding webots_ros2_driver

This may be promoted to an error in a future release of colcon-override-check.
Starting >>> webots_ros2_importer
Starting >>> webots_ros2_msgs                       
--- stderr: webots_ros2_importer                                                                   
error: package directory 'webots_ros2_importer/urdf2webots/urdf2webots' does not exist
---
Failed   <<< webots_ros2_importer [1.31s, exited with code 1]
Aborted  <<< webots_ros2_msgs [8.17s]                                 

Summary: 0 packages finished [10.4s]
  1 package failed: webots_ros2_importer
  1 package aborted: webots_ros2_msgs
  1 package had stderr output: webots_ros2_importer
  10 packages not processed
BruceXing24 commented 8 months ago

same problem, then I delete this importer package, it works up to now.

bonnuite commented 7 months ago

Since urdf2webots folder in webots_ros2_importer is empty, as it was reported recently, in the cloned folder, option --recurse-submodules needed to automatically initialize and update each submodule in the repository: _git clone --recurse-submodules https://github.com/cyberbotics/webots_ros2.git -b fix-humble-ur-example_