Skip to main content

Crate use_pose

Crate use_pose 

Source
Expand description

§use-pose

Primitive robot pose vocabulary for RustUse robotics.

This crate provides pose names, pose-kind labels, 2D and 3D pose labels, and orientation-kind labels. It does not solve transforms, implement coordinate geometry, plan motion, interpolate poses, or duplicate use-geometry.

§Example

use use_pose::{OrientationKind, Pose3Label, PoseKind, PoseName};

let name = PoseName::new("home")?;
let kind = "waypoint".parse::<PoseKind>()?;
let label = Pose3Label::new("pick-ready")?;
let orientation = "quaternion".parse::<OrientationKind>()?;

assert_eq!(name.as_str(), "home");
assert_eq!(kind.to_string(), "waypoint");
assert_eq!(label.as_str(), "pick-ready");
assert_eq!(orientation.to_string(), "quaternion");

The labels describe robot-domain concepts only. They are not transforms or vector/matrix math.

§License

Licensed under either the MIT license or Apache License, Version 2.0. Primitive robot pose vocabulary.

Structs§

Pose2Label
A non-empty 2D pose label.
Pose3Label
A non-empty 3D pose label.
PoseName
A non-empty pose name.

Enums§

OrientationKind
Descriptive orientation representation labels.
OrientationKindParseError
Error returned when parsing orientation kinds fails.
PoseKind
Descriptive pose kind vocabulary.
PoseKindParseError
Error returned when parsing pose kinds fails.
PoseTextError
Errors returned while constructing pose text values.