kitti_to_rosbag使用

使用知乎提供的添加IMU约束的kitti_to_bag文件:
如何在kitti raw data上跑起vins-mono
工具:
https://github.com/PetWorm/kitti_to_rosbag_for_vio

教程:
kitti_to_rosbag入坑教程

1、安装依赖项:
添加链接描述

git clone https://github.com/ethz-asl/glog_catkin.git
git clone https://github.com/ethz-asl/gflags_catkin.git
git clone https://github.com/ethz-asl/minkindr.git
git clone https://github.com/ethz-asl/minkindr_ros.git
git clone https://github.com/ethz-asl/eigen_catkin.git
git clone https://github.com/ethz-asl/eigen_checks.git
git clone https://github.com/ethz-asl/numpy_eigen.git
git clone https://github.com/ethz-asl/minkindr.git

2、注意事项:
kitti_to_rosbag安装使用

3、最后运行,得到bag文件:

roscore
source devel/setup.bash
rosrun kitti_to_rosbag kitti_rosbag_converter ~/2011_10_03 ~/2011_10_03/2011_10_03_drive_0042_sync ~/2011_10_03/2011_10_03_drive_0042_sync/kitti.bag

4、检查生成的bag文件时间有没有问题:

rosbag info kitti.bag
roslaunch export.launch  //提取图像

5、之后查看图像,可以复制到制定文件夹:

cd ~/.ros
ls
mv ~/.ros/*.jpg /home/dyt/2011_10_03/image
>  <launch>
>  <node pkg="rosbag" type="play" name="rosbag" args="-d 2 /home/dyt/2011_10_03/2011_10_03_drive_0042_sync/kitti.bag"/>
      <node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME">
        <remap from="image" to="/cam00/image_raw"/>
      </node>
 </launch>

出现问题:

读取bag存在问题,读出数据不连续!!!目前还未解决

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值