Skip to content

Commit

Permalink
Merge pull request #103 from leggedrobotics/fix/nan_in_color
Browse files Browse the repository at this point in the history
Only checking isnan for xyz layers.
  • Loading branch information
mktk1117 authored Sep 5, 2024
2 parents 968458a + 494ab5f commit 00bbe01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def input_pointcloud(
"""
raw_points = cp.asarray(raw_points, dtype=self.data_type)
additional_channels = channels[3:]
raw_points = raw_points[~cp.isnan(raw_points).any(axis=1)]
raw_points = raw_points[~cp.isnan(raw_points[:, :3]).any(axis=1)]
self.update_map_with_kernel(
raw_points,
additional_channels,
Expand Down

0 comments on commit 00bbe01

Please sign in to comment.