12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- In file included from [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34[m[K:
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:[m[K In constructor ‘[01m[KJoystick_pub::Joystick_pub(const string&, const string&)[m[K’:
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:57:17:[m[K [01;35m[Kwarning: [m[K‘[01m[KJoystick_pub::filename[m[K’ will be initialized after [[01;35m[K]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;[m[K]
- 57 | std::string [01;35m[Kfilename[m[K; // 设备文件名
- | [01;35m[K^~~~~~~~[m[K
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:39:41:[m[K [01;35m[Kwarning: [m[K base ‘[01m[Krclcpp::Node[m[K’ [[01;35m[K]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;[m[K]
- 39 | : filename(filename), Node(node_name[01;35m[K)[m[K // 初始化成员变量 filename
- | [01;35m[K^[m[K
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:38:1:[m[K [01;35m[Kwarning: [m[K when initialized here [[01;35m[K]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;[m[K]
- 38 | [01;35m[KJoystick_pub[m[K::Joystick_pub(const std::string &filename, const std::string &node_name)
- | [01;35m[K^~~~~~~~~~~~[m[K
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:[m[K In member function ‘[01m[Kvoid Joystick_pub::publish()[m[K’:
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:160:22:[m[K [01;31m[Kerror: [m[Kno match for ‘[01m[Koperator=[m[K’ (operand types are ‘[01m[Ksensor_msgs::msg::Joy_<std::allocator<void> >::_buttons_type[m[K’ {aka ‘[01m[Kstd::vector<int>[m[K’} and ‘[01m[Kint[m[K’)
- 160 | message.buttons = [01;31m[Kheartbeat[m[K;
- | [01;31m[K^~~~~~~~~[m[K
- In file included from [01m[K/usr/include/c++/11/vector:72[m[K,
- from [01m[K/usr/include/c++/11/functional:62[m[K,
- from [01m[K/usr/include/c++/11/pstl/glue_algorithm_defs.h:13[m[K,
- from [01m[K/usr/include/c++/11/algorithm:74[m[K,
- from [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:21[m[K:
- [01m[K/usr/include/c++/11/bits/vector.tcc:198:5:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Kstd::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>][m[K’
- 198 | [01;36m[Kvector<_Tp, _Alloc>[m[K::
- | [01;36m[K^~~~~~~~~~~~~~~~~~~[m[K
- [01m[K/usr/include/c++/11/bits/vector.tcc:199:42:[m[K [01;36m[Knote: [m[K no known conversion for argument 1 from ‘[01m[Kint[m[K’ to ‘[01m[Kconst std::vector<int>&[m[K’
- 199 | operator=([01;36m[Kconst vector<_Tp, _Alloc>& __x[m[K)
- | [01;36m[K~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~[m[K
- In file included from [01m[K/usr/include/c++/11/vector:67[m[K,
- from [01m[K/usr/include/c++/11/functional:62[m[K,
- from [01m[K/usr/include/c++/11/pstl/glue_algorithm_defs.h:13[m[K,
- from [01m[K/usr/include/c++/11/algorithm:74[m[K,
- from [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:21[m[K:
- [01m[K/usr/include/c++/11/bits/stl_vector.h:709:7:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Kstd::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>][m[K’
- 709 | [01;36m[Koperator[m[K=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
- | [01;36m[K^~~~~~~~[m[K
- [01m[K/usr/include/c++/11/bits/stl_vector.h:709:26:[m[K [01;36m[Knote: [m[K no known conversion for argument 1 from ‘[01m[Kint[m[K’ to ‘[01m[Kstd::vector<int>&&[m[K’
- 709 | operator=([01;36m[Kvector&& __x[m[K) noexcept(_Alloc_traits::_S_nothrow_move())
- | [01;36m[K~~~~~~~~~^~~[m[K
- [01m[K/usr/include/c++/11/bits/stl_vector.h:730:7:[m[K [01;36m[Knote: [m[Kcandidate: ‘[01m[Kstd::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>][m[K’
- 730 | [01;36m[Koperator[m[K=(initializer_list<value_type> __l)
- | [01;36m[K^~~~~~~~[m[K
- [01m[K/usr/include/c++/11/bits/stl_vector.h:730:46:[m[K [01;36m[Knote: [m[K no known conversion for argument 1 from ‘[01m[Kint[m[K’ to ‘[01m[Kstd::initializer_list<int>[m[K’
- 730 | operator=([01;36m[Kinitializer_list<value_type> __l[m[K)
- | [01;36m[K~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~[m[K
- gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1
- gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2
- gmake: *** [Makefile:146:all] 错误 2
|