rs-lidar-16运行cartographer_ros2d建图

本文介绍了如何利用cartographer_ros2d结合rslidar-16进行建图。首先确保安装了rslidar驱动和point_to_laserscan工具。接着,详细说明了需修改cartographer_ros下的configuration_files/revo_lds.lua文件,将'horizontal_laser_link'更改为激光雷达的实际frame_id,如'rslidar',并检查tf_tree正确性。此外,还需修改demo_revo_lds.launch文件,确保scan节点映射正确。完成修改后,在catkin_w目录下编译,然后分别运行相关程序,最终在rviz中可看到建图结果。
摘要由CSDN通过智能技术生成

1.前提:安装好rslidar相关驱动,安装好point_to_laseerscan将点云数据转换成单线激光。

2.修改cartographer下的文件,
2.1 修改catkin_w/src/cartographer_ros/cartographer_ros/configuration_files/revo_lds.lua,

-- Copyright 2016 The Cartographer Authors -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. 
include "map_builder.lua" 
include "trajectory_builder.lua" 
options = {
 map_builder = MAP_BUILDER,
 trajectory_builder = TRAJECTORY_BUILDER,
 map_frame = "map",
 tracking_frame = "horizontal_laser_link",
 published_frame = "horizontal_laser_link", 
odom_frame = "odom",
 provide_odom_frame = true,
 publish_frame_projected_to_2d = false, 
use_pose_extrapolator = true, use_odometry = false, use_nav_sat =
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值