From dd48d3475d3e327d1427a3b5fa97c4fe6a567148 Mon Sep 17 00:00:00 2001 From: Alexander Melekhin Date: Fri, 25 Feb 2022 17:19:08 +0300 Subject: [PATCH] fix: build_pointcloud function bug which resulted in permament IOError --- python/build_pointcloud.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/build_pointcloud.py b/python/build_pointcloud.py index 57d1830..afb28a5 100644 --- a/python/build_pointcloud.py +++ b/python/build_pointcloud.py @@ -74,6 +74,9 @@ def build_pointcloud(lidar_dir, poses_file, extrinsics_dir, start_time, end_time # sensor is VO, which is located at the main vehicle frame poses = interpolate_vo_poses(poses_file, timestamps, origin_time) + # this is required because timestamps array changed in interpolate_poses() function from interpolate_poses.py + timestamps = timestamps[1:] + pointcloud = np.array([[0], [0], [0], [0]]) if lidar == 'ldmrs': reflectance = None