当前位置:网站首页>rviz打开后如何显示实时2D地图
rviz打开后如何显示实时2D地图
2022-07-01 22:16:00 【贾亚超】
1、背景
launch 了一个建图程序,并打开了 rviz,rviz 中也 add 了 map,但是 rviz 中并未出现期望的2D地图,让人很是手足无措。
2、问题解决
百度了才发现自己使用的建图方式为gmapping,它是对著名的开源OpenSLAM包在ROS框架下的一个实现。这个包提供了对激光设备的SLAM支持,根据激光设备的输入和姿态数据建立一个基于网格的2D地图。它需要从ROS系统监听许多Topic,并输出一个Topic : /map ,(话题数据类型为nav_msgs/OccupancyGrid),这也是 rviz 的输入Topic。
- 启动RViz,点击 add 按钮(左下方) ,在弹出的列表中选择 map,点击OK,这时rviz中间的显示区域仍然是空的

- 最关键的一步,要告诉 rviz 生成 map 信息的 topic 是什么。我们前面讲到过,gmapping输出的topic是 /map。如下图配置,填充map的topic,立即就可以看到地图的动态建立了

边栏推荐
- Deep learning -- data operation
- Explain the use of locksupport in detail
- MySQL -- index of MyISAM storage engine
- Use three JS realize the 'ice cream' earth, and let the earth cool for a summer
- 思科--WAN 的概念考试外部工具
- Appium automated testing foundation - Supplement: introduction to desired capabilities parameters
- 常见的二十种软件测试方法详解(史上最全)
- Turn -- use setjmp and longjmp in C language to realize exception capture and collaboration
- The median salary of TSMC's global employees is about 460000, and the CEO is about 8.99 million; Apple raised the price of iPhone in Japan; VIM 9.0 release | geek headlines
- Contents of other parts of the map
猜你喜欢

Selection of all-optical technology in the park - Part 2

El input text field word limit, beyond which the display turns red and input is prohibited

Multi picture alert ~ comparison of Huawei ECs and Alibaba cloud ECS

map容器

rxjs Observable of 操作符的单步调试分析
![[JUC learning road day 9] barrier derivatives](/img/7d/25a49afa470cfef5b7b383918d6a7d.png)
[JUC learning road day 9] barrier derivatives

Cisco -- an external tool for WAN's concept examination

internal field separator

Cisco test -- the concept and configuration test of routing

Sogou wechat app reverse (II) so layer
随机推荐
轉載csdn文章操作
Metauniverse may become a new direction of Internet development
Cut noodles C language
Pytorch's code for visualizing feature maps after training its own network
rxjs Observable of 操作符的单步调试分析
Demo program implementation of QT version Huarui camera
【嵌入式系统课设】单个按键控制LED灯
Kubernetes create service access pod
Fiori applications are shared through the enhancement of adaptation project
internal field separator
SAP GUI 里的收藏夹事务码管理工具
Congratulations on the release of friends' new book (send welfare)
Pytorch nn.functional.unfold()的简单理解与用法
Multiple smart pointers
Sogou wechat app reverse (II) so layer
[target tracking] | single target tracking indicator
Pytorch nn. functional. Simple understanding and usage of unfold()
Single step debugging analysis of rxjs observable of operator
Cutefishos system~
Understanding of indexes in MySQL