TORCS: Bindings to the TORCS vehicle simulator.

[ bindings, frp, library, program, simulation ] [ Propose Tags ]

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]
Versions 0.1.0, 0.1.0.1, 0.1.0.2
Change log ChangeLog.md
Dependencies base (>=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]
License LicenseRef-GPL
Author Mark Santolucito
Maintainer mark.santolucito@yale.edu
Category Simulation, FRP, Bindings
Source repo head: git clone git://github.com/santolucito/Haskell-TORCS.git
Uploaded by MarkSantolucito at Tue Feb 13 17:37:48 UTC 2018
Distributions NixOS:0.1.0.2
Executables Simple
Downloads 117 total (7 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2018-02-13 [all 2 reports]
Hackage Matrix CI

Modules

  • TORCS
    • TORCS.Connect
      • TORCS.Connect.Runner
    • TORCS.Types

Downloads

Maintainer's 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