-
-
Save pysco68/2c4dd83a00ae27b55e701c8e0f8ab3aa to your computer and use it in GitHub Desktop.
Staudt engineering Blog / LidaRx examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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