{ "version": 4, "configurations": [ { "name": "ROS 2 Lyrical", "compileCommands": "${workspaceFolder}/compile_commands.json", // 首选 compileCommands(真实编译命令),下面 includePath 是它缺失时的兜底。 "includePath": [ // 本工程的纯算法库头文件(sentry_nav_core/xxx.hpp) "${workspaceFolder}/src/sentry_nav_core/include", // 本 ROS 包自己的头文件(sentry_nav/xxx.hpp) "${workspaceFolder}/src/sentry_nav/include", "${workspaceFolder}/src/**", "/opt/ros/lyrical/include/**", "/usr/include/pcl-1.15/**", "/usr/include/eigen3/**", "/usr/include/**" ], "cStandard": "c17", "cppStandard": "c++23", "intelliSenseMode": "linux-gcc-x64" } ] }