From b4223144b69f587f9123205d8721cf5aeffb82a3 Mon Sep 17 00:00:00 2001 From: Emanuele Giacomini Date: Tue, 3 Sep 2024 12:22:29 +0200 Subject: [PATCH] Fixed KITTI pointcloud datatype format to float32 --- python/vbr_devkit/datasets/kitti.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/vbr_devkit/datasets/kitti.py b/python/vbr_devkit/datasets/kitti.py index 84885fb..be9bfa1 100644 --- a/python/vbr_devkit/datasets/kitti.py +++ b/python/vbr_devkit/datasets/kitti.py @@ -82,7 +82,7 @@ def _save_cloud(self, data: PointCloudXf, timestamp, *args, **kwargs): if kwargs.get("pcloud_kitti_format"): clip_points = np.stack([data.points["x"], data.points["y"], data.points["z"], data.points["intensity"]], axis=1) - clip_points.tofile(dest_path) + clip_points.astype(np.float32).tofile(dest_path) return data.points.tofile(dest_path)