Rust VRU Awareness (VAM)

The rustflexstack::facilities::vru_awareness_service module implements the VRU Awareness basic service of ETSI TS 103 300-3 (VRU Awareness Messages). VRU clustering is implemented in the Python stack only.

Components

  • vam_bindings: Rust types for the VAM containers.

  • vam_coder: VamCoder, the UPER encoder and decoder, and the Vam type.

  • vam_transmission: the generation rules (position, speed and orientation changes, T_GenVamMax).

  • vam_reception: decodes received VAMs and stores them in the LDM.

Example

use rustflexstack::facilities::vru_awareness_service::vam_coder::{Vam, VamCoder};

let coder = VamCoder::new();
let raw_bytes: Vec<u8> = vec![/* a received VAM */];
if let Ok(vam) = coder.decode(&raw_bytes) {
    println!("VAM from station {:?}", vam.header.0.station_id);
}