Skip to content

Instantly share code, notes, and snippets.

@pysco68
Created August 28, 2017 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pysco68/2c4dd83a00ae27b55e701c8e0f8ab3aa to your computer and use it in GitHub Desktop.
Save pysco68/2c4dd83a00ae27b55e701c8e0f8ab3aa to your computer and use it in GitHub Desktop.
Staudt engineering Blog / LidaRx examples
scanner.OnlyLidarPoints()
// 400mm to 1200mm range
.Where(x => x.Distance >= 400 && x.Distance <= 1200)
// -45° to +45° (scanner azimuth)
.PointsInAzimuthRange(-45, 45)
// group into full revolution scans
.BufferByScan()
.Subscribe(scan =>
{
Console.WriteLine($"{scan.Count} points in range (scan id: {scan.Scan})");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment