DS-SLAM DS_SLAM_TUM.launch报错,或者Rviz不出语义图

本文详细介绍了如何正确配置DS-SLAM_TUM.launch文件中的路径参数,包括model、Vocabulary等文件的绝对路径设置,确保SLAM系统的稳定运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

成功编译之后,基本上所有问题都可能是文件路径引起的。

官方github文档中没有说清楚,他只说了改model的路径和Vocabulary的路径。

DS_SLAM_TUM.launch中的所有文件的路径都要改成绝对路径,从根目录写起,像这样

<launch>  

	<!-- orb slam  -->
	<node pkg="ORB_SLAM2_PointMap_SegNetM" name="TUM" type="TUM" args="
	/home/cs/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/Vocabulary/ORBvoc.bin 
	$(find ORB_SLAM2_PointMap_SegNetM)/TUM3.yaml /home/cs/CS/dataset/rgbd_dataset_freiburg3_walking_xyz 
	/home/cs/CS/dataset/rgbd_dataset_freiburg3_walking_xyz/associate.txt /home/cs/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/prototxts/segnet_pascal.prototxt 
	/home/cs/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/models/segnet_pascal.caffemodel /home/cs/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/tools/pascal.png" output="screen" />

	<!-- Run other launch file -->
    <include file="$(find ORB_SLAM2_PointMap_SegNetM)/launch/Octomap.launch" />
	<include file="$(find ORB_SLAM2_PointMap_SegNetM)/launch/transform.launch" />
	<node pkg="rviz" name="rviz" type="rviz" /> 
	
</launch>
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值