The roads of the city are divided by numerous road segments, of which each is controlled by a linux machine called Segment Linux. All those linux machines are controlled by SINGLE linux machine called the ABC Road System.
All linuxes have unique IP addresses and communicate one another via HTTPS.
A segment linux is a physical linux device which may be at the road segment it monitors. It also has a number of sensors including CCTVs, sound/vibration analyzers, thermometers etc., and analyzes situations in the segment.
A segment linux also controls all the devices in the segment such as street lights, traffic lights and traffic signs
Like other linux devices such as smartphones and desktops, a segment linux has limited computing power.
The ABC road system is in the cloud with unlimited computing power, and harmonizes the traffic on roads by controlling segment linuxes in the city.
All cars are self-driving and shared by citizens. Other vehicles such as bicycles and electric boards also are shared by citizens.
Road Linux reports the traffic conditions of each road segment to the ABC road System, such as the degree of traffic congestion, road construction, incidents and accidents, and the number of pedestrians.
ABC Road System calculates the speed and path of each autonomous vehicle based on data collected from segments linuxes.
Each road segment has a webpage which shows various information such as the types of vehicles that may enter. Other data include;
The number of street lights and their locations in UPS(Urban Positioning System).
The number and type of vehicles that passed, and the time of passage.
The segment linux analyzes abnormal scenes and sounds in the segment, and analyzes the cause of each abnormality. For example, If CCTV captures the cat being hit by a car, the segment linux will request action from the relevant departments.
Again, ML is our best friend.
It collects and processes all data from segment linuxes, and relay those processed data to ABC Transport, which determines the speed and path of all self driving cars in the city.
Some scenes and sounds may not be properly analyzed by a segment linux as their computing power is limited. Those obscure scenes and sounds are analyzed by the ABC road system since it is in the cloud with unlimited computing power.
The ABC road system extracts key metadata from data sent by multiple segments Linux located throughout the city, and sends this metadata to ABC Transport. ABC Transport uses this metadata to determine and update the route, speed, and direction of each autonomous vehicle. .
Let's code it and write a ML model for the ABC road system.