Top Banner
ARTIFICIAL CITY A TRAFFIC SIMULATION
23

ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION SimCity 4 CitiesXL .

Jan 03, 2016

Download

Documents

Caroline Webb
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

ARTIFICIAL CITY

A TRAFFIC SIMULATION

Page 2: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

INSPIRATION

http://www.centgraf.net/metroviz/r_external.html

SimCity 4

CitiesXL

http://forum.citiesxl.com/viewtopic.php?f=58&t=3298

Page 3: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

INSPIRATION

http://abdussamad.com/archives/60-Classic-strategy-gaming-with-Transport-Tycoon.html

Transport Tycoon

GTA IV

http://rockstarhq.multiplayernetwork.net/news/2067/

Page 4: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

INDUSTRY CONTEXT

http://sumo.sourceforge.net/

SUMO

Transmodeler

http://www.caliper.com/transmodeler/

Page 5: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

BRIEF

To build a traffic simulator

Page 6: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

BREAKING DOWN

Vehicles travel on roads

More than one vehicle at a time

Vehicles will need to react to each other

Multiple road elements

Need mechanism to guide vehicles between them

You travel to a location

Need mechanism to guide to goal

Page 7: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

REQUIREMENTS

A road network to navigate in relation to

Multiple vehicles with separate destinations that can react to each

other

A means for vehicles to move locate and reach their destination

Page 8: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

DESIGN DECISIONS

2D vs. 3D

Language?

Complexity

Grid vs. Free-form

Metadata?

Network generation?

Page 9: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

DESIGN DECISIONS

2D vs. 3D

Language?

Complexity

Grid vs. Free-form

Metadata?

Network generation?

2D

Free-form

C#

Fixed vehicle attributes

Pre-coded Scenarios

Not beyond performance

Page 10: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

FREE-FORM ROADS

Join the Dots

Time expensive to design large networks this waySystem can speed process by calculating roads itself

Page 11: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

ROAD “STRIP”

Smallest linear component of a road that may be curvedPlace together to represent curves

Two coordinates held in association

Use offset values to render as a stretch of

tarmac

Page 12: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

MULTIPLE DIRECTION ROADS

Issues with interpolating the nodes

Made worse by sharp corners and multiple lanes

Issues with smoothing

Page 13: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

SHARP CORNERS

Road width increasing at corners

Page 14: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

SMOOTHING CORNERS

Unequal number of lane elementsLoss of relation to node

Page 15: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

VEHICLE CONCEPTS

Components govern performance

Occupant governs behaviours

Page 16: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

PERFORMANCE

Acceleration/Speed depend on power and

weight

Cornering depends on brakes and chassis

Page 17: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

BEHAVIOURS

Stopping Distance

Comfortable top speed

Severity of Acceleration/Deceleration

Depends on Driver Sometimes feelings,

such as stress or impatience

Other times as preference or habit

Lane changing behaviours

Page 18: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

BASIC MOVEMENT

Move towards target nodeFor example, one from a road “strip”.

Don’t collide with other vehiclesTry to match pace

Page 19: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

MORE COMPLEX INTERACTIONS

Attempt to bypass obstructions

Beware of new vehicles which might present collision risks

Page 20: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

FUZZY LOGICMulti-value approach to logic

Decimal based membership of values

Represent Driver as collection of fuzzy sets

Supply situational information and de-fuzzify key values to determine decisions

Page 21: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

LANE CHANGE EXAMPLE Driver waits at the back of queue for lights to change

The driver method processes that the adjacent lane has a cars length of space

Potential Space > Car Length

The adjacent lane has no streaming controls, thus the driver can continue on a direct route to their destination from it

Route suitability is true

The driver has a low membership value to the Impatience fuzzy set, but currently possesses a high membership to the Stress set which has been increasing due to not reaching locations as rapidly as the path-finding algorithm expected them to.

The de-fuzzified value combined with the earlier variables passes the threshold value and the car maneuvers into the free space

Page 22: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

PREREQUISITES The more freedom of navigation an automated element is given

the greater the scope for error

This can be managed by properly training the automated elements before declaring the simulation finalised

Movement of vehicles with relation to nodes requires a finalised network structure

Page 23: ARTIFICIAL CITY A TRAFFIC SIMULATION. INSPIRATION  SimCity 4 CitiesXL .

ROUTE-PLANNING

The means of determining the shortest route from point A to point B