Skip to content

Commit

Permalink
fix open3d tensor API access of pointcloud data (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh1002 authored Aug 21, 2024
1 parent beb5858 commit 110cc75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lidar_visualizer/datasets/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def read_scan_with_intensities(file):
intensity = scan.point.intensity.numpy()
intensity = intensity / intensity.max()
colors = self.cmap(intensity)[:, :, :3].reshape(-1, 3)
return np.asarray(scan.points), colors
return scan.point.positions.numpy(), colors

# else
scan = scan.to_legacy()
Expand Down

0 comments on commit 110cc75

Please sign in to comment.