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:159:38: error: โ€˜joyโ€™ is not a member of โ€˜sensor_msgs::msgโ€™; did you mean โ€˜Joyโ€™? 159 | auto message = sensor_msgs::msg::joy(); | ^~~ | Joy 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