Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/EParisot/Patate
An autonomous RC car
https://github.com/EParisot/Patate
Last synced: 3 months ago
JSON representation
An autonomous RC car
- Host: GitHub
- URL: https://github.com/EParisot/Patate
- Owner: EParisot
- Created: 2018-01-12T15:36:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-25T00:11:32.000Z (over 1 year ago)
- Last Synced: 2024-06-22T23:52:05.229Z (6 months ago)
- Language: Jupyter Notebook
- Size: 431 MB
- Stars: 29
- Watchers: 5
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Patate42
An autonomous RC car to compete the IronCar Challenge...![](IMG_20180210_150832.jpg)
Patate42 won the first (and third) french IronCar race edition !!!
## UPDATE !!
Patate42 won the IRONCAR Final 2018 !
![](IMG_20181124_202851.jpg)
[![Watch the video](IMG_20181124_202857.jpg)](https://drive.google.com/open?id=1keM8-AhfdoY7h9ngDyNgho8ZZcgjz46S)
# Hardware Config :
* Tamyia TT-02 4WD RC car + larger wheels
* RaspberryPi 3B + battery pack (we use a Kuman)
* Rpi camera (depends on your taste)
* Adafruit PWM Hat
* Jumper cables, ...# Dataset :
https://drive.google.com/drive/folders/1RkS-dGwbgnpD9yIdXqCuHKk6IJnPAIvv?usp=sharing
# Installation :
## on Raspberry :
```
git clone https://github.com/EParisot/Patate.git
cd Patate
pip install -r requirement.txt
```
Warning : due to a security risk, tensorflow dependency have been updated from 1.1.0 to 1.9.0
Feel free to roll it back in case of problem (or just to avoid warnings...)To use a Xbox gamepad :
```
sudo apt-get install xboxdrv
```## on Computer :
```
git clone https://github.com/EParisot/Patate.git
cd Patate/Data_processing/Training
pip install -r requirement.txt
```# Usage :
## Collect Data (manual drive + take images/labels) (RPi) :
With Xbox Gamepad
```
cd Data_processing
sudo python Auto_datamining_pad.py 0.1
```
to take one picture every 0.1 sec (to just control without taking pictures, don't specify any value)If you don't have Xbox Gamepad, you can use the computer keyboard
(opencv needed, to install opencv on your RPi : https://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/)```
cd Data_processing
python Auto_datamining_key.py 0.1
```Or you can use the built-in car controler and labelise by hand later:
(opencv needed)
```
cd Data_processing
python Manual_datamining.py
```## Data Augmentation / Balancing (computer):
All pictures goes to Patate/Pics/Auto or Patate/Pics/Manual (create folder(s) if needed)
Augmentation scrits can be found in Patate/Data_processing/Augmentation
usages:
```
python 5to3.py [folder] -> turn 2speeds/5directions labels into 2speeds/3directions
python b_w.py [folder] -> turn all pictures black and white
python rename.py [folder] -> rename pictures direction label with the folders name (ex: rename '0_4_4565432345.jpg' to '0_0_4565432345.jpg' in '/0' folder)
python tags.py [folder] -> retag discrete to categorical labels
python reverse.py [folder] -> apply a mirror effect on pics by value (comment/uncomment) and rename to opposite value (and add a 'r' in filename)
```## Train model (Computer) :
```
cd Patate/Data_processing/Training
jupyter notebook
```## AutoPilot (RPi) :
```
cd Patate
python patateScript5_threaded.py [myModel.h5]
```## Rpi CLI / Desktop
```
sudo raspi-config
```
-> boot option -> Desktop / CLI = Destop autologin