首页 > 其他分享> > ROS_DISTRO was set to ‘noetic‘ before. Please make sure that the environment does not mix paths from
ROS_DISTRO was set to ‘noetic‘ before. Please make sure that the environment does not mix paths from
作者:互联网
一、问题描述
Ubuntu20.04同时安装了ROS1和ROS2,打开终端出现警告:ROS_DISTRO was set to ‘noetic’ before. Please make sure that the environment does not mix paths from different distributions. 具体如下:
二、解决方法
出现该警告的原因在于环境变量中同时存在ROS1、ROS2,在.bashrc文件把ROS1的环境变量配置注释即可,如下:
打开文件目录 —>ctrl+h —> 打开.bashrc文件 —> 注释ROS1环境配置
标签:noetic,paths,set,Please,bashrc,ROS1,ROS2,before 来源: https://blog.csdn.net/a_chengpp/article/details/115279842