micro-ROS / micro-ROS/micro_ros_setup
micro_ros_agent installation issue on ROS 2 Humble Ubuntu 22.04
- 主要语言
- Shell
- 星标
- 509
- 派生
- 183
- 平均合并
- 22 小时 26 分钟
- 30 天内合并 PR
- 7
描述
## 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](https://micro.ros.org/docs/tutorials/core/first_application_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
贡献指南
调研方向
在使用 ROS 2 Humble 的 Ubuntu 22.04 上,使用 create_agent_ws.sh 和 build_agent.sh 重现该故障。检查 find_package 调用处的 CMakeLists.txt 以及所引用的 fastrtps CMake 配置,并以报告中的目标定义作为起点。micro-ROS agent 工作区成功构建并且 agent 可以运行,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cmake, linux, shell, ubuntu
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100