Marco Zeisler 349a38fa9f vehicle sends daf to orchestrator via rabbitMQ broker
vehicle receives new target velocity from orchestrator as response;
at this point, this velocity is just a random float between 0 and 130;
2021-05-24 17:17:50 +02:00

17 lines
370 B
Python

from dataclasses import dataclass
from datetime import datetime
import geopy.distance
@dataclass
class DAF:
"""
"Datenaufzeichnung für automatisiertes Fahren" (DAF), see 2021_DSE_Exercise_V1.0_Final.pdf page 7
"""
vehicle_identification_number: str
gps_location: geopy.Point
velocity: float
near_crash_event: bool
timestamp: datetime