TORCS-0.1.0.2: Bindings to the TORCS vehicle simulator.

Safe HaskellNone
LanguageHaskell2010

TORCS.Connect

Synopsis

Documentation

startDriver_ :: Driver -> IO () Source #

start a single driver as in startDriver, but dont get the final state of the car at the end.

startDriver :: Driver -> IO (CarState, DriveState) Source #

This is the will boot TORCS and run the simulation saved in the practice config. this is probably saved in ~/.torcs/config/raceman/practice.xml, but should be changed via the TORCS GUI. If the config file is elsewhere, you will need to change this library and recompile Haskell-TORCS from source

startGUIDriver :: Driver -> IO (CarState, DriveState) Source #

Use this if you want to watch the car drive in TORCS. Requires booting up TORCS manually and starting a track to the screen where TORCS says: ...Initializing Driver scr_server1...

startDrivers :: [Driver] -> IO () Source #

This allows you to run simulate multiple vehicles on the same track. This will automatically connect the broadcast in DriveState to the communications in CarState for all other cars. Platooning simulation will implement controllers that utilize this comm channel between all vehicles. Each car's channel is addressable with their cooresponding TORCS port (starting at 3001)