stdout_stderr.log 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Consolidate compiler generated dependencies of target g29_ros2_feedback_node
  2. [ 50%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o
  3. [ 50%] Building CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/main.cpp.o
  4. In file included from /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/main.cpp:10:
  5. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:23: error: ‘sensor_msgs’ was not declared in this scope
  6. 66 | rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtr g29_publisher;
  7. | ^~~~~~~~~~~
  8. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:44: error: template argument 1 is invalid
  9. 66 | rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtr g29_publisher;
  10. | ^
  11. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:47: error: expected ‘;’ at end of member declaration
  12. 66 | rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtr g29_publisher;
  13. | ^~~~~~~~~
  14. | ;
  15. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:57: error: ‘g29_publisher’ does not name a type; did you mean ‘rmw_publisher_t’?
  16. 66 | rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtr g29_publisher;
  17. | ^~~~~~~~~~~~~
  18. | rmw_publisher_t
  19. 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:
  20. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:23: error: ‘sensor_msgs’ was not declared in this scope
  21. 66 | rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtr g29_publisher;
  22. | ^~~~~~~~~~~
  23. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:44: error: template argument 1 is invalid
  24. 66 | rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtr g29_publisher;
  25. | ^
  26. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:47: error: expected ‘;’ at end of member declaration
  27. 66 | rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtr g29_publisher;
  28. | ^~~~~~~~~
  29. | ;
  30. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:66:57: error: ‘g29_publisher’ does not name a type; did you mean ‘rmw_publisher_t’?
  31. 66 | rclcpp::Publisher<sensor_msgs::msg::Joy>::SharedPtr g29_publisher;
  32. | ^~~~~~~~~~~~~
  33. | rmw_publisher_t
  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&)’:
  35. /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;;]
  36. 56 | std::string filename; // 设备文件名
  37. | ^~~~~~~~
  38. /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;;]
  39. 40 | : filename(filename), Node(node_name) // 初始化成员变量 filename
  40. | ^
  41. /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;;]
  42. 39 | Joystick_pub::Joystick_pub(const std::string &filename, const std::string &node_name)
  43. | ^~~~~~~~~~~~
  44. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:91:5: error: ‘g29_publisher’ was not declared in this scope; did you mean ‘g29_pub_timer’?
  45. 91 | g29_publisher = this->create_publisher<sensor_msgs::msg::Joy>("g29_feedback", 10);
  46. | ^~~~~~~~~~~~~
  47. | g29_pub_timer
  48. /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()’:
  49. /home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:196:5: error: ‘g29_publisher’ was not declared in this scope; did you mean ‘g29_pub_timer’?
  50. 196 | g29_publisher->publish(message);
  51. | ^~~~~~~~~~~~~
  52. | g29_pub_timer
  53. gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:104:CMakeFiles/g29_ros2_feedback_node.dir/src/main.cpp.o] 错误 1
  54. gmake[2]: *** 正在等待未完成的任务....
  55. gmake[2]: *** [CMakeFiles/g29_ros2_feedback_node.dir/build.make:90:CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o] 错误 1
  56. gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/g29_ros2_feedback_node.dir/all] 错误 2
  57. gmake: *** [Makefile:146:all] 错误 2