Skip to main content

Crate use_robot

Crate use_robot 

Source
Expand description

§use-robot

Primitive robot vocabulary for RustUse.

This crate provides descriptive robot names, kinds, models, and manufacturers. It does not create robot registries, connect to robots, control robots, or implement robot configuration systems.

§Example

use use_robot::{RobotKind, RobotModel, RobotName};

let name = RobotName::new("inspection-arm")?;
let model = RobotModel::new("RX-4")?;
let kind = "collaborative".parse::<RobotKind>()?;

assert_eq!(name.as_str(), "inspection-arm");
assert_eq!(model.as_str(), "RX-4");
assert_eq!(kind.to_string(), "collaborative");

§License

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

Structs§

RobotManufacturer
A descriptive robot manufacturer label.
RobotModel
A non-empty robot model label.
RobotName
A non-empty robot name.

Enums§

RobotKind
Broad robot vocabulary.
RobotKindParseError
Error returned when parsing robot kinds fails.
RobotTextError
Errors returned while constructing robot text values.