在安装ROS-kinetic版本时,设置环境变量
echo “source opt/ros/kinetic/setup.bash”>> ~/.bashrc
source ~/.bashrc
后,出现source: command not found
解决办法:
Home文件下的隐藏文件bashrc,双机打开,找到文件末尾,
将"source opt/ros/kinetic/setup.bash"命令前后的“”去掉,即可解决问题。
即将echo命令行的中的“”去除,再运行。
echo source opt/ros/kinetic/setup.bash >> ~/.bashrc
source ~/.bashrc
运行不出错