cartographer代码解读1_概述

1 算法框架

在这里插入图片描述

在这里插入图片描述

2 建立debug工程

cartographer 版本是在1.0以后,本人fork的是2021.0.25的版本,commit id:0d2bc2ca5b834ddd03504454d0a43b9f67c20455.

https://github.com/BurryChen/cartographer_ros.git
https://github.com/BurryChen/cartographer.git

VScode 搭建ROS开发环境并调试

命令行编译方式

catkin_make_isolated --install --use-ninja -DCMAKE_BUILD_TYPE=Debug -DFORCE_DEBUG_BUILD=True

VS code配置tasks.json

{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "catkin_make_isolated",
			"args": [
				"--install",
				"--use-ninja",
				"-DCMAKE_BUILD_TYPE=Debug",
				"-DFORCE_DEBUG_BUILD=True",
				"--directory",
				"/home/chenshoubin/cartographer_ws"
			],
			"problemMatcher": [
				"$catkin-gcc"
			],
			
			"group": "build",
			"label": "catkin_make_isolated: build"
		}
	]
}

VS code配置tasks.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "ROS: Launch",
            "type": "ros",
            "request": "launch",
            "target": "/home/chenshoubin/cartographer_ws/src/cartographer_ros/cartographer_ros/launch/demo_turtlebot3_lds_2d_gazebo.launch"
        }

    ]
}
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值