当前位置:网站首页>realsense d455 semantic_slam实现语义八叉树建图
realsense d455 semantic_slam实现语义八叉树建图
2022-06-25 06:39:00 【蓝羽飞鸟】
orb_slam2 + 语义分割 + 八叉树地图,
github地址:https://github.com/floatlazer/semantic_slam
环境配置参考链接
现在说说要用d455来实现实时建图,需要修改哪些地方。
首先要安装intel realsense的sdk,
到realsense-viewer可成功显示界面即成功
然后安装realsense的ros wrapper, 让d455可通过ros发送topic
安装方法
这一步需要同时安装ddynamic_reconfigure包,从github上下载下来,
和realsen_ros同放在catkin_ws/src下make即可
直到roslaunch realsense_camera rs_rgbd.launch能启动
关于深度图用哪个topic的问题:
深度图有的地方说要用/camera/depth/image_rect_raw
也有的说用/camera/aligned_depth_to_color/image_raw
(具体相机发布了哪些topic可以用rostopic list命令确认)
注意用roslaunch realsense_camera rs_camera.launch启动相机是没有/camera/aligned_depth_to_color/image_raw的
在rviz里观察了一下/camera/depth/image_rect_raw 和 /camera/aligned_depth_to_color/image_raw两个图片,
发现/camera/aligned_depth_to_color/image_raw的深度图是和rgb图像对齐的,
也就是说/camera/depth/image_rect_raw 这个深度图照的范围可能会比rgb图像更广,叠在一起的话可能都不会重叠。
所以我选了/camera/aligned_depth_to_color/image_raw,
当然不同的相机可能会不一样。
确定了rgb图像/camera/color/image_raw和深度图/camera/aligned_depth_to_color/image_raw之后,
要修改orb_slam2下的ros_rgbd.cc, 修改topic名称。
然后要修改semantic_slam/semantic_slam/params下的semantic_cloud.yaml,修改topic
同时需要修改语义网络的path,即model_path,到pth文件的地方
修改相机内参:
相机标定有几种方法,可以用ros包,realsense自带的命令,也可以拍几张图片用matlab标定,
标定好之后,修改semantic_slam/semantic_slam/params下的semantic_cloud.yaml和xtion.yaml,
xtion.yaml文件是启动orb_slam2的配置文件。
这个时候语义分割图片已经能显示出来了,但是显示不了八叉图地图!
问题出在哪呢,
可以看到问题出在semantic_cloud.py,里面直接用了深度图,而没有用DepthMapFactor进行scale,
而我们可以看到在orb_slam2中深度图是经过了scale的
imDepth.convertTo(imDepth,CV_32F,mDepthMapFactor);
我们需要做同样的事情,在semantic_cloud.yaml中定义DepthMapFactor,然后把semantic_cloud.py中的深度图进行scale。
然后就能建图啦:
边栏推荐
- 【批处理DOS-CMD命令-汇总和小结】-cmd扩展命令、扩展功能(cmd /e:on、cmd /e:off)
- Rotation vector (rotation matrix) and Euler angle
- TEMPEST HDMI泄漏接收 1
- Introduction to Sichuan Tuwei ca-is3082w isolated rs-485/rs-422 transceiver
- [batch dos-cmd command - summary and summary] - CMD window setting and operation commands (CD, title, mode, color, pause, CHCP, exit)
- Alphassl wildcard certificate for one month
- 用动图讲解分布式 Raft
- The principle of Zener diode, what is its function?
- IAR compiler flashback
- VectorDraw Web Library 10.10
猜你喜欢
![Analysis on the trend of the number of national cinemas, film viewers and average ticket prices in 2021 [figure]](/img/01/594990789cbc1817dbbf61b7dd0c4c.jpg)
Analysis on the trend of the number of national cinemas, film viewers and average ticket prices in 2021 [figure]

诸葛亮 VS 庞统,拿下分布式 Paxos

Chuantu microelectronics breaks through the high-end isolator analog chip market with ca-is3062w
![[Batch dos - cmd Command - Summary and Summary] - cmd extension Command, extension Function (CMD / E: on, CMD / E: off)](/img/2b/4495a6cd41a2dd4e7a20ee60b398c9.png)
[Batch dos - cmd Command - Summary and Summary] - cmd extension Command, extension Function (CMD / E: on, CMD / E: off)

【UVM入門 ===> Episode_9 】~ 寄存器模型、寄存器模型的集成、寄存器模型的常規方法、寄存器模型的應用場景

Sichuan earth microelectronics high performance, high integration and low cost isolated 485 transceiver
![[pytest] modify the logo and parameterization in the allure Report](/img/c0/93519da008ec137c447bb11aa7b73e.png)
[pytest] modify the logo and parameterization in the allure Report

Sichuan earth microelectronics 8-channel isolated digital input receiver

用太极拳讲分布式理论,真舒服!

MCU IO explanation (pull-up pull-down quasi bidirectional input / output push-pull open drain)
随机推荐
栅格地图(occupancy grid map)构建
[leetcode] two num · sum of two numbers
Chuantuwei ca-is3720lw alternative material No. iso7820fdw
用太极拳讲分布式理论,真舒服!
Ppt template of small fresh open class education courseware
Cocos learning diary 3 - API acquisition nodes and components
5g private network market is in full swing, and it is crucial to solve deployment difficulties in 2022
高考志愿填报,为啥专业最后考虑?
PI Ziheng embedded: This paper introduces the multi-channel link mode of i.mxrt timer pit and its application in coremark Test Engineering
Operate cnblogs metaweblog API
【批处理DOS-CMD命令-汇总和小结】-应用程序启动和调用、服务和进程操作命令(start、call、)
13 `bs_ duixiang. Tag tag ` get a tag object
图扑软件数字孪生 3D 风电场,智慧风电之海上风电
How to recover redis data from snapshot(rdb file) copied from another machine?
Sichuan earth microelectronics ca-is1200 isolated operational amplifier for current detection
[batch dos-cmd command - summary and summary] - application startup and call, service and process operation commands (start, call, and)
Mysql database import SQL file display garbled code
Conditional grouping with $exists inside $cond
Editing the date formatting of x-axis tick labels in Matplotlib - editing the date formatting of x-axis tick labels in Matplotlib
高数基础_函数的奇偶性