[0.006s] 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.034s] Consolidate compiler generated dependencies of target g29_ros2_feedback_node [0.049s] [ 25%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o [1.529s] 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.529s] /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.529s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:57:17: warning: ‘Joystick_pub::filename’ will be initialized after []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;] [1.529s] 57 | std::string filename; // 设备文件名 [1.529s] | ^~~~~~~~ [1.529s] /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.529s] 39 | : filename(filename), Node(node_name) // 初始化成员变量 filename [1.529s] | ^ [1.530s] /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.530s] 38 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name) [1.530s] | ^~~~~~~~~~~~ [1.539s] /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.540s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:160:22: error: no match for ‘operator=’ (operand types are ‘sensor_msgs::msg::Joy_ >::_buttons_type’ {aka ‘std::vector’} and ‘int’) [1.540s] 160 | message.buttons = heartbeat; [1.540s] | ^~~~~~~~~ [1.540s] In file included from /usr/include/c++/11/vector:72, [1.540s] from /usr/include/c++/11/functional:62, [1.540s] from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, [1.540s] from /usr/include/c++/11/algorithm:74, [1.540s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:21: [1.540s] /usr/include/c++/11/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator]’ [1.540s] 198 | vector<_Tp, _Alloc>:: [1.540s] | ^~~~~~~~~~~~~~~~~~~ [1.540s] /usr/include/c++/11/bits/vector.tcc:199:42: note:  no known conversion for argument 1 from ‘int’ to ‘const std::vector&’ [1.540s] 199 | operator=(const vector<_Tp, _Alloc>& __x) [1.540s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ [1.540s] In file included from /usr/include/c++/11/vector:67, [1.540s] from /usr/include/c++/11/functional:62, [1.540s] from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13, [1.541s] from /usr/include/c++/11/algorithm:74, [1.541s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:21: [1.541s] /usr/include/c++/11/bits/stl_vector.h:709:7: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator]’ [1.541s] 709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) [1.541s] | ^~~~~~~~ [1.541s] /usr/include/c++/11/bits/stl_vector.h:709:26: note:  no known conversion for argument 1 from ‘int’ to ‘std::vector&&’ [1.541s] 709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) [1.541s] | ~~~~~~~~~^~~ [1.541s] /usr/include/c++/11/bits/stl_vector.h:730:7: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator]’ [1.541s] 730 | operator=(initializer_list __l) [1.541s] | ^~~~~~~~ [1.541s] /usr/include/c++/11/bits/stl_vector.h:730:46: note:  no known conversion for argument 1 from ‘int’ to ‘std::initializer_list’ [1.541s] 730 | operator=(initializer_list __l) [1.541s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ [2.086s] gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1 [2.086s] gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2 [2.087s] gmake: *** [Makefile:146:all] 错误 2 [2.088s] 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