Traffic Simulation

Name: Traffic Simulation (Spring, 2013) Tech: Python, PyGame(Rendering)

This is inspired by the Nav2Nav Project.

I participated in the Nav2Nav project at GISLab, ISchool, Unversity of Pittsburgh. Nav2Nav system try to improve safety by enable communication between Navigation Systems. The mission of my team is feasibility study of the system which is achieved by simulation.

After the Nav2Nav project, I wrote this project to practice some ideas. The core idea is that, each entity(vehicle) have it’s own vision and logical. It can “see” other cars and roads, then reaction to outside environment. This design give the system the ability to simulate accident. Imagine, a driver can not see other cars because a barrier(a building), then it may have a accident.  The road network can be generated from real map, it can calculate the traffic lane automatically(the number of lanes depending on  the attribute of map info. or a default value).

  • The following demo rendering a network which is generated from Pittsburgh map.

{% vimeo 97691610 %}

  • Here is a demo for 1000 cars in a small network(part of Pitt), and the green and red blocks show the statistics result in different region(num. cars and average speed).

{% vimeo 97691609 %}