Skip to content

Instantly share code, notes, and snippets.

@abhisheknaik96
Last active December 18, 2019 18:56
Show Gist options
  • Save abhisheknaik96/1e71dbb1e812174f300db32d20996a34 to your computer and use it in GitHub Desktop.
Save abhisheknaik96/1e71dbb1e812174f300db32d20996a34 to your computer and use it in GitHub Desktop.
Step-by-step instructions to install TORCS for training your own driving agents using RL.

TORCS for RL


Dependencies

  • TORCS (the simulator)
  • scr-client (the patch which creates a server-client model)

Installation

Install TORCS on a machine with Ubuntu 14.04/16.04 LTS from Princeton's DeepDriving directory. (Download and unzip the folder, follow the given README there.)

scr-client

Install the scr-client as follows:

  1. Download the scr-patch from here.
  2. Unpack the package scr-linux-patch.tgz in your base TORCS directory.
  3. This will create a new directory called scr-patch.
    cd scr-patch
  4. sh do_patch.sh (do_unpatch.sh to revert the modifications)
  5. Move to the parent TORCS directory
    cd ../
  6. Run the following commands
    ./configure
    make -j4
    sudo make install -j4
    sudo make datainstall -j4

10 scr_server car should be available in the race configurations now.

  1. Download the C++ client from here.
  2. Unpack the package scr-client-cpp.tgz in your base TORCS directory.
  3. This will create a new directory called scr-client-cpp.
    cd scr-client-cpp
  4. make -j4
  5. At this point, multiple clients can join an instance of the TORCS game by:
    ./client
    ./client port:3002
    Typical values are between 3001 and 3010 (3001 is the default)

Please refer to the scr-patch's manual for detailed information regarding the usage and feature space.


Note

The README was compiled by Abhishek Naik and Mohan Bhambhani as part of the CS7015 - Deep Learning course project taken by Professor Mitesh Khapra at IIT Madras.
In case of any queries, contact the developers at abhisheknaik22296@gmail.com or mohan.bhambhani28@gmail.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment