Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

License

NotificationsYou must be signed in to change notification settings

ucbdrive/pyTORCS

Repository files navigation

Python interface forThe Open Racing Car Simulator (TORCS)

Configure graphics driver (Important!)

  1. Go to "Software & Updates" in Ubuntu 16.04 system settings, check "source code" in "Ubuntu Software" tab.
  2. DownloadNVIDIA-Linux-x86_64-415.25.run(for other versions, visitNVIDIA's official website).
  3. Blacklist Nouveau.
    sudo bash -c"echo blacklist nouveau > /etc/modprobe.d/blacklist-nouveau.conf"sudo bash -c"echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nouveau.conf"sudo update-initramfs -usudo reboot
  4. Install graphics driver with--no-opengl-files flag.
    sudo chmod a+x NVIDIA-Linux-x86_64-415.25.runsudo service lightdm stopsudo bash NVIDIA-Linux-x86_64-415.25.run --no-opengl-files

Install TORCS and PyTORCS

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

git clone https://github.com/ucbdrive/pyTORCScd pyTORCSbash install.sh

Usage of PyTORCS

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

Have fun!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp