Skip to main content

Self driving library for python.

Project description

donkeycar: a python self driving library

Build Status CodeCov PyPI version Py versions

Donkeycar is minimalist and modular self driving library for Python. It is developed for hobbiests and students with a focus on allowing fast experimentation and easy community contributions.

Quick Links

donkeycar

Use Donkey if you want to:

  • Make an RC car drive its self.
  • Compete in self driving races like DIY Robocars
  • Experiment with autopilots, mapping computer vision and neural networks.
  • Log sensor data. (images, user inputs, sensor readings)
  • Drive your car via a web or game controler.
  • Leverage community contributed driving data.
  • Use existing harsupport supportdware CAD designs for upgrades.

Getting driving.

After building a Donkey2 you can turn on your car and go to http://localhost:8887 to drive.

Modify your cars behavior.

The donkey car is controlled by running a sequence of events

#Define a vehicle to take and record pictures 10 times per second.

from donkeycar import Vehicle
from donkeycar.parts.camera import PiCamera
from donkeycar.parts.datastore import Tub


V = Vehicle()

#add a camera part
cam = PiCamera()
V.add(cam, outputs=['image'], threaded=True)

#add tub part to record images
tub = Tub(path='~/mycar/get_started',
          inputs=['image'],
          types=['image_array'])
V.add(tub, inputs=['image'])

#start the drive loop at 10 Hz
V.start(rate_hz=10)

See home page, docs or join the Slack channel to learn more.

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

donkeycar-2.5.0a4.tar.gz (255.9 kB view details)

Uploaded Source

File details

Details for the file donkeycar-2.5.0a4.tar.gz.

File metadata

  • Download URL: donkeycar-2.5.0a4.tar.gz
  • Upload date:
  • Size: 255.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for donkeycar-2.5.0a4.tar.gz
Algorithm Hash digest
SHA256 62be460b81a703bec5ac8abae7c60658be8270fea288d00b4312dc9ba03eca02
MD5 010f96ee1c4f2c34ea78ace40f77a507
BLAKE2b-256 422c0797298af4f06e4717de6a3a2029aeafdec5f605fabbe7f679b2bda24344

See more details on using hashes here.

Supported by

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