3 releases (breaking)

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

#403 in Algorithms

Download history 83/week @ 2024-07-29 11/week @ 2024-08-05 48/week @ 2024-08-12 24/week @ 2024-08-19 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

453 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
~161K SLoC