feat: added broken map for supporting multiple tracks (will likely get removed) and added colorless rendering for tracks in point cloud
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 47s

This commit is contained in:
2025-01-13 00:49:08 +01:00
parent 8a59bbbea7
commit df1795c0bd
11 changed files with 147263 additions and 175 deletions

View File

@ -10,11 +10,11 @@ class VehicleHandler:
pass
# handles creating a vehicle and storing it in the database
def createVehicle(self, name:str) -> Vehicle:
def createVehicle(self, name:str, licenseplate:str) -> Vehicle:
if not name:
raise ValueError("name is empty")
vehicle = Vehicle(name=name)
vehicle = Vehicle(name=name, licenseplate=licenseplate)
self.dbSession.add(vehicle)
self.dbSession.commit()
@ -34,7 +34,8 @@ class VehicleHandler:
driverList = [
{
"id": vehicle.id,
"name": vehicle.name
"name": vehicle.name,
"licensePlate": vehicle.licenseplate
}
# iterates all drivers and appends them to the list
for vehicle in vehicles