Create Your Own Traffic Situation
Using the Programming Tool, you can write your own scenarios to be run by the F12 driving simulator software. This enables you to create a very wide variety of traffic situations using all of the predefined graphical databases delivered with your simulator. All the exercises found in e.g. the “Driving School Program” are scenarios. In fact, you can take one of the existing scenarios and create your own by modifying it until it fits your needs. Examples of what you can do in a scenario script are:
– Set weather conditions and position traffic signs.
– Assign a route to the driver (he/she will be instructed where to drive).
– Insert other road users and control their behaviour.
– Trigger predefined events (e.g. deer running from behind a tree).
– Execute various system commands (e.g. display custom messages).
– Monitor driver’s controls, position, speed and perform other actions.
The functions used by scenarios to monitor and influence the simulation are also available to remote network clients. This makes it possible to let your own software communicate with the simulator software. The Programming Tool consists of a development environment to be run on a desktop computer system for writing, testing and debugging scenario scripts. It comes with a reference manual containing an introduction to the scenario programming language and an exhaustive reference section describing the interface to
the simulator software.