Skip to main content

Flatlands simple on-track driving simulator with physics

Project description

Flatlands Driving Simulator for OpenAI Gym

Ascent Robotics

Flatlands is a simple gym compatible simulator for a car driving around a track. It is tested with Python3, and Windows/ Ubuntu.

  • To use it, clone this repo to your computer with:
git clone git@github.com:ascentai/flatlands-gym.git && cd flatlands-gym
  • Then install the dependencies with:
pip install -e .

Flatlands uses pygame for visualization, so if this doesn't work, you may need to install the SDL library on your system as well.

  • To create a gym environment you need to import gym and then import flatlands inside python
import gym
import flatlands

env = gym.make("Flatlands-v0")

For a more in depth example, see demo_flatlands.py which drives that car based on the steering angle compared to upcoming points.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flatlands-0.1.8.tar.gz (26.0 kB view details)

Uploaded Source

File details

Details for the file flatlands-0.1.8.tar.gz.

File metadata

  • Download URL: flatlands-0.1.8.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for flatlands-0.1.8.tar.gz
Algorithm Hash digest
SHA256 d58f2d6b62eb6b87ddf9832efa94ec0b10378b6373ef1037e28629a2ad122543
MD5 4f5319310078fe3b90a35bc9d357c8ea
BLAKE2b-256 387ac8dd4c8b4dfbe96a4efae235b2a9665cf17b499091cea439c63ef946562a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page