Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
flatlands-0.1.8.tar.gz (26.0 kB) Copy SHA256 hash SHA256 Source None Apr 11, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page