TORCS-0.1.0.2: Bindings to the TORCS vehicle simulator.

Safe HaskellNone
LanguageHaskell2010

TORCS.Types

Synopsis

Documentation

type Driver = SF CarState DriveState Source #

A driver observes the environment and changes the drive state

data DriveState Source #

The DriveState dictates how the controller actuators behave and, by extension, how the car moves around the world. See the TORCS manual for full description (https://arxiv.org/pdf/1304.1672)

Constructors

DriveState 

Fields

type Message = String Source #

Broadcast messages are strings, but might be Text in the future

data CarState Source #

CarState is everything the controller can observe in the world. See the TORCS manual for full description (https://arxiv.org/pdf/1304.1672)

Constructors

CarState 

Fields

type Communications = Map Int (Maybe Message) Source #

The global communications channel to read broadcasts from other vehicles. The port for each vehicle is the index into the map (ports start at 3001 in TORCS)