use-robot-sensor 0.0.1

Primitive robot sensor vocabulary for RustUse robotics
Documentation
  • Coverage
  • 100%
    40 out of 40 items documented1 out of 14 items with examples
  • Size
  • Source code size: 13.75 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 856.54 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-robotics
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-robot-sensor

Primitive robot sensor vocabulary for RustUse robotics.

This crate describes robot sensor names, kinds, mounts, and reading-kind labels. It does not read sensors, process images, process point clouds, perform SLAM, or implement sensor fusion.

Example

use use_robot_sensor::{RobotSensorKind, RobotSensorName, SensorMount, SensorReadingKind};

let name = RobotSensorName::new("wrist-camera")?;
let kind = "camera".parse::<RobotSensorKind>()?;
let mount = SensorMount::new("wrist")?;
let reading = "image".parse::<SensorReadingKind>()?;

assert_eq!(name.as_str(), "wrist-camera");
assert_eq!(kind.to_string(), "camera");
assert_eq!(mount.as_str(), "wrist");
assert_eq!(reading.to_string(), "image");
# Ok::<(), Box<dyn std::error::Error>>(())

The reading kind is a label only. This crate does not model sensor payloads.

License

Licensed under either the MIT license or Apache License, Version 2.0.