紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
9.5.4重新colcon build错误
-
错误日志:
tingbo@tingbo-i7:~/chapt9/fishbot_ws$ colcon build Starting >>> micro_ros_msgs Starting >>> fishbot_bringup Starting >>> fishbot_description Starting >>> ros_serail2wifi Finished <<< fishbot_description [1.89s] Starting >>> ydlidar Finished <<< fishbot_bringup [2.26s] Finished <<< micro_ros_msgs [4.25s] Starting >>> micro_ros_agent Finished <<< ros_serail2wifi [4.97s] Finished <<< micro_ros_agent [1.27s] --- stderr: ydlidar In file included from /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/serial.h:9, from /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/ydlidar_driver.h:54, from /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/CYdLidar.h:36, from /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/src/ydlidar_node.cpp:26: /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h: In function ‘bool ydlidar::fileExists(std::string)’: /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_ino’ [-Wmissing-field-initializers] 240 | struct stat info = {0}; | ^ /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_nlink’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_mode’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_uid’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_gid’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::__pad0’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_rdev’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_size’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_blksize’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_blocks’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_atim’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_mtim’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::st_ctim’ [-Wmissing-field-initializers] /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/v8stdint.h:240:24: warning: missing initializer for member ‘stat::__glibc_reserved’ [-Wmissing-field-initializers] In file included from /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/ydlidar_driver.h:56, from /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/CYdLidar.h:36, from /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/src/ydlidar_node.cpp:26: /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/thread.h: In static member function ‘static Thread Thread::createThread(thread_proc_t, void*)’: /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/thread.h:43:57: warning: cast between incompatible function types from ‘thread_proc_t’ {aka ‘long unsigned int (*)(void*)’} to ‘void* (*)(void*)’ [-Wcast-function-type] 43 | pthread_create((pthread_t *)&thread_._handle, NULL, (void *(*)(void *))proc, | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/ydlidar_driver.h:58, from /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/CYdLidar.h:36, from /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/src/ydlidar_node.cpp:26: /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/help_info.h: In function ‘bool ydlidar::isSupportMotorCtrl(int)’: /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/sdk/include/help_info.h:414:8: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 414 | bool ret = false; | ^~~ /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/src/ydlidar_node.cpp: In function ‘int main(int, char**)’: /home/tingbo/chapt9/fishbot_ws/src/ydlidar_ros2/src/ydlidar_node.cpp:222:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<LaserPoint>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 222 | for (int i = 0; i < scan.points.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~ --- Finished <<< ydlidar [15.3s] Summary: 6 packages finished [17.8s] 1 package had stderr output: ydlidar