stdout_stderr.log 5.7 KB

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