Consolidate compiler generated dependencies of target g29_ros2_feedback_node [ 25%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.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:91:85: error: no match for โ€˜operator=โ€™ (operand types are โ€˜rclcpp::Publisher > >::SharedPtrโ€™ {aka โ€˜std::shared_ptr > > >โ€™} and โ€˜std::shared_ptr >, std::allocator > >โ€™) 91 | er = this->create_publisher("g29_feedback", 10); | ^ In file included from /usr/include/c++/11/memory:77, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:153, 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: /usr/include/c++/11/bits/shared_ptr.h:363:9: note: candidate: โ€˜template std::shared_ptr<_Tp>::_Assignable&> std::shared_ptr<_Tp>::operator=(const std::shared_ptr<_Yp>&) [with _Yp = _Yp; _Tp = rclcpp::Publisher > >]โ€™ 363 | operator=(const shared_ptr<_Yp>& __r) noexcept | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:363:9: note:  template argument deduction/substitution failed: /usr/include/c++/11/bits/shared_ptr.h: In substitution of โ€˜template template using _Assignable = typename std::enable_if&, _Arg>::value, std::shared_ptr<_Tp>&>::type [with _Arg = const std::shared_ptr >, std::allocator > >&; _Tp = rclcpp::Publisher > >]โ€™: /usr/include/c++/11/bits/shared_ptr.h:363:2: required by substitution of โ€˜template std::shared_ptr > > >::_Assignable&> std::shared_ptr > > >::operator=<_Yp>(const std::shared_ptr<_Tp>&) [with _Yp = rclcpp::Publisher >, std::allocator >]โ€™ /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:91:85: required from here /usr/include/c++/11/bits/shared_ptr.h:130:15: error: no type named โ€˜typeโ€™ in โ€˜struct std::enable_if > > >&>โ€™ 130 | using _Assignable = typename enable_if< | ^~~~~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:374:9: note: candidate: โ€˜template std::shared_ptr<_Tp>::_Assignable > std::shared_ptr<_Tp>::operator=(std::auto_ptr<_Up>&&) [with _Yp = _Yp; _Tp = rclcpp::Publisher > >]โ€™ 374 | operator=(auto_ptr<_Yp>&& __r) | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:374:9: 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:91:85: note:  โ€˜std::shared_ptr >, std::allocator > >โ€™ is not derived from โ€˜std::auto_ptr<_Up>โ€™ 91 | er = this->create_publisher("g29_feedback", 10); | ^ In file included from /usr/include/c++/11/memory:77, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:153, 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: /usr/include/c++/11/bits/shared_ptr.h:391:9: note: candidate: โ€˜template std::shared_ptr<_Tp>::_Assignable > std::shared_ptr<_Tp>::operator=(std::shared_ptr<_Yp>&&) [with _Yp = _Yp; _Tp = rclcpp::Publisher > >]โ€™ 391 | operator=(shared_ptr<_Yp>&& __r) noexcept | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:391:9: note:  template argument deduction/substitution failed: /usr/include/c++/11/bits/shared_ptr.h: In substitution of โ€˜template template using _Assignable = typename std::enable_if&, _Arg>::value, std::shared_ptr<_Tp>&>::type [with _Arg = std::shared_ptr >, std::allocator > >; _Tp = rclcpp::Publisher > >]โ€™: /usr/include/c++/11/bits/shared_ptr.h:391:2: required by substitution of โ€˜template std::shared_ptr > > >::_Assignable > std::shared_ptr > > >::operator=<_Yp>(std::shared_ptr<_Tp>&&) [with _Yp = rclcpp::Publisher >, std::allocator >]โ€™ /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:91:85: required from here /usr/include/c++/11/bits/shared_ptr.h:130:15: error: no type named โ€˜typeโ€™ in โ€˜struct std::enable_if > > >&>โ€™ 130 | using _Assignable = typename enable_if< | ^~~~~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:399:9: note: candidate: โ€˜template std::shared_ptr<_Tp>::_Assignable > std::shared_ptr<_Tp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Yp = _Yp; _Del = _Del; _Tp = rclcpp::Publisher > >]โ€™ 399 | operator=(unique_ptr<_Yp, _Del>&& __r) | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:399:9: 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:91:85: note:  โ€˜std::shared_ptr >, std::allocator > >โ€™ is not derived from โ€˜std::unique_ptr<_Tp, _Dp>โ€™ 91 | er = this->create_publisher("g29_feedback", 10); | ^ In file included from /usr/include/c++/11/memory:77, from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:153, 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: /usr/include/c++/11/bits/shared_ptr.h:359:19: note: candidate: โ€˜std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(const std::shared_ptr<_Tp>&) [with _Tp = rclcpp::Publisher > >]โ€™ 359 | shared_ptr& operator=(const shared_ptr&) noexcept = default; | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:359:29: note:  no known conversion for argument 1 from โ€˜std::shared_ptr >, std::allocator > >โ€™ to โ€˜const std::shared_ptr > > >&โ€™ 359 | shared_ptr& operator=(const shared_ptr&) noexcept = default; | ^~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:383:7: note: candidate: โ€˜std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(std::shared_ptr<_Tp>&&) [with _Tp = rclcpp::Publisher > >]โ€™ 383 | operator=(shared_ptr&& __r) noexcept | ^~~~~~~~ /usr/include/c++/11/bits/shared_ptr.h:383:30: note:  no known conversion for argument 1 from โ€˜std::shared_ptr >, std::allocator > >โ€™ to โ€˜std::shared_ptr > > >&&โ€™ 383 | operator=(shared_ptr&& __r) noexcept | ~~~~~~~~~~~~~^~~ /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: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 | ublish(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