[0.005s] Invoking command in '/home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback': CMAKE_PREFIX_PATH=/home/wub/work/1_nzzn/2_code/13_LG/install/g29_msg:/home/wub/work/1_nzzn/2_code/13_LG/install/g29_ros2_feedback:/opt/ros/humble /usr/bin/cmake --build /home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback -- -j12 -l12 [0.023s] -- Found ament_cmake: 1.3.11 (/opt/ros/humble/share/ament_cmake/cmake) [0.110s] -- Found std_msgs: 4.8.0 (/opt/ros/humble/share/std_msgs/cmake) [0.125s] -- Found rosidl_generator_c: 3.1.6 (/opt/ros/humble/share/rosidl_generator_c/cmake) [0.126s] -- Found rosidl_adapter: 3.1.6 (/opt/ros/humble/share/rosidl_adapter/cmake) [0.130s] -- Found rosidl_generator_cpp: 3.1.6 (/opt/ros/humble/share/rosidl_generator_cpp/cmake) [0.136s] -- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c [0.144s] -- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp [0.160s] -- Found rclcpp: 16.0.12 (/opt/ros/humble/share/rclcpp/cmake) [0.176s] -- Found rmw_implementation_cmake: 6.1.2 (/opt/ros/humble/share/rmw_implementation_cmake/cmake) [0.177s] -- Found rmw_fastrtps_cpp: 6.2.7 (/opt/ros/humble/share/rmw_fastrtps_cpp/cmake) [0.237s] -- Using RMW implementation 'rmw_fastrtps_cpp' as default [0.261s] -- Found g29_msg: 0.0.0 (/home/wub/work/1_nzzn/2_code/13_LG/install/g29_msg/share/g29_msg/cmake) [0.296s] -- Found ament_lint_auto: 0.12.12 (/opt/ros/humble/share/ament_lint_auto/cmake) [0.346s] -- Added test 'cppcheck' to perform static code analysis on C / C++ code [0.346s] -- Configured cppcheck include dirs: $ [0.346s] -- Configured cppcheck exclude dirs and/or files: [0.346s] -- Added test 'lint_cmake' to check CMake code style [0.347s] -- Added test 'uncrustify' to check C / C++ code style [0.347s] -- Configured uncrustify additional arguments: [0.347s] -- Added test 'xmllint' to check XML markup files [0.347s] -- Configuring done [0.353s] -- Generating done [0.356s] -- Build files have been written to: /home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback [0.374s] Consolidate compiler generated dependencies of target g29_ros2_feedback_node [0.387s] [ 25%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o [1.887s] 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: [1.888s] /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&)’: [1.888s] /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;;] [1.888s] 56 | std::string filename; // 设备文件名 [1.888s] | ^~~~~~~~ [1.888s] /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;;] [1.888s] 39 | : filename(filename), Node(node_name) // 初始化成员变量 filename [1.888s] | ^ [1.888s] /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;;] [1.888s] 38 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name) [1.888s] | ^~~~~~~~~~~~ [1.899s] /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()’: [1.899s] /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 [1.899s] 158 | auto message = sensor_msgs::msg::Joy(); [1.899s] | ^~~~~~~~~~~ [2.401s] gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1 [2.401s] gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2 [2.401s] gmake: *** [Makefile:146:all] 错误 2 [2.403s] Invoked command in '/home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback' returned '2': CMAKE_PREFIX_PATH=/home/wub/work/1_nzzn/2_code/13_LG/install/g29_msg:/home/wub/work/1_nzzn/2_code/13_LG/install/g29_ros2_feedback:/opt/ros/humble /usr/bin/cmake --build /home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback -- -j12 -l12