stdout_stderr.log 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. -- Found ament_cmake: 1.3.11 (/opt/ros/humble/share/ament_cmake/cmake)
  2. -- Found std_msgs: 4.8.0 (/opt/ros/humble/share/std_msgs/cmake)
  3. -- Found rosidl_generator_c: 3.1.6 (/opt/ros/humble/share/rosidl_generator_c/cmake)
  4. -- Found rosidl_adapter: 3.1.6 (/opt/ros/humble/share/rosidl_adapter/cmake)
  5. -- Found rosidl_generator_cpp: 3.1.6 (/opt/ros/humble/share/rosidl_generator_cpp/cmake)
  6. -- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c
  7. -- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp
  8. -- Found rclcpp: 16.0.12 (/opt/ros/humble/share/rclcpp/cmake)
  9. -- Found rmw_implementation_cmake: 6.1.2 (/opt/ros/humble/share/rmw_implementation_cmake/cmake)
  10. -- Found rmw_fastrtps_cpp: 6.2.7 (/opt/ros/humble/share/rmw_fastrtps_cpp/cmake)
  11. -- Using RMW implementation 'rmw_fastrtps_cpp' as default
  12. -- Found g29_msg: 0.0.0 (/home/wub/work/1_nzzn/2_code/13_LG/install/g29_msg/share/g29_msg/cmake)
  13. -- Found ament_lint_auto: 0.12.12 (/opt/ros/humble/share/ament_lint_auto/cmake)
  14. -- Added test 'cppcheck' to perform static code analysis on C / C++ code
  15. -- Configured cppcheck include dirs: $<BUILD_INTERFACE:/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/include>
  16. -- Configured cppcheck exclude dirs and/or files:
  17. -- Added test 'lint_cmake' to check CMake code style
  18. -- Added test 'uncrustify' to check C / C++ code style
  19. -- Configured uncrustify additional arguments:
  20. -- Added test 'xmllint' to check XML markup files
  21. -- Configuring done
  22. -- Generating done
  23. -- Build files have been written to: /home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback
  24. Consolidate compiler generated dependencies of target g29_ros2_feedback_node
  25. [ 25%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o
  26. In file included from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  27. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h: In constructor ‘Joystick_pub::Joystick_pub(const string&, const string&)’:
  28. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:56:17: warning: ‘Joystick_pub::filename’ will be initialized after []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;]
  29. 56 | std::string filename; // 设备文件名
  30. | ^~~~~~~~
  31. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:39:41: warning:  base ‘rclcpp::Node’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;]
  32. 39 | : filename(filename), Node(node_name) // 初始化成员变量 filename
  33. | ^
  34. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:38:1: warning:  when initialized here []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;]
  35. 38 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name)
  36. | ^~~~~~~~~~~~
  37. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp: In member function ‘void Joystick_pub::publish()’:
  38. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:158:20: error: ‘sensor_msgs’ has not been declared
  39. 158 | auto message = sensor_msgs::msg::Joy();
  40. | ^~~~~~~~~~~
  41. gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1
  42. gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2
  43. gmake: *** [Makefile:146:all] 错误 2