机器人学习--Turtelbot3学习--如何使用cartographer建图

问题描述:

按照创客智造官网的教程:https://www.ncnynl.com/category/turtlebot3-tutorial/

安装好turtlebot3的配套软件后,默认是使用 gmapping建图的。 测试了一下 hector 也可以。

但是在使用命令 : 

roslaunch turtlebot3_slam turtlebot3_slam.launch slam_methods:=cartographer

建图时,发现报错。迟迟不见建图的界面。

解决方案: 

在自己系统中安装turtlebot3的目录中找到 turtlebot3_cartographer.launch 文件。

/catkin_ws/src/turtlebot3/turtlebot3_slam/launch/turtlebot3_cartographer.launch文件,

如下图,$(arg configuration_basename)更改为turtlebot3_lds_2d_gazebo.lua


在这里插入图片描述

 

改完后,在终端中重新执行命令,即可以看到建图效果。亲测可用。

 

参考:

https://blog.csdn.net/LQ_5407/article/details/102719114

https://blog.csdn.net/c614507137/article/details/106874738/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值