An autonomous RC car to compete the IronCar Challenge...
Patate42 won the first (and third) french IronCar race edition !!!
Patate42 won the IRONCAR Final 2018 !
* 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, ...
https://drive.google.com/drive/folders/1RkS-dGwbgnpD9yIdXqCuHKk6IJnPAIvv?usp=sharing
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
git clone https://github.com/EParisot/Patate.git
cd Patate/Data_processing/Training
pip install -r requirement.txt
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
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)
cd Patate/Data_processing/Training
jupyter notebook
cd Patate
python patateScript5_threaded.py [myModel.h5]
sudo raspi-config
-> boot option -> Desktop / CLI = Destop autologin