KITTI数据集转化为ROS bag包(解决各种类型数据集,实测有效)

KITTI数据集转化为ROS bag包(解决各种类型数据集,实测有效)

1.raw data数据集转化

raw data数据集的转化可以参考我之前的博客
将KITTI数据集转化为ROS bag包——kitti2bag使用教程

2.其他数据集转化

除了上面kitti2bag数据集转化工具外,我们再介绍另一个非常好用的工具
这里阿里员工在github上开源的工具包,大家可以通过下面的链接进行访问
lidar2rosbag_KITTI
工具非常好用,建议star或者fork方便下次使用

下面介绍lidatr2rosbag工具包的使用方法:

编译工具包

$ cd ~/catkin_ws/src/
$ git clone  git@github.com:AbnerCSZ/lidar2rosbag_KITTI.git
$ cd ~/catkin_ws
$ catkin_make -DCMAKE_BUILD_TYPE=Release 
$ source ~/catkin_ws/devel/setup.bash

运行:

rosrun lidar2rosbag lidar2rosbag KITTI_input_dir output_name

Please confirm that the input path contains the file times.txt and the folder 	velodyne.

└── dataset
   └── sequences
    └── 04
        ├── calib.txt
        ├── image_0 [271 entries exceeds filelimit, not opening dir]
        ├── image_1 [271 entries exceeds filelimit, not opening dir]
        ├── times.txt
        └── velodyne [271 entries exceeds filelimit, not opening dir]

示例:

rosrun lidar2rosbag lidar2rosbag /data/KITTI/dataset/sequences/04/ 04

or

rosrun lidar2rosbag lidar2rosbag /data/KITTI/dataset/sequences/01/ bag01

and so on...

特别提示:
如果遇到LZ4_stream_t, LZ4_streamDecode_t build error错误可以通过下面链接中的方法解决
救命稻草

  • 9
    点赞
  • 91
    收藏
    觉得还不错? 一键收藏
  • 9
    评论
以下是一个简单的示例代码,用 JavaFX 来绘制 Hello Kitty: ```java import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext; import javafx.scene.paint.Color; import javafx.stage.Stage; public class HelloKitty extends Application { @Override public void start(Stage primaryStage) throws Exception { Canvas canvas = new Canvas(400, 400); GraphicsContext graphicsContext = canvas.getGraphicsContext2D(); // 绘制 Hello Kitty 的头部 graphicsContext.setFill(Color.WHITE); graphicsContext.fillOval(50, 50, 300, 300); // 绘制 Hello Kitty 的耳朵 graphicsContext.setFill(Color.PINK); graphicsContext.fillOval(100, 70, 80, 100); graphicsContext.fillOval(220, 70, 80, 100); // 绘制 Hello Kitty 的眼睛 graphicsContext.setFill(Color.BLACK); graphicsContext.fillOval(150, 130, 20, 30); graphicsContext.fillOval(230, 130, 20, 30); // 绘制 Hello Kitty 的鼻子 graphicsContext.setFill(Color.PINK); graphicsContext.fillOval(190, 170, 20, 20); // 绘制 Hello Kitty 的嘴巴 graphicsContext.setFill(Color.PINK); graphicsContext.fillOval(160, 220, 80, 40); // 绘制 Hello Kitty 的脸颊 graphicsContext.setFill(Color.PINK); graphicsContext.fillOval(90, 180, 60, 60); graphicsContext.fillOval(250, 180, 60, 60); // 绘制 Hello Kitty 的蝴蝶结 graphicsContext.setFill(Color.RED); graphicsContext.fillRect(170, 100, 50, 30); graphicsContext.fillOval(210, 110, 20, 20); Scene scene = new Scene(canvas); primaryStage.setTitle("Hello Kitty"); primaryStage.setScene(scene); primaryStage.show(); } public static void main(String[] args) { launch(args); } } ``` 运行程序后,将会看到一个绘制了 Hello Kitty 的窗口。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值