pub struct MAPExtendedMessage {
pub protocol_version: u16,
pub id: u64,
pub timestamp: Option<u64>,
pub sending_station_id: Option<u64>,
pub region: Option<u64>,
pub revision: Option<u16>,
pub lanes: Vec<Lane>,
}Expand description
Fields§
§protocol_version: u16§id: u64§timestamp: Option<u64>Reference time of the geometry present in the message
sending_station_id: Option<u64>§region: Option<u64>§revision: Option<u16>§lanes: Vec<Lane>List of the lanes in the intersection
Implementations§
source§impl MAPExtendedMessage
impl MAPExtendedMessage
sourcepub fn get_lane_from_position(
&self,
position: &ReferencePosition
) -> Option<&Lane>
pub fn get_lane_from_position( &self, position: &ReferencePosition ) -> Option<&Lane>
Lookup the existing lanes to find the one the position is in or close to
FIXME this requires unit tests and consolidation
Trait Implementations§
source§impl Clone for MAPExtendedMessage
impl Clone for MAPExtendedMessage
source§fn clone(&self) -> MAPExtendedMessage
fn clone(&self) -> MAPExtendedMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MAPExtendedMessage
impl Debug for MAPExtendedMessage
source§impl<'de> Deserialize<'de> for MAPExtendedMessage
impl<'de> Deserialize<'de> for MAPExtendedMessage
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more