vscode ros 配置(找不到ros.h)
cpp配置
{
"configurations": [
{
"browse": {
"databaseFilename": "",
"limitSymbolsToIncludedHeaders": true
},
"includePath": [
"/home/peach/catkin_ws/devel/include/",
"/opt/ros/kinetic/include/",
"/usr/include/**"
],
"name": "ROS"
}
],
"version": 4
}
launch配置
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++ - 生成和调试活动文件",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++ 生成活动文件",
"miDebuggerPath": "/usr/bin/gdb"
}
]
}
task配置
{
"version": "0.1.0",
"command": "bash",
"args": [
"-c"
],
"isShellCommand": true,
"showOutput": "always",
"suppressTaskName": true,
"tasks": [
{
"taskName": "Debug",
"args": [
"catkin_make -C ${workspaceRoot} -DCMAKE_BUILD_TYPE=Debug"
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Release",
"args": [
"catkin_make -C ${workspaceRoot}"
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Debug (isolated)",
"args": [
"catkin_make_isolated -C ${workspaceRoot} -DCMAKE_BUILD_TYPE=Debug"
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Release (isolated)",
"args": [
"catkin_make_isolated -C ${workspaceRoot}"
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Debug (remote)",
"args": [
"echo "Remote Arguments not configured!""
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Release (remote)",
"args": [
"echo "Remote Arguments not configured!""
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Debug (remote isolated)",
"args": [
"echo "Remote Arguments not configured!""
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Release (remote isolated)",
"args": [
"echo "Remote Arguments not configured!""
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Debug (catkin)",
"args": [
"catkin build -w ${workspaceRoot} -DCMAKE_BUILD_TYPE=Debug"
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Release (catkin)",
"args": [
"catkin build -w ${workspaceRoot}"
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Debug (remote catkin)",
"args": [
"echo "Remote Arguments not configured!""
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Release (remote catkin)",
"args": [
"echo "Remote Arguments not configured!""
],
"problemMatcher": [
{
"owner": "cpp",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "^(.)😦\d+)😦\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\w.)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+).at\s+(\/.+)😦\d+)",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^CMake\s+(\w+)",
"severity": 1
},
{
"regexp": "^(\/.+)😦\d+)",
"file": 1,
"line": 2
},
{
"regexp": "^(.+)$",
"message": 1
}
]
},
{
"owner": "cmake",
"fileLocation": [
"relative",
"${workspaceRoot}/src"
],
"pattern": [
{
"regexp": "^\s+(\w.)😦\d+)\s+(.+)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
},
{
"taskName": "Remote Deploy",
"args": [
"echo "Remote Arguments not configured!""
],
"isBuildCommand": true
}
]
}