Crates.io | vda5050-types |
lib.rs | vda5050-types |
version | 0.2.0 |
source | src |
created_at | 2024-08-12 08:14:49.445104 |
updated_at | 2024-08-12 09:11:11.215317 |
description | Types defined by the VDA5050 standard for AGV communication. |
homepage | |
repository | https://github.com/kKdH/vda5050-types-rs |
max_upload_size | |
id | 1334138 |
size | 68,387 |
This crate provides data-types for the rust programming language defined by the VDA5050 standard. VDA5050 is an open standard for communication between AGV fleets and a central master control.
Add a dependency on this crate to your project's Cargo.toml:
[dependencies]
vda5050-types = { version = "0.1.0", features = ["v2_0"] }
Use the types provided by the crate:
use vda5050_types::v2_0::common::{Action, BlockingType};
use vda5050_types::v2_0::instant_actions::InstantActions;
fn main() {
let action = InstantActions {
header_id: 0,
timestamp: Utc::now(),
version: String::from("2"),
manufacturer: String::from("Fubar Co."),
serial_number: String::from("1234"),
instant_actions: vec![
Action {
action_type: String::from("pick"),
action_id: String::from("pick-1"),
action_description: None,
blocking_type: BlockingType::Soft,
action_parameters: vec![],
}
],
};
}
Licensed using the MIT.
All contributions are welcome. Any contribution intentionally submitted for inclusion in this crate by you, as defined in the MIT license, shall be licensed without any additional terms or conditions.