Donkeycar

建立小规模自动驾驶汽车的开放源码硬件和软件平台。「Open source hardware and software platform to build a small scale self driving car.」

Github星跟踪图

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 hobbyists and students with a focus on allowing fast experimentation and easy
community contributions.

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 controller.
  • Leverage community contributed driving data.
  • Use existing CAD models for design upgrades.

Get 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.

import time
from donkeycar import Vehicle
from donkeycar.parts.cv import CvCam
from donkeycar.parts.tub_v2 import TubWriter
V = Vehicle()

IMAGE_W = 160
IMAGE_H = 120
IMAGE_DEPTH = 3

#Add a camera part
cam = CvCam(image_w=IMAGE_W, image_h=IMAGE_H, image_d=IMAGE_DEPTH)
V.add(cam, outputs=['image'], threaded=True)

#warmup camera
while cam.run() is None:
    time.sleep(1)

#add tub part to record images
tub = TubWriter(path='./dat', inputs=['image'], types=['image_array'])
V.add(tub, inputs=['image'], outputs=['num_records'])

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

See home page, docs
or join the Discord server to learn more.

主要指标

概览
名称与所有者autorope/donkeycar
主编程语言Python
编程语言Python (语言数: 9)
平台
许可证MIT License
所有者活动
创建于2016-12-10 06:35:09
推送于2024-09-15 20:35:00
最后一次提交2021-06-10 21:36:17
发布数48
最新版本名称5.1.0 (发布于 )
第一版名称V0.1 (发布于 )
用户参与
星数3.2k
关注者数157
派生数1.3k
提交数2.2k
已启用问题?
问题数462
打开的问题数93
拉请求数530
打开的拉请求数28
关闭的拉请求数183
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?