Are you an LLM? You can read better optimized documentation at /zh/docs/24.03_LTS_SP2/edge_computing/ros/faqs_and_solutions.md for this page in Markdown format
常见问题及解决方法
问题1:

原因:出现该警告的原因在于环境变量中同时存在ROS1、ROS2。
解决方法:修改环境变量,避免两个版本冲突。
shell
[root@openEuler ~]# vim /opt/ros/humble/share/ros_environment/environment/1.ros_distro.shshell
# generated from ros_environment/env-hooks/1.ros_distro.sh.in
#export ROS_DISTRO=humble将里面的内容全部注释即可。
遵循 木兰宽松许可证第2版(MulanPSL2)
遵循木兰宽松许可证第2版(MulanPSL2)
版权所有 © 2026 openEuler 保留一切权利