Skip to content

xinleipan/py_TORCS

Repository files navigation

Important Updates

Please refer to pyTORCS for more up-to-date information about using the environment.

Installation

Note that in order to install torcs on your computer system, you may need to install CUDA driver without opengl libs. The gym-TORCS environment has only been tested on Ubuntu 16.04 environment, and currently it does not support windows or macOSX environment.

cd py_TORCS/
sudo sh install.sh
python -m pip install -e . || python setup.py install

Usage

import gym
import py_TORCS

env = gym.make('TORCS-v0')
obs, info = env.reset()
obs, reward, terminal, info = env.step(np.array([1.0, 0.0]))

Have fun!

About

Open Source OpenAI gym compatible TORCS Driving Environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •