use-actuator 0.0.1

Primitive actuator vocabulary for RustUse robotics
Documentation
  • Coverage
  • 100%
    38 out of 38 items documented1 out of 18 items with examples
  • Size
  • Source code size: 14.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 886.27 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-actuator

Primitive actuator vocabulary for RustUse robotics.

This crate describes actuator names, kinds, states, and ratings. It does not command actuators, implement motor control, implement PID control, or provide hardware drivers.

Example

use use_actuator::{ActuatorKind, ActuatorName, ActuatorRating, ActuatorState};

let name = ActuatorName::new("shoulder-servo")?;
let kind = "servo".parse::<ActuatorKind>()?;
let state = "enabled".parse::<ActuatorState>()?;
let rating = ActuatorRating::new("rated torque")?.with_value(12.0)?.with_unit("N m")?;

assert_eq!(name.as_str(), "shoulder-servo");
assert_eq!(kind.to_string(), "servo");
assert_eq!(state.to_string(), "enabled");
assert_eq!(rating.label(), "rated torque");
# Ok::<(), Box<dyn std::error::Error>>(())

The rating is descriptive metadata only. It does not imply motor control behavior.

License

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