【ROS】ROSmsg cakin_make编译错误

【msg 文件里面有错误 】

比如我就是文件中有数据定义错误:“uint age”,应改为“uint8 age”。

我的报错如下:

{

CMake Error at /opt/ros/melodic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  
  execute_process(/home/niezhuang/worksp/build/catkin_generated/env_cached.sh
  "/usr/bin/python2" "/usr/bin/empy" "--raw-errors" "-F"
  "/home/niezhuang/worksp/build/learning_communication/cmake/learning_communication-genmsg-context.py"
  "-o"
  "/home/niezhuang/worksp/build/learning_communication/cmake/learning_communication-genmsg.cmake"
  "/opt/ros/melodic/share/genmsg/cmake/pkg-genmsg.cmake.em") returned error
  code 1

Call Stack (most recent call first):
  /opt/ros/melodic/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
  /opt/ros/melodic/share/genmsg/cmake/genmsg-extras.cmake:303 (em_expand)
  learning_communication/CMakeLists.txt:78 (generate_messages)


-- Configuring incomplete, errors occurred!
See also "/home/niezhuang/worksp/build/CMakeFiles/CMakeOutput.log".
See also "/home/niezhuang/worksp/build/CMakeFiles/CMakeError.log".
Makefile:558: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

 

总结:

1、检查如下配置

{

【ROS】ROSmsg cakin_make编译错误_第1张图片

 }

2、检查msg中定义的文件是否正确

你可能感兴趣的:(ubuntu)