streams.log 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. [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
  2. [0.035s] Consolidate compiler generated dependencies of target g29_ros2_feedback_node
  3. [0.048s] [ 25%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o
  4. [1.560s] 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.560s] /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.560s] /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;;]
  7. [1.560s] 56 | std::string filename; // 设备文件名
  8. [1.560s] | ^~~~~~~~
  9. [1.560s] /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;;]
  10. [1.560s] 40 | : filename(filename), Node(node_name) // 初始化成员变量 filename
  11. [1.560s] | ^
  12. [1.560s] /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;;]
  13. [1.560s] 39 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name)
  14. [1.561s] | ^~~~~~~~~~~~
  15. [1.568s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:91:85: error: no match for ‘operator=’ (operand types are ‘rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >::SharedPtr’ {aka ‘std::shared_ptr<rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > > >’} and ‘std::shared_ptr<rclcpp::Publisher<sensor_msgs::msg::Joy_<std::allocator<void> >, std::allocator<void> > >’)
  16. [1.569s] 91 | er = this->create_publisher<sensor_msgs::msg::Joy>("g29_feedback", 10);
  17. [1.569s] | ^
  18. [1.569s]
  19. [1.569s] In file included from /usr/include/c++/11/memory:77,
  20. [1.569s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:153,
  21. [1.569s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  22. [1.569s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  23. [1.569s] /usr/include/c++/11/bits/shared_ptr.h:363:9: note: candidate: ‘template<class _Yp> std::shared_ptr<_Tp>::_Assignable<const std::shared_ptr<_Yp>&> std::shared_ptr<_Tp>::operator=(const std::shared_ptr<_Yp>&) [with _Yp = _Yp; _Tp = rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >]’
  24. [1.569s] 363 | operator=(const shared_ptr<_Yp>& __r) noexcept
  25. [1.569s] | ^~~~~~~~
  26. [1.569s] /usr/include/c++/11/bits/shared_ptr.h:363:9: note:  template argument deduction/substitution failed:
  27. [1.569s] /usr/include/c++/11/bits/shared_ptr.h: In substitution of ‘template<class _Tp> template<class _Arg> using _Assignable = typename std::enable_if<std::is_assignable<std::__shared_ptr<_Tp>&, _Arg>::value, std::shared_ptr<_Tp>&>::type [with _Arg = const std::shared_ptr<rclcpp::Publisher<sensor_msgs::msg::Joy_<std::allocator<void> >, std::allocator<void> > >&; _Tp = rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >]’:
  28. [1.569s] /usr/include/c++/11/bits/shared_ptr.h:363:2: required by substitution of ‘template<class _Yp> std::shared_ptr<rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > > >::_Assignable<const std::shared_ptr<_Tp>&> std::shared_ptr<rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > > >::operator=<_Yp>(const std::shared_ptr<_Tp>&) [with _Yp = rclcpp::Publisher<sensor_msgs::msg::Joy_<std::allocator<void> >, std::allocator<void> >]’
  29. [1.569s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:91:85: required from here
  30. [1.569s] /usr/include/c++/11/bits/shared_ptr.h:130:15: error: no type named ‘type’ in ‘struct std::enable_if<false, std::shared_ptr<rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > > >&>’
  31. [1.569s] 130 | using _Assignable = typename enable_if<
  32. [1.569s] | ^~~~~~~~~~~
  33. [1.569s] /usr/include/c++/11/bits/shared_ptr.h:374:9: note: candidate: ‘template<class _Yp> std::shared_ptr<_Tp>::_Assignable<std::auto_ptr<_Up> > std::shared_ptr<_Tp>::operator=(std::auto_ptr<_Up>&&) [with _Yp = _Yp; _Tp = rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >]’
  34. [1.569s] 374 | operator=(auto_ptr<_Yp>&& __r)
  35. [1.569s] | ^~~~~~~~
  36. [1.569s] /usr/include/c++/11/bits/shared_ptr.h:374:9: note:  template argument deduction/substitution failed:
  37. [1.569s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:91:85: note:  ‘std::shared_ptr<rclcpp::Publisher<sensor_msgs::msg::Joy_<std::allocator<void> >, std::allocator<void> > >’ is not derived from ‘std::auto_ptr<_Up>’
  38. [1.569s] 91 | er = this->create_publisher<sensor_msgs::msg::Joy>("g29_feedback", 10);
  39. [1.569s] | ^
  40. [1.569s]
  41. [1.569s] In file included from /usr/include/c++/11/memory:77,
  42. [1.569s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:153,
  43. [1.569s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  44. [1.569s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  45. [1.569s] /usr/include/c++/11/bits/shared_ptr.h:391:9: note: candidate: ‘template<class _Yp> std::shared_ptr<_Tp>::_Assignable<std::shared_ptr<_Yp> > std::shared_ptr<_Tp>::operator=(std::shared_ptr<_Yp>&&) [with _Yp = _Yp; _Tp = rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >]’
  46. [1.569s] 391 | operator=(shared_ptr<_Yp>&& __r) noexcept
  47. [1.569s] | ^~~~~~~~
  48. [1.570s] /usr/include/c++/11/bits/shared_ptr.h:391:9: note:  template argument deduction/substitution failed:
  49. [1.570s] /usr/include/c++/11/bits/shared_ptr.h: In substitution of ‘template<class _Tp> template<class _Arg> using _Assignable = typename std::enable_if<std::is_assignable<std::__shared_ptr<_Tp>&, _Arg>::value, std::shared_ptr<_Tp>&>::type [with _Arg = std::shared_ptr<rclcpp::Publisher<sensor_msgs::msg::Joy_<std::allocator<void> >, std::allocator<void> > >; _Tp = rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >]’:
  50. [1.570s] /usr/include/c++/11/bits/shared_ptr.h:391:2: required by substitution of ‘template<class _Yp> std::shared_ptr<rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > > >::_Assignable<std::shared_ptr<_Tp> > std::shared_ptr<rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > > >::operator=<_Yp>(std::shared_ptr<_Tp>&&) [with _Yp = rclcpp::Publisher<sensor_msgs::msg::Joy_<std::allocator<void> >, std::allocator<void> >]’
  51. [1.570s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:91:85: required from here
  52. [1.570s] /usr/include/c++/11/bits/shared_ptr.h:130:15: error: no type named ‘type’ in ‘struct std::enable_if<false, std::shared_ptr<rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > > >&>’
  53. [1.570s] 130 | using _Assignable = typename enable_if<
  54. [1.570s] | ^~~~~~~~~~~
  55. [1.570s] /usr/include/c++/11/bits/shared_ptr.h:399:9: note: candidate: ‘template<class _Yp, class _Del> std::shared_ptr<_Tp>::_Assignable<std::unique_ptr<_Up, _Ep> > std::shared_ptr<_Tp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Yp = _Yp; _Del = _Del; _Tp = rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >]’
  56. [1.570s] 399 | operator=(unique_ptr<_Yp, _Del>&& __r)
  57. [1.570s] | ^~~~~~~~
  58. [1.570s] /usr/include/c++/11/bits/shared_ptr.h:399:9: note:  template argument deduction/substitution failed:
  59. [1.570s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:91:85: note:  ‘std::shared_ptr<rclcpp::Publisher<sensor_msgs::msg::Joy_<std::allocator<void> >, std::allocator<void> > >’ is not derived from ‘std::unique_ptr<_Tp, _Dp>’
  60. [1.570s] 91 | er = this->create_publisher<sensor_msgs::msg::Joy>("g29_feedback", 10);
  61. [1.570s] | ^
  62. [1.570s]
  63. [1.570s] In file included from /usr/include/c++/11/memory:77,
  64. [1.570s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:153,
  65. [1.570s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  66. [1.570s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  67. [1.570s] /usr/include/c++/11/bits/shared_ptr.h:359:19: note: candidate: ‘std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(const std::shared_ptr<_Tp>&) [with _Tp = rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >]’
  68. [1.570s] 359 | shared_ptr& operator=(const shared_ptr&) noexcept = default;
  69. [1.570s] | ^~~~~~~~
  70. [1.570s] /usr/include/c++/11/bits/shared_ptr.h:359:29: note:  no known conversion for argument 1 from ‘std::shared_ptr<rclcpp::Publisher<sensor_msgs::msg::Joy_<std::allocator<void> >, std::allocator<void> > >’ to ‘const std::shared_ptr<rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > > >&’
  71. [1.570s] 359 | shared_ptr& operator=(const shared_ptr&) noexcept = default;
  72. [1.570s] | ^~~~~~~~~~~~~~~~~
  73. [1.570s] /usr/include/c++/11/bits/shared_ptr.h:383:7: note: candidate: ‘std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(std::shared_ptr<_Tp>&&) [with _Tp = rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >]’
  74. [1.570s] 383 | operator=(shared_ptr&& __r) noexcept
  75. [1.570s] | ^~~~~~~~
  76. [1.570s] /usr/include/c++/11/bits/shared_ptr.h:383:30: note:  no known conversion for argument 1 from ‘std::shared_ptr<rclcpp::Publisher<sensor_msgs::msg::Joy_<std::allocator<void> >, std::allocator<void> > >’ to ‘std::shared_ptr<rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > > >&&’
  77. [1.570s] 383 | operator=(shared_ptr&& __r) noexcept
  78. [1.570s] | ~~~~~~~~~~~~~^~~
  79. [1.576s] /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()’:
  80. [1.576s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:196:27: error: no matching function for call to ‘rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >::publish(sensor_msgs::msg::Joy_<std::allocator<void> >&)’
  81. [1.576s] 196 | g29_publisher->publish(message);
  82. [1.576s] | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  83. [1.576s] In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  84. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  85. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  86. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  87. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  88. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  89. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  90. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  91. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  92. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  93. [1.576s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  94. [1.576s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  95. [1.576s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:254:3: note: candidate: ‘template<class T> std::enable_if_t<(rosidl_generator_traits::is_message<T>::value && std::is_same<T, typename rclcpp::TypeAdapter<MessageT>::ros_message_type>::value)> rclcpp::Publisher<MessageT, AllocatorT>::publish(std::unique_ptr<T, typename std::conditional<std::is_same<typename std::allocator_traits<typename std::allocator_traits<_Allocator>::rebind_traits<typename rclcpp::TypeAdapter<MessageT, void, void>::ros_message_type>::allocator_type>::rebind_alloc<typename rclcpp::TypeAdapter<MessageT, void, void>::ros_message_type>, std::allocator<typename rclcpp::TypeAdapter<MessageT>::ros_message_type> >::value, std::default_delete<typename rclcpp::TypeAdapter<MessageT>::ros_message_type>, rclcpp::allocator::AllocatorDeleter<typename std::allocator_traits<_Allocator>::rebind_traits<typename rclcpp::TypeAdapter<MessageT, void, void>::ros_message_type>::allocator_type> >::type>) [with T = T; MessageT = g29_msg::msg::G29Msg_<std::allocator<void> >; AllocatorT = std::allocator<void>]’
  96. [1.576s] 254 | publish(std::unique_ptr<T, ROSMessageTypeDeleter> msg)
  97. [1.576s] | ^~~~~~~
  98. [1.576s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:254:3: note:  template argument deduction/substitution failed:
  99. [1.576s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:196:27: note:  ‘sensor_msgs::msg::Joy_<std::allocator<void> >’ is not derived from ‘std::unique_ptr<T, std::default_delete<g29_msg::msg::G29Msg_<std::allocator<void> > > >’
  100. [1.576s] 196 | g29_publisher->publish(message);
  101. [1.576s] | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  102. [1.576s] In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  103. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  104. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  105. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  106. [1.576s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  107. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  108. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  109. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  110. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  111. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  112. [1.577s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  113. [1.577s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  114. [1.577s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:295:3: note: candidate: ‘template<class T> std::enable_if_t<(rosidl_generator_traits::is_message<T>::value && std::is_same<T, typename rclcpp::TypeAdapter<MessageT>::ros_message_type>::value)> rclcpp::Publisher<MessageT, AllocatorT>::publish(const T&) [with T = T; MessageT = g29_msg::msg::G29Msg_<std::allocator<void> >; AllocatorT = std::allocator<void>]’
  115. [1.577s] 295 | publish(const T & msg)
  116. [1.577s] | ^~~~~~~
  117. [1.577s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:295:3: note:  template argument deduction/substitution failed:
  118. [1.577s] In file included from /usr/include/c++/11/bits/move.h:57,
  119. [1.577s] from /usr/include/c++/11/bits/stl_pair.h:59,
  120. [1.577s] from /usr/include/c++/11/bits/stl_algobase.h:64,
  121. [1.577s] from /usr/include/c++/11/bits/specfun.h:45,
  122. [1.577s] from /usr/include/c++/11/cmath:1935,
  123. [1.577s] from /usr/include/c++/11/math.h:36,
  124. [1.577s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:20:
  125. [1.577s] /usr/include/c++/11/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]’:
  126. [1.577s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:295:3: required by substitution of ‘template<class T> std::enable_if_t<(rosidl_generator_traits::is_message<T>::value && std::is_same<T, g29_msg::msg::G29Msg_<std::allocator<void> > >::value), void> rclcpp::Publisher<g29_msg::msg::G29Msg_<std::allocator<void> > >::publish<T>(const T&) [with T = sensor_msgs::msg::Joy_<std::allocator<void> >]’
  127. [1.577s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:196:27: required from here
  128. [1.577s] /usr/include/c++/11/type_traits:2579:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
  129. [1.577s] 2579 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
  130. [1.577s] | ^~~~~~~~~~~
  131. [1.577s] In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  132. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  133. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  134. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  135. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  136. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  137. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  138. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  139. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  140. [1.577s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  141. [1.577s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  142. [1.577s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  143. [1.577s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:325:3: note: candidate: ‘template<class T> std::enable_if_t<(typename rclcpp::TypeAdapter<MessageT>::is_specialized::value && std::is_same<T, typename rclcpp::TypeAdapter<MessageT>::custom_type>::value)> rclcpp::Publisher<MessageT, AllocatorT>::publish(std::unique_ptr<T, typename std::conditional<std::is_same<typename std::allocator_traits<typename std::allocator_traits<_Allocator>::rebind_traits<typename rclcpp::TypeAdapter<MessageT, void, void>::custom_type>::allocator_type>::rebind_alloc<typename rclcpp::TypeAdapter<MessageT, void, void>::custom_type>, std::allocator<typename rclcpp::TypeAdapter<MessageT>::custom_type> >::value, std::default_delete<typename rclcpp::TypeAdapter<MessageT>::custom_type>, rclcpp::allocator::AllocatorDeleter<typename std::allocator_traits<_Allocator>::rebind_traits<typename rclcpp::TypeAdapter<MessageT, void, void>::custom_type>::allocator_type> >::type>) [with T = T; MessageT = g29_msg::msg::G29Msg_<std::allocator<void> >; AllocatorT = std::allocator<void>]’
  144. [1.577s] 325 | publish(std::unique_ptr<T, PublishedTypeDeleter> msg)
  145. [1.577s] | ^~~~~~~
  146. [1.577s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:325:3: note:  template argument deduction/substitution failed:
  147. [1.578s] /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:196:27: note:  ‘sensor_msgs::msg::Joy_<std::allocator<void> >’ is not derived from ‘std::unique_ptr<T, std::default_delete<g29_msg::msg::G29Msg_<std::allocator<void> > > >’
  148. [1.578s] 196 | g29_publisher->publish(message);
  149. [1.578s] | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  150. [1.578s] In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  151. [1.578s] from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  152. [1.578s] from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  153. [1.578s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  154. [1.578s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  155. [1.578s] from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  156. [1.578s] from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  157. [1.578s] from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  158. [1.578s] from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  159. [1.578s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  160. [1.578s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  161. [1.578s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  162. [1.578s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:367:3: note: candidate: ‘template<class T> std::enable_if_t<(typename rclcpp::TypeAdapter<MessageT>::is_specialized::value && std::is_same<T, typename rclcpp::TypeAdapter<MessageT>::custom_type>::value)> rclcpp::Publisher<MessageT, AllocatorT>::publish(const T&) [with T = T; MessageT = g29_msg::msg::G29Msg_<std::allocator<void> >; AllocatorT = std::allocator<void>]’
  163. [1.578s] 367 | publish(const T & msg)
  164. [1.578s] | ^~~~~~~
  165. [1.578s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:367:3: note:  template argument deduction/substitution failed:
  166. [1.578s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:386:3: note: candidate: ‘void rclcpp::Publisher<MessageT, AllocatorT>::publish(const rcl_serialized_message_t&) [with MessageT = g29_msg::msg::G29Msg_<std::allocator<void> >; AllocatorT = std::allocator<void>; rcl_serialized_message_t = rcutils_uint8_array_s]’
  167. [1.578s] 386 | publish(const rcl_serialized_message_t & serialized_msg)
  168. [1.578s] | ^~~~~~~
  169. [1.578s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:386:44: note:  no known conversion for argument 1 from ‘sensor_msgs::msg::Joy_<std::allocator<void> >’ to ‘const rcl_serialized_message_t&’ {aka ‘const rcutils_uint8_array_s&’}
  170. [1.578s] 386 | publish(const rcl_serialized_message_t & serialized_msg)
  171. [1.578s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  172. [1.578s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:392:3: note: candidate: ‘void rclcpp::Publisher<MessageT, AllocatorT>::publish(const rclcpp::SerializedMessage&) [with MessageT = g29_msg::msg::G29Msg_<std::allocator<void> >; AllocatorT = std::allocator<void>]’
  173. [1.578s] 392 | publish(const SerializedMessage & serialized_msg)
  174. [1.578s] | ^~~~~~~
  175. [1.578s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:392:37: note:  no known conversion for argument 1 from ‘sensor_msgs::msg::Joy_<std::allocator<void> >’ to ‘const rclcpp::SerializedMessage&’
  176. [1.578s] 392 | publish(const SerializedMessage & serialized_msg)
  177. [1.578s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  178. [1.578s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:406:3: note: candidate: ‘void rclcpp::Publisher<MessageT, AllocatorT>::publish(rclcpp::LoanedMessage<typename rclcpp::TypeAdapter<MessageT>::ros_message_type, AllocatorT>&&) [with MessageT = g29_msg::msg::G29Msg_<std::allocator<void> >; AllocatorT = std::allocator<void>; typename rclcpp::TypeAdapter<MessageT>::ros_message_type = g29_msg::msg::G29Msg_<std::allocator<void> >]’
  179. [1.578s] 406 | publish(rclcpp::LoanedMessage<ROSMessageType, AllocatorT> && loaned_msg)
  180. [1.578s] | ^~~~~~~
  181. [1.578s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:406:64: note:  no known conversion for argument 1 from ‘sensor_msgs::msg::Joy_<std::allocator<void> >’ to ‘rclcpp::LoanedMessage<g29_msg::msg::G29Msg_<std::allocator<void> >, std::allocator<void> >&&’
  182. [1.578s] 406 | ublish(rclcpp::LoanedMessage<ROSMessageType, AllocatorT> && loaned_msg)
  183. [1.578s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
  184. [1.578s]
  185. [2.053s] gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1
  186. [2.053s] gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2
  187. [2.053s] gmake: *** [Makefile:146:all] 错误 2
  188. [2.055s] 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