Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

micro_ros_agent installation issue on ROS 2 Humble Ubuntu 22.04

未关闭
#764 12 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
cmake, linux, shell, ubuntu
领域
build-system

调研方向

在使用 ROS 2 Humble 的 Ubuntu 22.04 上,使用 create_agent_ws.sh 和 build_agent.sh 重现该故障。检查 find_package 调用处的 CMakeLists.txt 以及所引用的 fastrtps CMake 配置,并以报告中的目标定义作为起点。micro-ROS agent 工作区成功构建并且 agent 可以运行,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Shell
星标
509
派生
183
平均合并
22 小时 26 分钟
30 天内合并 PR
7

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

micro-ROS/micro_ros_setup 的其他 Issue

查看 micro-ROS/micro_ros_setup 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。