Skip to content

Commit

Permalink
Fixed KITTI pointcloud datatype format to float32
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleGiacomini committed Sep 3, 2024
1 parent 0445515 commit b422314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/vbr_devkit/datasets/kitti.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b422314

Please sign in to comment.