Crates.io | tls_read_hancock_bin |
lib.rs | tls_read_hancock_bin |
version | 0.1.1 |
source | src |
created_at | 2019-11-08 00:10:55.218732 |
updated_at | 2019-11-08 00:12:52.94273 |
description | Reader for the Hancock terrestrial LiDAR binary polar format, see https://bitbucket.org/StevenHancock/libclidar. |
homepage | https://github.com/caiohamamura/rs_hancock_read_bin |
repository | https://github.com/caiohamamura/rs_hancock_read_bin |
max_upload_size | |
id | 179201 |
size | 6,541 |
Reader for the Hancock terrestrial LiDAR binary polar format, see https://bitbucket.org/StevenHancock/libclidar.
Cargo.toml
:
[dependencies]
tls_read_hancock_bin = "0.1.1"
And in your rust code:
extern crate hancock_read_bin;
use hancock_read_bin::HancockReader;
// [...]
let file_path_str = String::from("some_path.bin");
let mut beam_reader = HancockReader::new(file_path_str).unwrap();
println!("Number of beams: {}", beam_reader.n_beams);
while let Some(data) in beam_reader.into_iter() {
println!("\r{:?}", data);
}