# genie_sim启动报错lo接口重复选中致CycloneDDS域创建失败

> 原文链接：https://robotics.hellobike.com/pitfalls/2026-08-02-genie-sim-178
> 频道：pitfalls | 更新日期：2026-08-02 | 标签：auto, github-issue, genie_sim
> 核心摘要：CYCLONEDDS_URI中lo接口配置冲突导致rmw_create_node失败，重写配置文件指定物理网卡enp2s0解决。

# genie_sim启动报错lo接口重复选中致CycloneDDS域创建失败

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[lo: the same interface may not be selected twice](https://github.com/AgibotTech/genie_sim/issues/178)（GitHub AgibotTech/genie_sim #178）

**状态**：已解决

## 问题

执行ros2 launch genie_sim_bringup app.launch.py启动仿真时，robot_state_publisher节点报错“lo: the same interface may not be selected twice”及“rmw_create_node: failed to create domain”，导致仿真无法正常初始化。

## 环境

genie_sim仿真环境，ROS2，CycloneDDS中间件，宿主机物理网卡enp2s0。

## 解决办法

1. 执行unset CYCLONEDDS_URI清除当前环境变量中冲突的lo接口配置。
2. 新建CycloneDDS XML配置文件，在&lt;Interfaces&gt;标签内将NetworkInterface name修改为宿主机实际物理网卡名称（如enp2s0），移除lo及multicast相关冗余配置。
3. 重新导出CYCLONEDDS_URI指向新配置文件路径，再次执行launch命令验证域创建成功。

讨论原作者：@andy-smith-e 等，版权归原作者所有。
:::

## 原始参考来源 (Sources)

- [GitHub AgibotTech/genie_sim #178：lo: the same interface may not be selected twice](https://github.com/AgibotTech/genie_sim/issues/178)