streams.log 36 KB

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