Skip to main content

Crate use_robot_subsystem

Crate use_robot_subsystem 

Source
Expand description

§use-robot-subsystem

Primitive robot subsystem vocabulary for RustUse robotics.

This crate describes robot subsystem names, subsystem kinds, and lifecycle/status labels. It does not orchestrate subsystems, implement runtime supervision, implement health monitoring frameworks, implement robot middleware, or model distributed systems behavior.

§Example

use use_robot_subsystem::{RobotSubsystemKind, RobotSubsystemName, SubsystemState};

let name = RobotSubsystemName::new("arm")?;
let kind = "manipulation".parse::<RobotSubsystemKind>()?;
let state = "ready".parse::<SubsystemState>()?;

assert_eq!(name.as_str(), "arm");
assert_eq!(kind.to_string(), "manipulation");
assert_eq!(state.to_string(), "ready");

The state is vocabulary only. It does not start, stop, supervise, or monitor anything.

§License

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

Structs§

RobotSubsystemName
A non-empty robot subsystem name.

Enums§

RobotSubsystemKind
Descriptive robot subsystem kind vocabulary.
RobotSubsystemKindParseError
Error returned when parsing subsystem kinds fails.
RobotSubsystemTextError
Errors returned while constructing subsystem text values.
SubsystemState
Descriptive subsystem lifecycle or status vocabulary.
SubsystemStateParseError
Error returned when parsing subsystem states fails.