当前位置:网站首页>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。
然后就能建图啦:
边栏推荐
- How to store the directory / hierarchy / tree structure in the database- How to store directory / hierarchy / tree structure in the database?
- CPDA | how to start the growth path of data analysts?
- Research on 3D model retrieval method based on two channel attention residual network - Zhou Jie - paper notes
- MySQL face Scripture eight part essay
- Keepalived monitors the process and automatically restarts the service process
- VectorDraw Web Library 10.10
- 指南针可以开股票账户吗?安全吗?
- Tuwei Digital Isolator and interface chip can perfectly replace imported brands Ti and ADI
- One year's time and University experience sharing with CSDN
- 【批处理DOS-CMD命令-汇总和小结】-上网和网络通信相关命令(ping、telnet、nslookup、arp、tracert、ipconfig)
猜你喜欢

【批处理DOS-CMD命令-汇总和小结】-应用程序启动和调用、服务和进程操作命令(start、call、)

Loopholes in the missed scanning system of Lvmeng and its repair scheme

鸿蒙页面菜单的选择

This year, I graduated

Introduction to Sichuan Tuwei ca-is3082wx isolated rs-485/rs-422 transceiver

几款不错的天气插件

Large funds support ecological construction, and Plato farm builds a real meta universe with Dao as its governance
![Notes: [open class] neural network and deep learning -- tensorflow2.0 actual combat [Chinese course]](/img/ea/3eba7e4a433b0c501f9b207641dc6a.jpg)
Notes: [open class] neural network and deep learning -- tensorflow2.0 actual combat [Chinese course]

Selection of Hongmeng page menu

Ca-is1200u current detection isolation amplifier has been delivered in batch
随机推荐
Conditional grouping with $exists inside $cond
[Introduction aux uvm== > Episode 9] ~ modèle de registre, intégration du modèle de registre, méthode conventionnelle du modèle de registre, scénario d'application du modèle de registre
Global variables & local variables
指南针可以开股票账户吗?安全吗?
VectorDraw Web Library 10.10
Editing the date formatting of x-axis tick labels in Matplotlib - editing the date formatting of x-axis tick labels in Matplotlib
MySQL - definition and assignment of variables
Enter an integer with any number of bits, and output the sum of each bit of the number. For example: 1234 – > 10
Analysis on the trend of the number of national cinemas, film viewers and average ticket prices in 2021 [figure]
CGLIB动态代理
Chang Wei (variables and constants) is easy to understand
Sichuan earth microelectronics ca-is1200 isolated operational amplifier for current detection
The principle of Zener diode, what is its function?
[batch dos-cmd command - summary and summary] - external command -cmd download command and packet capture command (WGet)
【批处理DOS-CMD命令-汇总和小结】-应用程序启动和调用、服务和进程操作命令(start、call、)
Evolution of Alibaba e-commerce architecture
【批处理DOS-CMD命令-汇总和小结】-上网和网络通信相关命令(ping、telnet、nslookup、arp、tracert、ipconfig)
[Batch dos - cmd Command - Summary and Summary] - External Command - cmd Download Command, wget Command
Notes: [open class] neural network and deep learning -- tensorflow2.0 actual combat [Chinese course]
shell小技巧(一百三十四)简单的键盘输入记录器