vscode安装完成后,需要安装c++,python,cmake tools,ros这些插件。
配置编译:
按Ctr+Shift+B出现编译方法点cmake:build后面的齿轮图标进行配置:
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"command":"catkin_make",
"args": [],
"problemMatcher": "$msCompile",
"group": {"kind":"build","isDefault": true},
"label": "catkin_make: debug",
"presentation": {
"reveal": "always"
}
}
]
}
配置ros开发中的代码提示:
在工作空间下的.vscode文件夹下打开c_cpp_properties.json文件按下面配置
{
"configurations": [
{
"browse": {
"databaseFilename": "",
"limitSymbolsToIncludedHeaders": true
},
"includePath": [
"/opt/ros/noetic/include/**",
"/usr/include/**",
"/opt/ros/noetic/include"
],
"name": "ROS",
"intelliSenseMode": "gcc-x64",
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu17",
"cppStandard": "c++17"
}
],
"version": 4
}
« ros开发的常用命令
|
ubuntu arduino上传失败解决方法»
|