orbbec / OrbbecSDK_ROS2

OrbbecSDK ROS2 wrapper
https://orbbec.github.io/OrbbecSDK_ROS2/
Apache License 2.0
57 stars 19 forks source link

Error Building orbbec_description (RVIZ) #40

Closed Edwardius closed 2 weeks ago

Edwardius commented 3 weeks ago
CMake Error at cmake_install.cmake:41 (file):
  file INSTALL cannot find
  "/home/USERNAME/ros2_ws/src/OrbbecSDK_ROS2/orbbec_description/rviz": No
  such file or directory.

--- stderr: orbbec_description                                                                                                   
CMake Error at cmake_install.cmake:41 (file):
  file INSTALL cannot find
  "/home/USERNAME/ros2_ws/src/OrbbecSDK_ROS2/orbbec_description/rviz": No
  such file or directory.

---

This seems to have been caused by the most recent commit 10148df62e15bd51a1993a8bf2c4c03428401c9e

Kashery commented 3 weeks ago

You can fix it in a "work around" fashion by removing line 10 at OrbbecSDK_ROS2/orbbec_description/CMakeLists.txt

So CMakeLists.txt should look something like that:

cmake_minimum_required(VERSION 3.5)
project(orbbec_description)

find_package(ament_cmake REQUIRED)

# Install files
install(DIRECTORY 
        launch 
        meshes 
        urdf
        DESTINATION share/${PROJECT_NAME})

ament_package()

keep in mind that this just ignores the rviz directory and will simply ommit it, im not convinced that this is an acutall fix.

Kashery commented 3 weeks ago

Should be fixed with 4fdd46cf346a98173eddd94e2a46844faeaa109a

jian-dong commented 2 weeks ago

@Kashery Thank you for your contribution