Skip to content

micro_ros_agent installation issue on ROS 2 Humble Ubuntu 22.04 #764

@TannerGilbert

Description

@TannerGilbert

Issue template

  • Hardware description: PC, Ubuntu 22.04
  • RTOS: Ardupilot SITL
  • Installation type: micro_ros_setup
  • Version or commit hash: humble

Steps to reproduce the issue

Follow First micro-ROS Application on Linux. When creating and building the micro-ROS agent

ros2 run micro_ros_setup create_agent_ws.sh
ros2 run micro_ros_setup build_agent.sh

I run into the following error:

stderr: micro_ros_agent
CMake Error at /opt/ros/humble/share/fastrtps/cmake/fastrtps-dynamic-targets.cmake:37 (message):
Some (but not all) targets in this export set were already defined.

Targets Defined: eProsima_atomic

Targets not yet defined: fastrtps

Call Stack (most recent call first):
/opt/ros/humble/share/fastrtps/cmake/fastrtps-config.cmake:60 (include)
CMakeLists.txt:37 (find_package)

Expected behavior

micro-ROS agent installation works as expected and I can use it for working with Ardupilot.

Actual behavior

stderr: micro_ros_agent
CMake Error at /opt/ros/humble/share/fastrtps/cmake/fastrtps-dynamic-targets.cmake:37 (message):
Some (but not all) targets in this export set were already defined.

Targets Defined: eProsima_atomic

Targets not yet defined: fastrtps

Call Stack (most recent call first):
/opt/ros/humble/share/fastrtps/cmake/fastrtps-config.cmake:60 (include)
CMakeLists.txt:37 (find_package)

Additional information

Installing Fast-DDS from source didn't fix the issue for me either

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions