ros-drivers / velodyne

ROS support for Velodyne 3D LIDARs
http://ros.org/wiki/velodyne
Other
646 stars 643 forks source link

ROS2 Galactic Docker in Jetson driver installation error #479

Closed TZECHIN6 closed 1 year ago

TZECHIN6 commented 1 year ago

Environment setup:

Error message:

--- stderr: velodyne_pointcloud                                                                    
CMake Error at CMakeLists.txt:15 (find_package):
  By not providing "Finddiagnostic_updater.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "diagnostic_updater", but CMake did not find one.

  Could not find a package configuration file provided by
  "diagnostic_updater" with any of the following names:

    diagnostic_updaterConfig.cmake
    diagnostic_updater-config.cmake

  Add the installation prefix of "diagnostic_updater" to CMAKE_PREFIX_PATH or
  set "diagnostic_updater_DIR" to a directory containing one of the above
  files.  If "diagnostic_updater" provides a separate development package or
  SDK, be sure it has been installed.

---
Failed   <<< velodyne_pointcloud [0.67s, exited with code 1]
Aborted  <<< velodyne_driver [1.46s]                           

Summary: 2 packages finished [3.83s]
  1 package failed: velodyne_pointcloud
  1 package aborted: velodyne_driver
  2 packages had stderr output: velodyne_driver velodyne_pointcloud
  1 package not processed

I have searched a bit in google, most of the answer is telling to install the ros-galactic-diagnostic-updater package, however, seem the problem still exist. Is that a path problem of CMake, so that it cannot locate the required packages? Thanks everyone!

TZECHIN6 commented 1 year ago

Hi everyone, I just somehow installed successfully.

When I run $ ros2 pkg list, I found no diagnostic_updater... So I head to my workspace /ros2_ws and run $ . install/setup.bash.

After that, I rerun colcon build --symlink-install and no error reported.


Although the problem seem solved, however as I am working on Docker environment, how can I insert these step into Dockerfile so that it can constantly deploy to other machine??

bluecamel commented 1 year ago

Something like:

RUN source /ros2_ws/install/setup.bash && \
    colcon build --symlink-install