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. 具体如下:
ROS_DISTRO was set to ‘noetic‘ before. Please make sure that the environment does not mix paths from

二、解决方法

出现该警告的原因在于环境变量中同时存在ROS1、ROS2,在.bashrc文件把ROS1的环境变量配置注释即可,如下:
打开文件目录 —>ctrl+h —> 打开.bashrc文件 —> 注释ROS1环境配置
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

上一篇:ROS与UR3机械臂的仿真与实时控制


下一篇:2021-09-16