TORCS: Bindings to the TORCS vehicle simulator.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

A library for building autonomous vehicles that run in the TORCS simulator. This requires the following external dependencies:

  1. torcs 1.3.4 (http://prdownloads.sourceforge.net/torcs/torcs-1.3.4.tar.bz2?download)

  2. scr-server 2.1 (https://sourceforge.net/projects/cig/files/SCR%20Championship/Server%20Linux/)

Not that scr-server will only work with 1.3.4, until that is updated you must use exactly torcs 1.3.4. Complete install instructions here https://arxiv.org/abs/1304.1672

On Ubunutu 16.04, you may need to comment out line 70 in src/modules/simu/simuv2/simu.cpp in order for TORCS to compile.

A guide script for install is available at https://github.com/santolucito/Haskell-TORCS/blob/master/installTORCS.sh


[Skip to ReadMe]

Properties

Versions0.1.0, 0.1.0, 0.1.0.1, 0.1.0.2
Change logChangeLog.md
Dependenciesbase (>=4.9 && <4.11), bytestring (==0.10.*), containers (>=0.5.7.1), directory, lens, monad-loops, monad-parallel (>=0.7.2.2), MonadRandom, network (==2.6.*), process (>=1.4), random, random-shuffle, time (==1.6.*), TORCS, Yampa (==0.10.*) [details]
LicenseLicenseRef-GPL
AuthorMark Santolucito
Maintainermark.santolucito@yale.edu
CategorySimulation, FRP, Bindings
Source repositoryhead: git clone git://github.com/santolucito/Haskell-TORCS.git
ExecutablesSimple
UploadedTue Feb 13 17:34:49 UTC 2018 by MarkSantolucito

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for TORCS-0.1.0

[back to package description]
# Haskell Binding to TORCS

requires 

- torcs 1.3.4 (http://prdownloads.sourceforge.net/torcs/torcs-1.3.4.tar.bz2?download)
- scr-server 2.1 (https://sourceforge.net/projects/cig/files/SCR%20Championship/Server%20Linux/)

scr-server will only work with 1.3.4, until that is updated you must use exactly torcs 1.3.4

Complete install instructions here https://arxiv.org/abs/1304.1672

on Ubunutu 16.04, you may need to comment out line 70 in src/modules/simu/simuv2/simu.cpp 

## Usage

To install, go to the top level directory, and run 'cabal install'.
You only need to do 'cabal install' the first time, or whenever you change the cabal file.
Later on, just 'cabal repl' is fine.

See the examples folder for how to program a controller.

You can load up the examples and run them with 'cabal repl' on the top directory. 
This will load TORCS.hs, which loads a few examples that can be connected to TORCS.
As an example, first open TORCS to a quick race and set the player to src_server1. 
Then on the command line run:

    $> cabal repl
    ghci> :l Examples/Simple.hs
    ghci> main


### Using machine learning with TORCS

Race Mode : Practice
Configure Race -> Last page of options, switch 'display' from 'normal' to 'results only'

### TODO

- write controller for basic platoon
- build and ship to hackage