Skip to content

Instantly share code, notes, and snippets.

@pysco68
Created August 28, 2017 17:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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