12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- -- 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 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: $<BUILD_INTERFACE:/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/include>
- -- 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
- [35m[1mConsolidate compiler generated dependencies of target g29_ros2_feedback_node[0m
- [ 25%] [32mBuilding CXX object CMakeFiles/g29_ros2_feedback_node.dir/src/joystick.cpp.o[0m
- In file included from [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:34[m[K:
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:[m[K In constructor ‘[01m[KJoystick_pub::Joystick_pub(const string&, const string&)[m[K’:
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.h:56:17:[m[K [01;35m[Kwarning: [m[K‘[01m[KJoystick_pub::filename[m[K’ will be initialized after [[01;35m[K]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;[m[K]
- 56 | std::string [01;35m[Kfilename[m[K; // 设备文件名
- | [01;35m[K^~~~~~~~[m[K
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:39:41:[m[K [01;35m[Kwarning: [m[K base ‘[01m[Krclcpp::Node[m[K’ [[01;35m[K]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;[m[K]
- 39 | : filename(filename), Node(node_name[01;35m[K)[m[K // 初始化成员变量 filename
- | [01;35m[K^[m[K
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:38:1:[m[K [01;35m[Kwarning: [m[K when initialized here [[01;35m[K]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wreorder-Wreorder]8;;[m[K]
- 38 | [01;35m[KJoystick_pub[m[K::Joystick_pub(const std::string &filename, const std::string &node_name)
- | [01;35m[K^~~~~~~~~~~~[m[K
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:[m[K In member function ‘[01m[Kvoid Joystick_pub::publish()[m[K’:
- [01m[K/home/wub/work/1_nzzn/2_code/13_LG/src/Drive/g29_ros2_feedback_drive/src/g29_ros2_feedback/src/joystick.cpp:158:20:[m[K [01;31m[Kerror: [m[K‘[01m[Ksensor_msgs[m[K’ has not been declared
- 158 | auto message = [01;31m[Ksensor_msgs[m[K::msg::Joy();
- | [01;31m[K^~~~~~~~~~~[m[K
- 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
|