Skip to content

Commit 398154c

Browse files
committed
fasten load_lidar_scan
1 parent 920fcc5 commit 398154c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

GEMstack/onboard/perception/map_based_estimation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def load_lidar_scan(points):
4040
try:
4141
# Create point cloud from numpy array
4242
scan_pcd = o3d.geometry.PointCloud()
43-
scan_pcd.points = o3d.utility.Vector3dVector(points[:, :3])
43+
points = np.ascontiguousarray(points[:, :3], dtype=np.float64)
44+
scan_pcd.points = o3d.utility.Vector3dVector(points)
4445

4546

4647
# # Add intensity as colors if available (4th column)

0 commit comments

Comments
 (0)