单目DM-vio-ros

文章描述了在编译dm-vio项目时遇到的CMake错误,特别是与Boost库中regex组件的链接问题。解决方案包括在CMakeLists.txt中添加find_package()调用来寻找Boost库。此外,还提到了在构建ROSdm-vio插件时需要设置环境变量以及添加依赖项以避免编译错误。最后,文章给出了在T265上运行DM-VIO的命令行参数和启动ROS节点的方法。
摘要由CSDN通过智能技术生成

编译过程参考

编译报错一
CMake Error at CMakeLists.txt:198 (add_executable):
Target “dmvio_t265” links to target “Boost::regex” but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

CMake Error at CMakeLists.txt:191 (add_executable):
Target “dmvio_dataset” links to target “Boost::regex” but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

进入到CMakeLists.txt, 19行增加regex:

find_package(Boost COMPONENTS system thread filesystem chrono serialization date_time timer regex)

编译报错二
dm-vio下新建子目录catkin_ws/src:
git clone https://github.com/lukasvst/dm-vio-ros.git
为了能让这个插件找到刚刚编译的dm-vio,在.bashrc加上一个环境变量:
sudo gedit ~/.bashrc
在最后面,加上:

export DMVIO_BUILD=/PATH/TO/dm-vio/build

catkin_make之前,仍然需要修改CMakeLists.txt,85行之后,增加一句:

add_dependencies(${PROJECT_NAME}_node ${PROJECT_NAME}_generate_messages_cpp)

不然编译的时候会因为找不到生成的msg格式而报错

catkin_make
source devel/setup.bash

在T265上运行DM-VIO

rosrun dmvio_ros node nogui=0 useimu=1 quiet=1 mode=3 \
			  calib=/home/bitcq/Music/dm-vio/configs/tumvi_calib/camera02.txt  \
              imuCalib=/home/bitcq/Music/dm-vio/configs/tumvi_calib/camchain.yaml \
              gamma=/home/bitcq/Music/dm-vio/configs/pcalib_linear_8bit.txt      \
	          vignette=/home/bitcq/Music/dm-vio/configs/realsense/vignette_t265.png   \
              settingsFile=/home/bitcq/Music/dm-vio/configs/t265_noise_tumvi.yaml   \
              resultsPrefix=/home/bitcq/Music/dm-vio/configs      	\
    		  cam0/image_raw:=/camera/fisheye1/image_raw imu0:=/camera/imu

roslaunch realsense2_camera rs_t265.launch unite_imu_method:=linear_interpolation enable_fisheye1:=true enable_fisheye2:=true enable_pose:=false

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

飞同学

随时为您服务

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值