donkey createcar command sets up a complete car project with all necessary files and folder structure. This is typically the first command you’ll run when starting a new Donkeycar project.
Usage
Options
string
default:"~/mycar"
Path where the car folder will be created. If not specified, creates
~/mycar.string
default:"complete"
Name of the car template to use. The template determines which application files are copied.
boolean
default:"false"
Replace existing files if they already exist. Without this flag, existing files will not be modified.
Templates
The--template option determines which application template is used. Common templates include:
- complete (default): Full-featured car application with all standard components
- Other templates may be available depending on your Donkeycar installation
donkeycar/templates/ directory and include:
- Application file (
manage.py) - Configuration file (
config.py) - Training script (
train.py) - Calibration script (
calibrate.py)
What Gets Created
When you runcreatecar, the following structure is created:
Key Files
- manage.py: The main application script for running your car. Execute this to start driving.
- config.py: Default configuration with all available settings
- myconfig.py: Your personal configuration overrides. Edit this file to customize your car without modifying the default config.
- train.py: Script for training models (alternative to using
donkey train) - calibrate.py: Script for calibrating actuators (alternative to using
donkey calibrate)
Examples
Create a car in the default location
~/mycar.
Create a car with a custom path
Create a car with a specific template
Overwrite existing car files
Output Example
Next Steps
After creating your car:- Configure your car: Edit
myconfig.pyto match your hardware setup - Calibrate actuators: Use
donkey calibrateto calibrate your steering and throttle - Start driving: Run
python manage.py driveto start the car application - Collect data: Drive your car manually to collect training data
- Train a model: Use
donkey trainto train an autopilot model
Updating an Existing Car
To update an existing car to the latest templates:myconfig.py.