1 unstable release

Uses old Rust 2015

0.1.0 Oct 18, 2016

#238 in #decode

MIT license

34KB
640 lines

NatNet-decode

Build Status Crates.io Decode NatNet messages in Rust.

NatNet is the software solution supporting OptiTrack many offerings. Since motion tracking data is multicast it can be decoded in any language and this crate is a Rust (unofficial!) implementation.

Example

use natnet_decode::NatNet;
use semver::Version;

let mut data = Vec::new();
// Fill data here
// ...

// We can then decode this:
let parsed = NatNet::unpack_with(&Version::parse("2.5.0").unpack(), &mut data.as_ref());
// Do stuff with parsed
println!("{:?}", parsed);

Acknowledgement

This crate is heavily inspired by python-optirx and test data is borrowed with permission.

Dependencies

~7.5MB
~146K SLoC