zerodds-rtc 1.0.0-rc.1

OMG RTC 1.0 (formal/2008-04-04) — Lightweight Robotic Technology Component (Local PSM §6.3): ReturnCode_t, LifeCycle-State-Machine, ExecutionContext, Periodic/Stimulus/Mode-Profiles, Resource-Introspection. no_std + alloc.
Documentation
  • Coverage
  • 100%
    107 out of 107 items documented1 out of 66 items with examples
  • Size
  • Source code size: 62.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • zero-objects/zero-dds
    2 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SandraK82

zerodds-rtc

License: Apache-2.0 docs.rs

OMG RTC 1.0 (formal/2008-04-04) — Robotic Technology Component. Lightweight RTC + ExecutionContext + Lifecycle-State-Machine + Periodic/Stimulus/Mode-Profile + Resource-Introspection. Local PSM (§6.3) konform; no_std + alloc, forbid(unsafe_code). Safety classification: STANDARD.

Spec-Mapping

Spec Abschnitt
OMG RTC 1.0 §5.2.1 ReturnCode_t
OMG RTC 1.0 §5.2.2.2 LightweightRTObject
OMG RTC 1.0 §5.2.2.3 LifeCycle
OMG RTC 1.0 §5.2.2.4 Component-Action-Trait
OMG RTC 1.0 §5.2.2.5 / §5.2.2.6 ExecutionContext
OMG RTC 1.0 §5.2.2.7 ExecutionKind
OMG RTC 1.0 §5.3 Execution-Semantics (Periodic/Stimulus/Modes)
OMG RTC 1.0 §5.4 Resource Data Model
OMG RTC 1.0 §6.3 Local PSM

Was ist drin

  • return_codeReturnCode mit allen 6 Status-Codes plus is_ok() / into_result() Helper.
  • lifecycleLifeCycleState, ExecutionKind, ComponentAction-Trait + State-Machine-Enforcement.
  • objectLightweightRtObject, ExecutionContextHandle.
  • executionExecutionContext, ExecutionContextOperations-Trait.
  • semanticsDataFlowComponentAction (Periodic), FsmComponentAction (Stimulus), MultiModeComponentAction + ModeOfOperation (Modes).
  • resourceIntrospection, ComponentProfile, PortProfile, ConnectorProfile, PortDirection, ProfileId.

Was nicht abgedeckt ist

  • CORBA PSM (§6.5) — verlangt CORBA-ORB; ZeroDDS hat keinen.
  • Lightweight CCM PSM (§6.4) — verlangt LwCCM-Container; siehe crates/ccm/ welche die IDL-Equivalent-Transformation liefert, aber keinen Container bereitstellt.
  • §5.4 Discovery-/Wire-Aspekt — partial: Resource-Daten-Modell ist im Crate, der Discovery-Wire-Aspekt nicht.

Beispiel

use zerodds_rtc::ReturnCode;

// Spec §5.2.1.1: ReturnCode::Ok ist der einzige OK-Code.
assert!(ReturnCode::Ok.is_ok());
assert!(!ReturnCode::PreconditionNotMet.is_ok());
assert_eq!(ReturnCode::Ok.into_result(), Ok(()));

Tests

cargo test -p zerodds-rtc

See also