Files
VSAG_SENTRY_SIM_27RMUL/.vscode/settings.json
T

41 lines
1.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"cmake.sourceDirectory": "/home/mzxiang/Gazebo_projects/sentry_nav_dev/src/sentry_sim",
// ---- C++ 智能感知 ----
// 用 clangd 当唯一引擎:它直接读工作区根的 compile_commands.json,
// include 路径/宏定义全部来自真实编译命令,不会再漏 ROS 头文件或本工程的头文件。
//
// ⚠️ 改了 CMakeLists(新增 .cpp / 改 include 目录 / 加新包)之后,
// 必须重新生成编译数据库,否则 clangd 还在用旧路径,
// 表现就是 "xxx.hpp file not found" + "Too many errors emitted":
//
// cd ~/Gazebo_projects/sentry_nav_dev
// tools/gen_compdb.sh
//
// 然后在 VS Code 里 Ctrl+Shift+P → "clangd: Restart language server"。
"C_Cpp.intelliSenseEngine": "disabled",
// 不丢 --clang-tidy,避免 ROS 头文件里一堆代码风格告警糊满屏幕。
"clangd.arguments": [
"--background-index",
"--completion-style=detailed",
"--header-insertion=never"
],
// 单独打开头文件、又不在编译数据库里时的兜底参数。
// 标准跟着工程走(C++23),并加上本工程的纯算法库头文件目录。
"clangd.fallbackFlags": [
"-std=c++23",
"-I/opt/ros/lyrical/include",
"-I${workspaceFolder}/src/sentry_nav_core/include",
"-I${workspaceFolder}/src/sentry_nav/include"
],
"files.associations": {
"*.xacro": "xml",
"*.urdf": "xml",
"*.sdf": "xml"
},
// 编辑 SDF 时别被 XML 校验器报错(Gazebo 的 SDF 有自己的 schema,VS Code 不认识)
"xml.validation.enabled": false
}