streams.log 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. [0.008s] 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.535s] 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.535s] /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.535s] /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.535s] 56 | std::string filename; // 设备文件名
  8. [1.535s] | ^~~~~~~~
  9. [1.535s] /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.535s] 40 | : filename(filename), Node(node_name) // 初始化成员变量 filename
  11. [1.535s] | ^
  12. [1.535s] /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.535s] 39 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name)
  14. [1.535s] | ^~~~~~~~~~~~
  15. [1.546s] /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()’:
  16. [1.546s] /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> >&)’
  17. [1.546s] 196 | g29_publisher->publish(message);
  18. [1.547s] | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  19. [1.547s] In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  20. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  21. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  22. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  23. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  24. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  25. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  26. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  27. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  28. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  29. [1.547s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  30. [1.547s] 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.547s] /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>]’
  32. [1.547s] 254 | publish(std::unique_ptr<T, ROSMessageTypeDeleter> msg)
  33. [1.547s] | ^~~~~~~
  34. [1.547s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:254:3: note:  template argument deduction/substitution failed:
  35. [1.547s] /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> > > >’
  36. [1.547s] 196 | g29_publisher->publish(message);
  37. [1.547s] | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  38. [1.547s] In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  39. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  40. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  41. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  42. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  43. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  44. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  45. [1.547s] from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  46. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  47. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  48. [1.548s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  49. [1.548s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  50. [1.548s] /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>]’
  51. [1.548s] 295 | publish(const T & msg)
  52. [1.548s] | ^~~~~~~
  53. [1.548s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:295:3: note:  template argument deduction/substitution failed:
  54. [1.548s] In file included from /usr/include/c++/11/bits/move.h:57,
  55. [1.548s] from /usr/include/c++/11/bits/stl_pair.h:59,
  56. [1.548s] from /usr/include/c++/11/bits/stl_algobase.h:64,
  57. [1.548s] from /usr/include/c++/11/bits/specfun.h:45,
  58. [1.548s] from /usr/include/c++/11/cmath:1935,
  59. [1.548s] from /usr/include/c++/11/math.h:36,
  60. [1.548s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:20:
  61. [1.548s] /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]’:
  62. [1.548s] /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> >]’
  63. [1.548s] /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
  64. [1.548s] /usr/include/c++/11/type_traits:2579:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
  65. [1.548s] 2579 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
  66. [1.548s] | ^~~~~~~~~~~
  67. [1.548s] In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  68. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  69. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  70. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  71. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  72. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  73. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  74. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  75. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  76. [1.548s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  77. [1.548s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  78. [1.548s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  79. [1.548s] /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>]’
  80. [1.548s] 325 | publish(std::unique_ptr<T, PublishedTypeDeleter> msg)
  81. [1.548s] | ^~~~~~~
  82. [1.548s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:325:3: note:  template argument deduction/substitution failed:
  83. [1.548s] /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> > > >’
  84. [1.548s] 196 | g29_publisher->publish(message);
  85. [1.548s] | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
  86. [1.548s] In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31,
  87. [1.549s] from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50,
  88. [1.549s] from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25,
  89. [1.549s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
  90. [1.549s] from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
  91. [1.549s] from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
  92. [1.549s] from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
  93. [1.549s] from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
  94. [1.549s] from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
  95. [1.549s] from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
  96. [1.549s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25,
  97. [1.549s] from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34:
  98. [1.549s] /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>]’
  99. [1.549s] 367 | publish(const T & msg)
  100. [1.549s] | ^~~~~~~
  101. [1.549s] /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:367:3: note:  template argument deduction/substitution failed:
  102. [1.549s] /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]’
  103. [1.549s] 386 | publish(const rcl_serialized_message_t & serialized_msg)
  104. [1.549s] | ^~~~~~~
  105. [1.549s] /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&’}
  106. [1.549s] 386 | publish(const rcl_serialized_message_t & serialized_msg)
  107. [1.549s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  108. [1.549s] /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>]’
  109. [1.549s] 392 | publish(const SerializedMessage & serialized_msg)
  110. [1.549s] | ^~~~~~~
  111. [1.549s] /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&’
  112. [1.549s] 392 | publish(const SerializedMessage & serialized_msg)
  113. [1.549s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
  114. [1.549s] /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> >]’
  115. [1.549s] 406 | publish(rclcpp::LoanedMessage<ROSMessageType, AllocatorT> && loaned_msg)
  116. [1.549s] | ^~~~~~~
  117. [1.549s] /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> >&&’
  118. [1.549s] 406 | ublish(rclcpp::LoanedMessage<ROSMessageType, AllocatorT> && loaned_msg)
  119. [1.549s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
  120. [1.549s]
  121. [2.043s] gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1
  122. [2.043s] gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2
  123. [2.043s] gmake: *** [Makefile:146:all] 错误 2
  124. [2.045s] 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