3 releases (breaking)

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

#406 in Algorithms

Download history 34/week @ 2024-08-26 94/week @ 2024-09-09 19/week @ 2024-09-16 74/week @ 2024-09-23 58/week @ 2024-09-30 71/week @ 2024-10-07 97/week @ 2024-10-21 208/week @ 2024-10-28 15/week @ 2024-11-04 133/week @ 2024-11-11 49/week @ 2024-11-18 36/week @ 2024-11-25 187/week @ 2024-12-02 103/week @ 2024-12-09

378 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

~5–16MB
~182K SLoC