當我在catkin_ws目錄下用catkin_make 編譯的時候出現一下錯誤:
The specified base path "/home/username/catkin_ws" contains a package but "catkin_make" must be invoked in the root of workspace
我的錯誤原因是之前在編譯某個包的時候,把生成的CMakeLists.txt和package.xml文件放到這catkin_ws目錄下了,應該刪除這兩個文件
,catkin_ws目錄下只需要三個文件夾就可以了build, devel, src