streams.log 6.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [0.007s] 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
  2. [0.035s] Consolidate compiler generated dependencies of target g29_ros2_feedback_node
  3. [0.049s] [ 25%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o
  4. [1.524s] 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:
  5. [1.525s] /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&)’:
  6. [1.525s] /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;;]
  7. [1.525s] 57 | std::string filename; // 设备文件名
  8. [1.525s] | ^~~~~~~~
  9. [1.525s] /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;;]
  10. [1.525s] 39 | : filename(filename), Node(node_name) // 初始化成员变量 filename
  11. [1.525s] | ^
  12. [1.525s] /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;;]
  13. [1.525s] 38 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name)
  14. [1.525s] | ^~~~~~~~~~~~
  15. [1.536s] /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()’:
  16. [1.536s] /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_<std::allocator<void> >::_buttons_type’ {aka ‘std::vector<int>’} and ‘int’)
  17. [1.536s] 160 | message.buttons = heartbeat;
  18. [1.536s] | ^~~~~~~~~
  19. [1.536s] In file included from /usr/include/c++/11/vector:72,
  20. [1.536s] from /usr/include/c++/11/functional:62,
  21. [1.536s] from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
  22. [1.536s] from /usr/include/c++/11/algorithm:74,
  23. [1.536s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:21:
  24. [1.536s] /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<int>]’
  25. [1.536s] 198 | vector<_Tp, _Alloc>::
  26. [1.536s] | ^~~~~~~~~~~~~~~~~~~
  27. [1.536s] /usr/include/c++/11/bits/vector.tcc:199:42: note:  no known conversion for argument 1 from ‘int’ to ‘const std::vector<int>&’
  28. [1.536s] 199 | operator=(const vector<_Tp, _Alloc>& __x)
  29. [1.536s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
  30. [1.536s] In file included from /usr/include/c++/11/vector:67,
  31. [1.536s] from /usr/include/c++/11/functional:62,
  32. [1.536s] from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
  33. [1.536s] from /usr/include/c++/11/algorithm:74,
  34. [1.536s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:21:
  35. [1.536s] /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<int>]’
  36. [1.536s] 709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
  37. [1.536s] | ^~~~~~~~
  38. [1.536s] /usr/include/c++/11/bits/stl_vector.h:709:26: note:  no known conversion for argument 1 from ‘int’ to ‘std::vector<int>&&’
  39. [1.536s] 709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
  40. [1.536s] | ~~~~~~~~~^~~
  41. [1.537s] /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<int>]’
  42. [1.537s] 730 | operator=(initializer_list<value_type> __l)
  43. [1.537s] | ^~~~~~~~
  44. [1.537s] /usr/include/c++/11/bits/stl_vector.h:730:46: note:  no known conversion for argument 1 from ‘int’ to ‘std::initializer_list<int>’
  45. [1.537s] 730 | operator=(initializer_list<value_type> __l)
  46. [1.537s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
  47. [2.085s] gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1
  48. [2.085s] gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2
  49. [2.085s] gmake: *** [Makefile:146:all] 错误 2
  50. [2.087s] 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