stdout_stderr.log 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. -- Found ament_cmake: 1.3.11 (/opt/ros/humble/share/ament_cmake/cmake)
  2. -- Found std_msgs: 4.8.0 (/opt/ros/humble/share/std_msgs/cmake)
  3. -- Found rosidl_generator_c: 3.1.6 (/opt/ros/humble/share/rosidl_generator_c/cmake)
  4. -- Found rosidl_adapter: 3.1.6 (/opt/ros/humble/share/rosidl_adapter/cmake)
  5. -- Found rosidl_generator_cpp: 3.1.6 (/opt/ros/humble/share/rosidl_generator_cpp/cmake)
  6. -- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c
  7. -- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp
  8. -- Found rclcpp: 16.0.12 (/opt/ros/humble/share/rclcpp/cmake)
  9. -- Found rmw_implementation_cmake: 6.1.2 (/opt/ros/humble/share/rmw_implementation_cmake/cmake)
  10. -- Found rmw_fastrtps_cpp: 6.2.7 (/opt/ros/humble/share/rmw_fastrtps_cpp/cmake)
  11. -- Using RMW implementation 'rmw_fastrtps_cpp' as default
  12. -- Found sensor_msgs: 4.8.0 (/opt/ros/humble/share/sensor_msgs/cmake)
  13. -- Found g29_msg: 0.0.0 (/home/wub/work/1_nzzn/2_code/13_LG/install/g29_msg/share/g29_msg/cmake)
  14. -- Found ament_lint_auto: 0.12.12 (/opt/ros/humble/share/ament_lint_auto/cmake)
  15. -- Added test 'cppcheck' to perform static code analysis on C / C++ code
  16. -- Configured cppcheck include dirs: $<BUILD_INTERFACE:/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/include>
  17. -- Configured cppcheck exclude dirs and/or files:
  18. -- Added test 'lint_cmake' to check CMake code style
  19. -- Added test 'uncrustify' to check C / C++ code style
  20. -- Configured uncrustify additional arguments:
  21. -- Added test 'xmllint' to check XML markup files
  22. -- Configuring done
  23. -- Generating done
  24. -- Build files have been written to: /home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback
  25. Consolidate compiler generated dependencies of target g29_ros2_feedback_node
  26. [ 25%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/evdev_helper.cpp.o
  27. [ 50%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o
  28. [ 75%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/main.cpp.o
  29. 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:
  30. /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&)’:
  31. /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;;]
  32. 56 | std::string filename; // 设备文件名
  33. | ^~~~~~~~
  34. /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;;]
  35. 40 | : filename(filename), Node(node_name) // 初始化成员变量 filename
  36. | ^
  37. /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;;]
  38. 39 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name)
  39. | ^~~~~~~~~~~~
  40. /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()’:
  41. /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’
  42. 162 | message.heartbeat = heartbeat;
  43. | ^~~~~~~~~
  44. /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’
  45. 163 | message.axis0 = axis_state[0];
  46. | ^~~~~
  47. /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’
  48. 164 | message.axis1 = axis_state[1];
  49. | ^~~~~
  50. /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’
  51. 165 | message.axis2 = axis_state[2];
  52. | ^~~~~
  53. /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’
  54. 166 | message.axis3 = axis_state[3];
  55. | ^~~~~
  56. /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’
  57. 167 | message.axis4 = axis_state[4];
  58. | ^~~~~
  59. /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’
  60. 168 | message.axis5 = axis_state[5];
  61. | ^~~~~
  62. /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’?
  63. 170 | message.button0 = button_state[0];
  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:171:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button1’; did you mean ‘buttons’?
  67. 171 | message.button1 = button_state[1];
  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:172:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button2’; did you mean ‘buttons’?
  71. 172 | message.button2 = button_state[2];
  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:173:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button3’; did you mean ‘buttons’?
  75. 173 | message.button3 = button_state[3];
  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:174:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button4’; did you mean ‘buttons’?
  79. 174 | message.button4 = button_state[4];
  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:175:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button5’; did you mean ‘buttons’?
  83. 175 | message.button5 = button_state[5];
  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:176:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button6’; did you mean ‘buttons’?
  87. 176 | message.button6 = button_state[6];
  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:177:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button7’; did you mean ‘buttons’?
  91. 177 | message.button7 = button_state[7];
  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:178:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button8’; did you mean ‘buttons’?
  95. 178 | message.button8 = button_state[8];
  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:179:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button9’; did you mean ‘buttons’?
  99. 179 | message.button9 = button_state[9];
  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:180:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button10’; did you mean ‘buttons’?
  103. 180 | message.button10 = button_state[10];
  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:181:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button11’; did you mean ‘buttons’?
  107. 181 | message.button11 = button_state[11];
  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:182:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button12’; did you mean ‘buttons’?
  111. 182 | message.button12 = button_state[12];
  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:183:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button13’; did you mean ‘buttons’?
  115. 183 | message.button13 = button_state[13];
  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:184:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button14’; did you mean ‘buttons’?
  119. 184 | message.button14 = button_state[14];
  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:185:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button15’; did you mean ‘buttons’?
  123. 185 | message.button15 = button_state[15];
  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:186:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button16’; did you mean ‘buttons’?
  127. 186 | message.button16 = button_state[16];
  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:187:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button17’; did you mean ‘buttons’?
  131. 187 | message.button17 = button_state[17];
  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:188:13: error: ‘struct sensor_msgs::msg::Joy_<std::allocator<void> >’ has no member named ‘button18’; did you mean ‘buttons’?
  135. 188 | message.button18 = button_state[18];
  136. | ^~~~~~~~
  137. | buttons
  138. /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’?
  139. 189 | message.button19 = button_state[19];
  140. | ^~~~~~~~
  141. | buttons
  142. /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’?
  143. 190 | message.button20 = button_state[20];
  144. | ^~~~~~~~
  145. | buttons
  146. /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’?
  147. 191 | message.button21 = button_state[21];
  148. | ^~~~~~~~
  149. | buttons
  150. /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’?
  151. 192 | message.button22 = button_state[22];
  152. | ^~~~~~~~
  153. | buttons
  154. /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’?
  155. 193 | message.button23 = button_state[23];
  156. | ^~~~~~~~
  157. | buttons
  158. /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’?
  159. 194 | message.button24 = button_state[24];
  160. | ^~~~~~~~
  161. | buttons
  162. /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> >&)’
  163. 196 | g29_publisher->publish(message);
  164. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  165. In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  166. from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  167. from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  168. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  169. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  170. from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  171. from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  172. from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  173. from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  174. from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  175. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  176. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  177. /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>]’
  178. 254 | publish(std::unique_ptr<T, ROSMessageTypeDeleter> msg)
  179. | ^~~~~~~
  180. /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:254:3: note:  template argument deduction/substitution failed:
  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: 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> > > >’
  182. 196 | g29_publisher->publish(message);
  183. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  184. In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  185. from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  186. from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  187. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  188. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  189. from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  190. from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  191. from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  192. from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  193. from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  194. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  195. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  196. /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>]’
  197. 295 | publish(const T & msg)
  198. | ^~~~~~~
  199. /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:295:3: note:  template argument deduction/substitution failed:
  200. In file included from /usr/include/c++/11/bits/move.h:57,
  201. from /usr/include/c++/11/bits/stl_pair.h:59,
  202. from /usr/include/c++/11/bits/stl_algobase.h:64,
  203. from /usr/include/c++/11/bits/specfun.h:45,
  204. from /usr/include/c++/11/cmath:1935,
  205. from /usr/include/c++/11/math.h:36,
  206. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:20:
  207. /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]’:
  208. /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> >]’
  209. /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
  210. /usr/include/c++/11/type_traits:2579:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
  211. 2579 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
  212. | ^~~~~~~~~~~
  213. In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  214. from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  215. from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  216. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  217. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  218. from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  219. from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  220. from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  221. from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  222. from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  223. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  224. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  225. /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>]’
  226. 325 | publish(std::unique_ptr<T, PublishedTypeDeleter> msg)
  227. | ^~~~~~~
  228. /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:325:3: note:  template argument deduction/substitution failed:
  229. /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> > > >’
  230. 196 | g29_publisher->publish(message);
  231. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  232. In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  233. from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  234. from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  235. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  236. from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  237. from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  238. from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  239. from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  240. from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  241. from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  242. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  243. from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  244. /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>]’
  245. 367 | publish(const T & msg)
  246. | ^~~~~~~
  247. /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:367:3: note:  template argument deduction/substitution failed:
  248. /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]’
  249. 386 | publish(const rcl_serialized_message_t & serialized_msg)
  250. | ^~~~~~~
  251. /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&’}
  252. 386 | publish(const rcl_serialized_message_t & serialized_msg)
  253. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  254. /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>]’
  255. 392 | publish(const SerializedMessage & serialized_msg)
  256. | ^~~~~~~
  257. /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&’
  258. 392 | publish(const SerializedMessage & serialized_msg)
  259. | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  260. /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> >]’
  261. 406 | publish(rclcpp::LoanedMessage<ROSMessageType, AllocatorT> && loaned_msg)
  262. | ^~~~~~~
  263. /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> >&&’
  264. 406 | publish(rclcpp::LoanedMessage<ROSMessageType, AllocatorT> && loaned_msg)
  265. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
  266. gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1
  267. gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2
  268. gmake: *** [Makefile:146:all] 错误 2