Giter Club home page Giter Club logo

donkeycar-console's Introduction

Donkeycar Console

This is a management software of the donkey car software that provides rest-based API to support Donkey Car mobile app. This software currenly supports RPI 4B only. We welcome any contribution to make it work with Jetson Nano / Xavier NX.

How to deploy this app

On Rpi4

  1. clone the repo under ~

  2. Go into that folder

  3. Create a new virtual environment

python3 -m virtualenv -p python3 ~/env_dc --system-site-packages
source ~/env_dc/bin/activate
  1. Install dependencies
pip install -r requirements/production.txt
  1. Test the installation by running the server directly
python manage.py migrate
python manage.py runserver 0.0.0.0:8000
  1. Add the app as systemd service
sudo ln -s gunicorn.service /etc/systemd/system/gunicorn.service
  1. Edit myconfig.py in your carapp

Add this parameter to myconfig.py (likely under ~/mycar)

AUTO_CREATE_NEW_TUB=True

Developer Guide

Setup environment

Pls don't use m$ windows

WSL2

wget get https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh
./Anaconda*-*-Linux-x86_64.sh
q

Setup conda

conda create -n dconsole python=3.7
conda activate dconsole
pip install -r requirements/production.txt

Install donkeycar

git clone [email protected]:robocarstore/donkeycar.git
cd donkeycar
pip install -e .[pc]
cd ../

Checkout

This project use git LFS to manage testing data. If you don't want to download the testing data(which is kind of big), you can skip them by doing

GIT_LFS_SKIP_SMUDGE=1 git clone [email protected]:robocarstore/donkeycar-console.git

Modify .env file(s)

Modify .env_pc_v4 and .env_pc_v3 files if neccessary

Run server

python manage.py runserver 0.0.0.0:8000
  1. Change .env_pc according to your PC.

Run test case

pytest -s -v dkconsole/data/test_service.py -k test_xxx

pytest -s -v dkconsole/train/test_integration.py -k test_submit_job --runslow
pytest -s -v dkconsole/train/test_integration.py -k test_refresh_jobs --runslow

Changes

2/11/2020

  • return device id as "docker" if running in docker mode

Commercial Use

If you intend to use this project for making money, you must obtain our consent before you do so. Contact us at [email protected]

donkeycar-console's People

Contributors

eugene-lam avatar sctse999 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.