当前位置:网站首页>ROS knowledge points - build an ROS development environment using vscode
ROS knowledge points - build an ROS development environment using vscode
2022-06-28 15:11:00 【Jerry_ Sea】
Reference resources :https://blog.csdn.net/qq_42688495/article/details/107750466
bug1: To configure c_cpp_properties.json
{
"configurations": [
{
"browse": {
"databaseFilename": "${workspaceFolder}/.vscode/browse.vc.db",
"limitSymbolsToIncludedHeaders": false
},
"includePath": [
"/opt/ros/melodic/include/**",
// "/home/wuhd/catkin_ws/src/dcl_driver/include/**",
// "/home/wuhd/ws/src/learning/include/**",
// "/home/wuhd/catkin_ws/src/multi_lidar_calibration/include/**",
"/usr/include/**"
],
"name": "ROS",
"intelliSenseMode": "gcc-x64",
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu11",
"cppStandard": "c++14"
}
],
"version": 4
}
bug2: Can't find ros/ros.h and std_msgs/String.h
When I configure , Not in the build Generate under folder compile_commands.json file , Because you can find ros/ros.h and std_msgs/String.h
bug3: Hold down Fn+F5 Start debugging , Will generate launch.json
If... Cannot be generated , Manually create... Under the project directory .vscode Folder , as well as .vscode/launch.json file
{
// Use IntelliSense Learn about properties .
// Hover to see the description of an existing property .
// For more information , Please visit : https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/devel/lib/cal/cal",// Indicates the path where the executable program is located , among ,${workspaceRoot} Express VScode The root directory of the loaded folder
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "catkin_make"
}
]
}
bug4: Hold down Fn+F1 establish tasks.json file
Choose any one , And then modify tasks.json The contents of the document ;
If... Cannot be generated , Manually create
{
"version": "2.0.0",
"tasks": [
{
"label": "catkin_make", // Descriptive information representing the prompt
"type": "shell", // You can choose shell perhaps process, If it is shell The code is in shell Run a command inside , If it is process Represents running as a process
"command": "catkin_make",// This is the command we need to run
"args": ["-DCMAKE_EXPORT_COMPILE_COMMANDS=1"],// If you need to add some suffixes after the command , It can be written here , such as -DCATKIN_WHITELIST_PACKAGES=“pac1;pac2”
"group": {"kind":"build","isDefault":true},
"presentation": {
"reveal": "always"// Optional always perhaps silence, Represents whether to output information
},
"problemMatcher": "$msCompile"
},
]
}
bug5: Results the test times are wrong
[ERROR] [1656318039.735840529]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying…
Open a terminal to run , function roscore that will do .
bug6: Self generated projects
route : https://download.csdn.net/download/qq_46515446/85801311
边栏推荐
- [C language] how to generate normal or Gaussian random numbers
- How can I get the stock account opening discount link? Is it safe to open a mobile account?
- 云杉网络DeepFlow帮助5G核心网和电信云构建可观测性
- The best time to buy and sell stocks
- R language ggplot2 visualization: use the patchwork package (directly use the plus sign +) to horizontally combine a ggplot2 visualization result and a piece of text content to form a final result gra
- Softing epgate Pb series Gateway - integrates the Profibus bus into the ethernet/ip network
- [C language] implementation of binary tree and three Traversals
- 币圈大地震:去年赚100万,今年亏500万
- 不要使用短路逻辑编写 stl sorter 多条件比较
- 浪擎与浪潮,一个从OEM到价值共生的生态样板
猜你喜欢

抽奖动画 - 鲤鱼跳龙门

猫狗图像数据集上的深度学习模型性能对比

GBASE南大通用亮相第六届世界智能大会

第四大运营商,难成「鲶鱼」

Power battery is divided up like this

New offline retail stores take off against the trend, and consumption enthusiasm under the dark cloud of inflation

SAP MTS/ATO/MTO/ETO专题之九:M+M模式前后台操作,策略用50,提前准备原材料和半成品

QQ被盗号后群发黄图,大批用户“社死”
![[spatial & single cellomics] phase 1: Study on PDAC tumor microenvironment by single cell binding spatial transcriptome](/img/c4/c053ec830a05f22cab7f7381f9f2b3.png)
[spatial & single cellomics] phase 1: Study on PDAC tumor microenvironment by single cell binding spatial transcriptome
![Experiment 6 8255 parallel interface experiment [microcomputer principle] [experiment]](/img/70/394ccf6e08a0774acade1eb1b8bf00.png)
Experiment 6 8255 parallel interface experiment [microcomputer principle] [experiment]
随机推荐
Leetcode 705. Design hash collection
SAP mts/ato/mto/eto topic 9: front and back desk operation in m+m mode, strategy 50, preparation of raw materials and semi-finished products in advance
WPF 视频硬解码渲染播放(无空域)(支持4K、8K、高帧率视频)
halcon 基础总结(一)裁切图片并旋转图像
张同学还没学会当主播
SAP MTS/ATO/MTO/ETO专题之九:M+M模式前后台操作,策略用50,提前准备原材料和半成品
Vector explanation + topic
QQ被盗号后群发黄图,大批用户“社死”
web Worker 轮询请求
验证回文串
R language ggplot2 visualization: use the patchwork package (directly use the plus sign +) to horizontally combine a ggplot2 visualization result and a piece of text content to form a final result gra
实验6 8255并行接口实验【微机原理】【实验】
Spacetutorial (continuous updating...)
化学制品制造业智慧供应商管理系统深度挖掘供应商管理领域,提升供应链协同
spacy教程(持续更新ing...)
当下不做元宇宙,就像20年前没买房!
Li Kou today's question -522 Longest special sequence
R language ggplot2 visualization: the patchwork package horizontally combines a ggplot2 visualization result and a plot function visualization result to form a final result graph, aligns the two visua
R语言使用nnet包的multinom函数构建无序多分类logistic回归模型、使用回归系数及其标准误计算每个系数对应的Z统计量的值
Not being a meta universe now is like not buying a house 20 years ago!