报错信息:
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkin_install_python.cmake:86 (message):
catkin_install_python() called with non-existing file
'/home/ray/demo06_ws/src/demo01_action/scripts/action01_server_p.py'.
Call Stack (most recent call first):
demo01_action/CMakeLists.txt:164 (catkin_install_python)
-- Configuring incomplete, errors occurred!
See also "/home/ray/demo06_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ray/demo06_ws/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:936:cmake_check_build_system] 错误 1
Invoking "make cmake_check_build_system" failed
错误原因:
不小心把scripts文件夹建到了功能包的src文件夹中。
解决方法:
把scripts文件夹移动到功能包demo01_action下即可。