-- Found ament_cmake: 1.3.11 (/opt/ros/humble/share/ament_cmake/cmake) -- Found std_msgs: 4.8.0 (/opt/ros/humble/share/std_msgs/cmake) -- Found rosidl_generator_c: 3.1.6 (/opt/ros/humble/share/rosidl_generator_c/cmake) -- Found rosidl_adapter: 3.1.6 (/opt/ros/humble/share/rosidl_adapter/cmake) -- Found rosidl_generator_cpp: 3.1.6 (/opt/ros/humble/share/rosidl_generator_cpp/cmake) -- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c -- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp -- Found rclcpp: 16.0.12 (/opt/ros/humble/share/rclcpp/cmake) -- Found rmw_implementation_cmake: 6.1.2 (/opt/ros/humble/share/rmw_implementation_cmake/cmake) -- Found rmw_fastrtps_cpp: 6.2.7 (/opt/ros/humble/share/rmw_fastrtps_cpp/cmake) -- Using RMW implementation 'rmw_fastrtps_cpp' as default -- Found sensor_msgs: 4.8.0 (/opt/ros/humble/share/sensor_msgs/cmake) -- Found g29_msg: 0.0.0 (/home/wub/work/1_nzzn/2_code/13_LG/install/g29_msg/share/g29_msg/cmake) -- Found ament_lint_auto: 0.12.12 (/opt/ros/humble/share/ament_lint_auto/cmake) -- Added test 'cppcheck' to perform static code analysis on C / C++ code -- Configured cppcheck include dirs: $ -- Configured cppcheck exclude dirs and/or files: -- Added test 'lint_cmake' to check CMake code style -- Added test 'uncrustify' to check C / C++ code style -- Configured uncrustify additional arguments: -- Added test 'xmllint' to check XML markup files -- Configuring done -- Generating done -- Build files have been written to: /home/wub/work/1_nzzn/2_code/13_LG/build/g29_ros2_feedback Consolidate compiler generated dependencies of target g29_ros2_feedback_node [ 25%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/evdev_helper.cpp.o [ 50%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o [ 75%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/main.cpp.o 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: /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&)โ€™: /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;;] 56 | std::string filename; // ่ฎพๅค‡ๆ–‡ไปถๅ | ^~~~~~~~ /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;;] 40 | : filename(filename), Node(node_name) // ๅˆๅง‹ๅŒ–ๆˆๅ‘˜ๅ˜้‡ filename | ^ /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 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name) | ^~~~~~~~~~~~ /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()โ€™: /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_ >โ€™ has no member named โ€˜heartbeatโ€™ 162 | message.heartbeat = heartbeat; | ^~~~~~~~~ /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_ >โ€™ has no member named โ€˜axis0โ€™ 163 | message.axis0 = axis_state[0]; | ^~~~~ /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_ >โ€™ has no member named โ€˜axis1โ€™ 164 | message.axis1 = axis_state[1]; | ^~~~~ /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_ >โ€™ has no member named โ€˜axis2โ€™ 165 | message.axis2 = axis_state[2]; | ^~~~~ /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_ >โ€™ has no member named โ€˜axis3โ€™ 166 | message.axis3 = axis_state[3]; | ^~~~~ /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_ >โ€™ has no member named โ€˜axis4โ€™ 167 | message.axis4 = axis_state[4]; | ^~~~~ /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_ >โ€™ has no member named โ€˜axis5โ€™ 168 | message.axis5 = axis_state[5]; | ^~~~~ /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_ >โ€™ has no member named โ€˜button0โ€™; did you mean โ€˜buttonsโ€™? 170 | message.button0 = button_state[0]; | ^~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button1โ€™; did you mean โ€˜buttonsโ€™? 171 | message.button1 = button_state[1]; | ^~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button2โ€™; did you mean โ€˜buttonsโ€™? 172 | message.button2 = button_state[2]; | ^~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button3โ€™; did you mean โ€˜buttonsโ€™? 173 | message.button3 = button_state[3]; | ^~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button4โ€™; did you mean โ€˜buttonsโ€™? 174 | message.button4 = button_state[4]; | ^~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button5โ€™; did you mean โ€˜buttonsโ€™? 175 | message.button5 = button_state[5]; | ^~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button6โ€™; did you mean โ€˜buttonsโ€™? 176 | message.button6 = button_state[6]; | ^~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button7โ€™; did you mean โ€˜buttonsโ€™? 177 | message.button7 = button_state[7]; | ^~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button8โ€™; did you mean โ€˜buttonsโ€™? 178 | message.button8 = button_state[8]; | ^~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button9โ€™; did you mean โ€˜buttonsโ€™? 179 | message.button9 = button_state[9]; | ^~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button10โ€™; did you mean โ€˜buttonsโ€™? 180 | message.button10 = button_state[10]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button11โ€™; did you mean โ€˜buttonsโ€™? 181 | message.button11 = button_state[11]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button12โ€™; did you mean โ€˜buttonsโ€™? 182 | message.button12 = button_state[12]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button13โ€™; did you mean โ€˜buttonsโ€™? 183 | message.button13 = button_state[13]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button14โ€™; did you mean โ€˜buttonsโ€™? 184 | message.button14 = button_state[14]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button15โ€™; did you mean โ€˜buttonsโ€™? 185 | message.button15 = button_state[15]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button16โ€™; did you mean โ€˜buttonsโ€™? 186 | message.button16 = button_state[16]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button17โ€™; did you mean โ€˜buttonsโ€™? 187 | message.button17 = button_state[17]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button18โ€™; did you mean โ€˜buttonsโ€™? 188 | message.button18 = button_state[18]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button19โ€™; did you mean โ€˜buttonsโ€™? 189 | message.button19 = button_state[19]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button20โ€™; did you mean โ€˜buttonsโ€™? 190 | message.button20 = button_state[20]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button21โ€™; did you mean โ€˜buttonsโ€™? 191 | message.button21 = button_state[21]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button22โ€™; did you mean โ€˜buttonsโ€™? 192 | message.button22 = button_state[22]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button23โ€™; did you mean โ€˜buttonsโ€™? 193 | message.button23 = button_state[23]; | ^~~~~~~~ | buttons /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_ >โ€™ has no member named โ€˜button24โ€™; did you mean โ€˜buttonsโ€™? 194 | message.button24 = button_state[24]; | ^~~~~~~~ | buttons /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 > >::publish(sensor_msgs::msg::Joy_ >&)โ€™ 196 | g29_publisher->publish(message); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31, from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50, from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18, from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20, from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37, from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25, from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34: /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:254:3: note: candidate: โ€˜template std::enable_if_t<(rosidl_generator_traits::is_message::value && std::is_same::ros_message_type>::value)> rclcpp::Publisher::publish(std::unique_ptr::rebind_traits::ros_message_type>::allocator_type>::rebind_alloc::ros_message_type>, std::allocator::ros_message_type> >::value, std::default_delete::ros_message_type>, rclcpp::allocator::AllocatorDeleter::rebind_traits::ros_message_type>::allocator_type> >::type>) [with T = T; MessageT = g29_msg::msg::G29Msg_ >; AllocatorT = std::allocator]โ€™ 254 | publish(std::unique_ptr msg) | ^~~~~~~ /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:254:3: note:  template argument deduction/substitution failed: /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_ >โ€™ is not derived from โ€˜std::unique_ptr > > >โ€™ 196 | g29_publisher->publish(message); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31, from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50, from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18, from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20, from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37, from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25, from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34: /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:295:3: note: candidate: โ€˜template std::enable_if_t<(rosidl_generator_traits::is_message::value && std::is_same::ros_message_type>::value)> rclcpp::Publisher::publish(const T&) [with T = T; MessageT = g29_msg::msg::G29Msg_ >; AllocatorT = std::allocator]โ€™ 295 | publish(const T & msg) | ^~~~~~~ /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:295:3: note:  template argument deduction/substitution failed: In file included from /usr/include/c++/11/bits/move.h:57, from /usr/include/c++/11/bits/stl_pair.h:59, from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from /usr/include/c++/11/math.h:36, from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:20: /usr/include/c++/11/type_traits: In substitution of โ€˜template using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]โ€™: /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:295:3: required by substitution of โ€˜template std::enable_if_t<(rosidl_generator_traits::is_message::value && std::is_same > >::value), void> rclcpp::Publisher > >::publish(const T&) [with T = sensor_msgs::msg::Joy_ >]โ€™ /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 /usr/include/c++/11/type_traits:2579:11: error: no type named โ€˜typeโ€™ in โ€˜struct std::enable_ifโ€™ 2579 | using enable_if_t = typename enable_if<_Cond, _Tp>::type; | ^~~~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31, from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50, from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18, from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20, from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37, from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25, from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34: /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:325:3: note: candidate: โ€˜template std::enable_if_t<(typename rclcpp::TypeAdapter::is_specialized::value && std::is_same::custom_type>::value)> rclcpp::Publisher::publish(std::unique_ptr::rebind_traits::custom_type>::allocator_type>::rebind_alloc::custom_type>, std::allocator::custom_type> >::value, std::default_delete::custom_type>, rclcpp::allocator::AllocatorDeleter::rebind_traits::custom_type>::allocator_type> >::type>) [with T = T; MessageT = g29_msg::msg::G29Msg_ >; AllocatorT = std::allocator]โ€™ 325 | publish(std::unique_ptr msg) | ^~~~~~~ /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:325:3: note:  template argument deduction/substitution failed: /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_ >โ€™ is not derived from โ€˜std::unique_ptr > > >โ€™ 196 | g29_publisher->publish(message); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /opt/ros/humble/include/rclcpp/rclcpp/topic_statistics/subscription_topic_statistics.hpp:31, from /opt/ros/humble/include/rclcpp/rclcpp/subscription.hpp:50, from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18, from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20, from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37, from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25, from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155, from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:25, from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34: /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:367:3: note: candidate: โ€˜template std::enable_if_t<(typename rclcpp::TypeAdapter::is_specialized::value && std::is_same::custom_type>::value)> rclcpp::Publisher::publish(const T&) [with T = T; MessageT = g29_msg::msg::G29Msg_ >; AllocatorT = std::allocator]โ€™ 367 | publish(const T & msg) | ^~~~~~~ /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:367:3: note:  template argument deduction/substitution failed: /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:386:3: note: candidate: โ€˜void rclcpp::Publisher::publish(const rcl_serialized_message_t&) [with MessageT = g29_msg::msg::G29Msg_ >; AllocatorT = std::allocator; rcl_serialized_message_t = rcutils_uint8_array_s]โ€™ 386 | publish(const rcl_serialized_message_t & serialized_msg) | ^~~~~~~ /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:386:44: note:  no known conversion for argument 1 from โ€˜sensor_msgs::msg::Joy_ >โ€™ to โ€˜const rcl_serialized_message_t&โ€™ {aka โ€˜const rcutils_uint8_array_s&โ€™} 386 | publish(const rcl_serialized_message_t & serialized_msg) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:392:3: note: candidate: โ€˜void rclcpp::Publisher::publish(const rclcpp::SerializedMessage&) [with MessageT = g29_msg::msg::G29Msg_ >; AllocatorT = std::allocator]โ€™ 392 | publish(const SerializedMessage & serialized_msg) | ^~~~~~~ /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:392:37: note:  no known conversion for argument 1 from โ€˜sensor_msgs::msg::Joy_ >โ€™ to โ€˜const rclcpp::SerializedMessage&โ€™ 392 | publish(const SerializedMessage & serialized_msg) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:406:3: note: candidate: โ€˜void rclcpp::Publisher::publish(rclcpp::LoanedMessage::ros_message_type, AllocatorT>&&) [with MessageT = g29_msg::msg::G29Msg_ >; AllocatorT = std::allocator; typename rclcpp::TypeAdapter::ros_message_type = g29_msg::msg::G29Msg_ >]โ€™ 406 | publish(rclcpp::LoanedMessage && loaned_msg) | ^~~~~~~ /opt/ros/humble/include/rclcpp/rclcpp/publisher.hpp:406:64: note:  no known conversion for argument 1 from โ€˜sensor_msgs::msg::Joy_ >โ€™ to โ€˜rclcpp::LoanedMessage >, std::allocator >&&โ€™ 406 | publish(rclcpp::LoanedMessage && loaned_msg) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90๏ผšCMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] ้”™่ฏฏ 1 gmake[1]: *** [CMakeFiles/Makefile2:137๏ผšCMakeFiles/g29_ros2_feedback_node.dir/all] ้”™่ฏฏ 2 gmake: *** [Makefile:146๏ผšall] ้”™่ฏฏ 2