当前位置:网站首页>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
边栏推荐
- Q-tester 3.2: applicable to development, production and after-sales diagnostic test software
- DBMS in Oracle_ output. put_ Line output problem solving process
- R language ggplot2 visualization: use the patchwork package (directly use the plus sign +) to horizontally combine the two ggplot2 visualization results to form a single visualization result graph
- 华为能成“口红一哥”,或者“带货女王”吗?
- Le patron a donné trois ordres: discret, discret, discret
- How to build a 100000 level QPS large flow and high concurrency coupon system from zero
- ROS知识点——使用VScode搭建ROS开发环境
- [collection of excellent articles on Digital IC] nearly 500 articles | learning route | basic knowledge | interface | bus | scripting language | chip job search | security | EDA | tools | low power de
- Leike defense: 4D millimeter wave radar products are expected to be mass produced and supplied by the end of the year
- ROS21讲
猜你喜欢
Not being a meta universe now is like not buying a house 20 years ago!
抽奖动画 - 鲤鱼跳龙门
Jackie Chan and fast brand, who is the Savior of Kwai?
MIPS汇编语言学习-02-逻辑判断-前台输入
MIPS汇编语言学习-01-两数求和以及环境配置、如何运行
新零售线下店逆势起飞,通膨乌云下的消费热情
C语言学习-20-归并排序
Facebook出手!自适应梯度打败人工调参
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
C语言学习-19-全排列
随机推荐
Could you tell me whether the batch addition of Oracle such as insert all was not blocked?
Gbase Nantah General Motors appears at the 6th World Intelligence Conference
Express template engine
R language ggplot2 visualization: use the patchwork package (directly use the plus sign +) to horizontally combine the two ggplot2 visualization results to form a single visualization result graph
[C language] nextday problem
Steve Jobs of the United States, died; China jobs, sold
智慧园区数智化供应链管理平台如何优化流程管理,驱动园区发展提速增质?
web Worker 轮询请求
第四大运营商,难成「鲶鱼」
法兰克福地区目前支持sql了吗?
化学制品制造业智慧供应商管理系统深度挖掘供应商管理领域,提升供应链协同
成龙和快品牌,谁才是快手的救星?
使用Karmada实现Helm应用的跨集群部署
[MySQL learning notes 23] index optimization
functools:对callable对象的高位函数和操作(持续更新ing...)
SAP MTS/ATO/MTO/ETO专题之九:M+M模式前后台操作,策略用50,提前准备原材料和半成品
智能化转型被加速,企业需要新的工具箱
最长连续序列
猫狗图像数据集上的深度学习模型性能对比
324. swinging sort II: not a simple construction problem