realsense-ros: Windows10 Build Fails: colcon build

First happy new year to all. Now for the issue. I have ROS2 Humble installed on a Windows 10 x64 pc. Tested and know its configured correctly using the turtlesim example. Same thing for librealsense, tested using one of the T265 examples using python3.

Now trying to build the ROS2 wrapper and getting errors. To build followed the instructions here: https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Colcon-Tutorial.html#id7 and the directory structure looks like this after the failure: WS_Dir_struct

I ran the following command with the following errors:

c:\dev\ros2_ws>colcon build --symlink-install --merge-install
Starting >>> realsense2_camera_msgs
[Processing: realsense2_camera_msgs]
--- stderr: realsense2_camera_msgs
CMake Error at CMakeLists.txt:16 (find_package):
  By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "ament_cmake", but CMake did not find one.

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

    ament_cmakeConfig.cmake
    ament_cmake-config.cmake

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


---
Failed   <<< realsense2_camera_msgs [50.4s, exited with code 1]

Summary: 0 packages finished [52.6s]
  1 package failed: realsense2_camera_msgs
  1 package had stderr output: realsense2_camera_msgs
  2 packages not processed
WNDPROC return value cannot be converted to LRESULT
TypeError: WPARAM is simple, so must be an int object (got NoneType)

c:\dev\ros2_ws>

I am attaching the entire error log - might be easier: logger_all.log

Any help will be appreciated. Be forewarned - first doing so be warned.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 39

Most upvoted comments

Thanks very much @mjs513 for the continued updates. It’s great to hear that you are having successes.

As the log message states, the supported resolution is 848x480 rather than 848x640. The minimum supported FPS on D435 for 848x480 resolution is 6.