问题描述
我在主目录同时开了多个ROS2工作空间,其中一个不想用了,直接删除后,终端出现这两行提示:
第二行是因为bash.rc文件里面source的setup.bash命令没有删除,所以:
gedit ~/.bashrc
source ~/.bashrc
删除source ~/rlarm_ws/install/setup.bash
后,还是存在一个not found问题
解决
到处搜索后,参考 https://answers.ros.org/question/408440/not-found-local_setupbash/ 评论区观点,把其他工作空间重新colcon build
编译后,终端就不显示not found了