3 releases (breaking)

0.3.0 Oct 31, 2024
0.2.0 Aug 19, 2023
0.1.0 Nov 8, 2022

#414 in Algorithms

Download history 12/week @ 2024-08-04 47/week @ 2024-08-11 26/week @ 2024-08-18 30/week @ 2024-08-25 4/week @ 2024-09-01 92/week @ 2024-09-08 18/week @ 2024-09-15 73/week @ 2024-09-22 46/week @ 2024-09-29 85/week @ 2024-10-06 2/week @ 2024-10-13 90/week @ 2024-10-20 209/week @ 2024-10-27 20/week @ 2024-11-03 131/week @ 2024-11-10 32/week @ 2024-11-17

408 downloads per month
Used in cu-vlp16

MIT license

125KB
3.5K SLoC

velodyne-lidar

[ crates.io | docs.rs ]

The Rust implementation of Velodyne lidar data processing algorithms and utilities.

License

MIT license.


lib.rs:

Packet data parsing and conversion for Velodyne LiDARs.

Example

use velodyne_lidar::{types::measurements::Measurement, Config};

let config = Config::new_vlp_32c_strongest();
let frame_iter =
    velodyne_lidar::iter::frame_xyz_iter_from_file(config, "tests/velodyne_vlp32.pcap")?;

for frame in frame_iter {
    let frame = frame?;

    for firing in frame.firing_iter() {
        for point in firing.point_iter() {
            let point = point.as_single().unwrap();
            let Measurement {
                distance,
                intensity,
                xyz: [x, y, z],
            } = point.measurement;
            print!("dist: {distance}\t");
            print!("int: {distance}\t");
            println!("xyz: {x} {y} {z}");
        }
    }
}

Dependencies

~4–15MB
~160K SLoC