eProsima / Micro-XRCE-DDS-Agent

Micro XRCE-DDS Agent respository. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
113 stars 81 forks source link

Error building Agent using ROS2 colcon #369

Closed Geol-23 closed 4 months ago

Geol-23 commented 4 months ago

Hello, I'm working with the PX4 environment and I would like to communicate with the flight controller using the uXRCE-DDS framework. I have followed the PX4 guide. When building the package in the ROS2 workspace I get a version error. I am new to the ROS2 environment so any help is appreciated.

Steps to reproduce the issue

  1. Using a fresh installation of Humble, create the workspace and clone the agent under the src
  2. run colcon build

Expected behavior

Successfully build

Actual behavior

The following error is outputted:

CMake Error at CMakeLists.txt:153 (find_package): Could not find a configuration file for package "fastcdr" that is compatible with requested version "2".

The following configuration files were considered but not accepted:

/opt/ros/humble/lib/cmake/fastcdr/fastcdr-config.cmake, version: 1.0.24

gmake: *** [Makefile:166: cmake_check_build_system] Error 1 --- Failed <<< microxrcedds_agent [0.34s, exited with code 2]

Geol-23 commented 4 months ago

Solved it. All I had to do was install an earlier version of the agent.