use-joint 0.0.1

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

Primitive robot joint vocabulary for RustUse.

This crate provides descriptive joint names, kinds, limits, axes, and indexes. It does not solve kinematics, enforce robot-specific constraints, control motors, or simulate motion.

Example

use use_joint::{JointAxis, JointIndex, JointKind, JointLimit, JointName};

let name = JointName::new("shoulder-pan")?;
let kind = "revolute".parse::<JointKind>()?;
let axis = "z".parse::<JointAxis>()?;
let limit = JointLimit::new(Some(-1.57), Some(1.57))?;
let index = JointIndex::new(0);

assert_eq!(name.as_str(), "shoulder-pan");
assert_eq!(kind.to_string(), "revolute");
assert_eq!(axis.to_string(), "z");
assert_eq!(limit.maximum(), Some(1.57));
assert_eq!(index.get(), 0);
# Ok::<(), Box<dyn std::error::Error>>(())

License

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