stderr.log 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. 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:
  2. /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&)’:
  3. /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;;]
  4. 56 | std::string filename; // 设备文件名
  5. | ^~~~~~~~
  6. /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;;]
  7. 40 | : filename(filename), Node(node_name) // 初始化成员变量 filename
  8. | ^
  9. /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;;]
  10. 39 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name)
  11. | ^~~~~~~~~~~~
  12. /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()’:
  13. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:162:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘heartbeat’
  14. 162 | message.heartbeat = heartbeat;
  15. | ^~~~~~~~~
  16. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:163:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘axis0’
  17. 163 | message.axis0 = axis_state[0];
  18. | ^~~~~
  19. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:164:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘axis1’
  20. 164 | message.axis1 = axis_state[1];
  21. | ^~~~~
  22. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:165:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘axis2’
  23. 165 | message.axis2 = axis_state[2];
  24. | ^~~~~
  25. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:166:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘axis3’
  26. 166 | message.axis3 = axis_state[3];
  27. | ^~~~~
  28. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:167:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘axis4’
  29. 167 | message.axis4 = axis_state[4];
  30. | ^~~~~
  31. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:168:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘axis5’
  32. 168 | message.axis5 = axis_state[5];
  33. | ^~~~~
  34. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:170:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button0’; did you mean ‘buttons’?
  35. 170 | message.button0 = button_state[0];
  36. | ^~~~~~~
  37. | buttons
  38. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:171:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button1’; did you mean ‘buttons’?
  39. 171 | message.button1 = button_state[1];
  40. | ^~~~~~~
  41. | buttons
  42. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:172:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button2’; did you mean ‘buttons’?
  43. 172 | message.button2 = button_state[2];
  44. | ^~~~~~~
  45. | buttons
  46. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:173:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button3’; did you mean ‘buttons’?
  47. 173 | message.button3 = button_state[3];
  48. | ^~~~~~~
  49. | buttons
  50. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:174:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button4’; did you mean ‘buttons’?
  51. 174 | message.button4 = button_state[4];
  52. | ^~~~~~~
  53. | buttons
  54. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:175:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button5’; did you mean ‘buttons’?
  55. 175 | message.button5 = button_state[5];
  56. | ^~~~~~~
  57. | buttons
  58. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:176:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button6’; did you mean ‘buttons’?
  59. 176 | message.button6 = button_state[6];
  60. | ^~~~~~~
  61. | buttons
  62. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:177:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button7’; did you mean ‘buttons’?
  63. 177 | message.button7 = button_state[7];
  64. | ^~~~~~~
  65. | buttons
  66. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:178:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button8’; did you mean ‘buttons’?
  67. 178 | message.button8 = button_state[8];
  68. | ^~~~~~~
  69. | buttons
  70. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:179:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button9’; did you mean ‘buttons’?
  71. 179 | message.button9 = button_state[9];
  72. | ^~~~~~~
  73. | buttons
  74. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:180:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button10’; did you mean ‘buttons’?
  75. 180 | message.button10 = button_state[10];
  76. | ^~~~~~~~
  77. | buttons
  78. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:181:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button11’; did you mean ‘buttons’?
  79. 181 | message.button11 = button_state[11];
  80. | ^~~~~~~~
  81. | buttons
  82. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:182:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button12’; did you mean ‘buttons’?
  83. 182 | message.button12 = button_state[12];
  84. | ^~~~~~~~
  85. | buttons
  86. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:183:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button13’; did you mean ‘buttons’?
  87. 183 | message.button13 = button_state[13];
  88. | ^~~~~~~~
  89. | buttons
  90. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:184:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button14’; did you mean ‘buttons’?
  91. 184 | message.button14 = button_state[14];
  92. | ^~~~~~~~
  93. | buttons
  94. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:185:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button15’; did you mean ‘buttons’?
  95. 185 | message.button15 = button_state[15];
  96. | ^~~~~~~~
  97. | buttons
  98. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:186:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button16’; did you mean ‘buttons’?
  99. 186 | message.button16 = button_state[16];
  100. | ^~~~~~~~
  101. | buttons
  102. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:187:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button17’; did you mean ‘buttons’?
  103. 187 | message.button17 = button_state[17];
  104. | ^~~~~~~~
  105. | buttons
  106. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:188:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button18’; did you mean ‘buttons’?
  107. 188 | message.button18 = button_state[18];
  108. | ^~~~~~~~
  109. | buttons
  110. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:189:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button19’; did you mean ‘buttons’?
  111. 189 | message.button19 = button_state[19];
  112. | ^~~~~~~~
  113. | buttons
  114. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:190:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button20’; did you mean ‘buttons’?
  115. 190 | message.button20 = button_state[20];
  116. | ^~~~~~~~
  117. | buttons
  118. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:191:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button21’; did you mean ‘buttons’?
  119. 191 | message.button21 = button_state[21];
  120. | ^~~~~~~~
  121. | buttons
  122. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:192:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button22’; did you mean ‘buttons’?
  123. 192 | message.button22 = button_state[22];
  124. | ^~~~~~~~
  125. | buttons
  126. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:193:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button23’; did you mean ‘buttons’?
  127. 193 | message.button23 = button_state[23];
  128. | ^~~~~~~~
  129. | buttons
  130. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:194:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button24’; did you mean ‘buttons’?
  131. 194 | message.button24 = button_state[24];
  132. | ^~~~~~~~
  133. | buttons
  134. /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> >&)’
  135. 196 | g29_publisher->publish(message);
  136. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  137. In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  138. from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  139. from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  140. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  141. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  142. from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  143. from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  144. from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  145. from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  146. from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  147. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  148. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  149. /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>]’
  150. 254 | publish(std::unique_ptr<T, ROSMessageTypeDeleter> msg)
  151. | ^~~~~~~
  152. /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:254:3: note:  template argument deduction/substitution failed:
  153. /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> > > >’
  154. 196 | g29_publisher->publish(message);
  155. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  156. In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  157. from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  158. from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  159. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  160. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  161. from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  162. from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  163. from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  164. from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  165. from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  166. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  167. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  168. /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>]’
  169. 295 | publish(const T & msg)
  170. | ^~~~~~~
  171. /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:295:3: note:  template argument deduction/substitution failed:
  172. In file included from /usr/include/c++/11/bits/move.h:57,
  173. from /usr/include/c++/11/bits/stl_pair.h:59,
  174. from /usr/include/c++/11/bits/stl_algobase.h:64,
  175. from /usr/include/c++/11/bits/specfun.h:45,
  176. from /usr/include/c++/11/cmath:1935,
  177. from /usr/include/c++/11/math.h:36,
  178. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:20:
  179. /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]’:
  180. /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> >]’
  181. /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
  182. /usr/include/c++/11/type_traits:2579:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
  183. 2579 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
  184. | ^~~~~~~~~~~
  185. In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  186. from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  187. from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  188. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  189. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  190. from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  191. from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  192. from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  193. from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  194. from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  195. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  196. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  197. /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>]’
  198. 325 | publish(std::unique_ptr<T, PublishedTypeDeleter> msg)
  199. | ^~~~~~~
  200. /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:325:3: note:  template argument deduction/substitution failed:
  201. /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> > > >’
  202. 196 | g29_publisher->publish(message);
  203. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  204. In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  205. from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  206. from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  207. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  208. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  209. from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  210. from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  211. from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  212. from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  213. from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  214. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  215. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  216. /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>]’
  217. 367 | publish(const T & msg)
  218. | ^~~~~~~
  219. /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:367:3: note:  template argument deduction/substitution failed:
  220. /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]’
  221. 386 | publish(const rcl_serialized_message_t & serialized_msg)
  222. | ^~~~~~~
  223. /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&’}
  224. 386 | publish(const rcl_serialized_message_t & serialized_msg)
  225. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  226. /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>]’
  227. 392 | publish(const SerializedMessage & serialized_msg)
  228. | ^~~~~~~
  229. /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&’
  230. 392 | publish(const SerializedMessage & serialized_msg)
  231. | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  232. /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> >]’
  233. 406 | publish(rclcpp::LoanedMessage<ROSMessageType, AllocatorT> && loaned_msg)
  234. | ^~~~~~~
  235. /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> >&&’
  236. 406 | ublish(rclcpp::LoanedMessage<ROSMessageType, AllocatorT> && loaned_msg)
  237. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
  238. gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1
  239. gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2
  240. gmake: *** [Makefile:146:all] 错误 2