mirror of
https://github.com/Rhinemann/IoT-Systems.git
synced 2026-03-14 20:50:39 +02:00
16 lines
548 B
Python
16 lines
548 B
Python
from app.entities.agent_data import AgentData
|
|
from app.entities.processed_agent_data import ProcessedAgentData
|
|
|
|
|
|
def process_agent_data(
|
|
agent_data: AgentData,
|
|
) -> ProcessedAgentData:
|
|
"""
|
|
Process agent data and classify the state of the road surface.
|
|
Parameters:
|
|
agent_data (AgentData): Agent data that containing accelerometer, GPS, and timestamp.
|
|
Returns:
|
|
processed_data_batch (ProcessedAgentData): Processed data containing the classified state of the road surface and agent data.
|
|
"""
|
|
# Implement it
|