Skip to content

Commit

Permalink
Normalizization happen in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tizianoGuadagnino committed Jan 26, 2025
1 parent 7879b7d commit 5d07460
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/kiss_icp/tools/point_cloud2.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,10 @@ def read_point_cloud(msg: PointCloud2) -> Tuple[np.ndarray, np.ndarray]:
points = points[~np.any(np.isnan(points), axis=1)]

if t_field:
timestamps = points_structured[t_field].astype(np.float64)
min_timestamp = np.min(timestamps)
max_timestamp = np.max(timestamps)
timestamps = (timestamps - min_timestamp) / (max_timestamp - min_timestamp)
timestamps = points_structured[t_field]
else:
timestamps = np.array([])
return points.astype(np.float64), timestamps
return points.astype(np.float64), timestamps.astype(np.float64)


def read_points(
Expand Down

0 comments on commit 5d07460

Please sign in to comment.