[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.037s] Consolidate compiler generated dependencies of target g29_ros2_feedback_node [0.053s] [ 50%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o [0.053s] [ 50%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/main.cpp.o [1.658s] In file included from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/main.cpp:10: [1.658s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:23: error: ‘sensor_msgs’ was not declared in this scope [1.658s] 66 | rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtr g29_publisher; [1.658s] | ^~~~~~~~~~~ [1.658s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:44: error: template argument 1 is invalid [1.658s] 66 | rclcpp::Publisher::SharedPtr g29_publisher; [1.658s] | ^ [1.658s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:47: error: expected ‘;’ at end of member declaration [1.658s] 66 | rclcpp::Publisher::SharedPtr g29_publisher; [1.658s] | ^~~~~~~~~ [1.658s] | ; [1.659s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:57: error: ‘g29_publisher’ does not name a type; did you mean ‘rmw_publisher_t’? [1.659s] 66 | rclcpp::Publisher::SharedPtr g29_publisher; [1.660s] | ^~~~~~~~~~~~~ [1.660s] | rmw_publisher_t [1.699s] 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.699s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:23: error: ‘sensor_msgs’ was not declared in this scope [1.699s] 66 | rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtr g29_publisher; [1.699s] | ^~~~~~~~~~~ [1.699s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:44: error: template argument 1 is invalid [1.699s] 66 | rclcpp::Publisher::SharedPtr g29_publisher; [1.699s] | ^ [1.699s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:47: error: expected ‘;’ at end of member declaration [1.699s] 66 | rclcpp::Publisher::SharedPtr g29_publisher; [1.700s] | ^~~~~~~~~ [1.700s] | ; [1.701s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:57: error: ‘g29_publisher’ does not name a type; did you mean ‘rmw_publisher_t’? [1.701s] 66 | rclcpp::Publisher::SharedPtr g29_publisher; [1.701s] | ^~~~~~~~~~~~~ [1.701s] | rmw_publisher_t [1.708s] /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.708s] /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.708s] 56 | std::string filename; // 设备文件名 [1.708s] | ^~~~~~~~ [1.708s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:40:41: warning:  base ‘rclcpp::Node’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;] [1.708s] 40 | : filename(filename), Node(node_name) // 初始化成员变量 filename [1.708s] | ^ [1.708s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:39:1: warning:  when initialized here []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;] [1.708s] 39 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name) [1.708s] | ^~~~~~~~~~~~ [1.716s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:91:5: error: ‘g29_publisher’ was not declared in this scope; did you mean ‘g29_pub_timer’? [1.716s] 91 | g29_publisher = this->create_publisher("g29_feedback", 10); [1.716s] | ^~~~~~~~~~~~~ [1.716s] | g29_pub_timer [1.732s] /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.732s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:196:5: error: ‘g29_publisher’ was not declared in this scope; did you mean ‘g29_pub_timer’? [1.732s] 196 | g29_publisher->publish(message); [1.732s] | ^~~~~~~~~~~~~ [1.732s] | g29_pub_timer [1.953s] gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:104:CMakeFiles/g29_ros2_feedback_node.dir/src/main.cpp.o] 错误 1 [1.953s] gmake[2]: *** 正在等待未完成的任务.... [2.211s] gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1 [2.211s] gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2 [2.211s] gmake: *** [Makefile:146:all] 错误 2 [2.212s] 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