项目作者: BY571

项目描述 :
Self-Driving RC-Car
高级语言: Jupyter Notebook
项目地址: git://github.com/BY571/Autonomous-Robocar.git
创建时间: 2018-10-26T15:50:01Z
项目社区:https://github.com/BY571/Autonomous-Robocar

开源协议:

下载


Autonomous-Robocar

alt text

Schaltplan v1

alt text

alt text

Needed Libraries

  • @abhizcc/installing-latest-tensor-flow-and-keras-on-raspberry-pi-aac7dbf95f2">Tensorflow and Keras
  • sudo pip install adafruit-pca9685
  • sudo apt-get install xboxdrv
  • OpenCV

Enable in the Raspberry Pi Config:

  • I2C

Collecting training data

  • for collecting training data run sudo python complete_control.py

Training the network

alt text

  • training the CNN with the gathered data to predict steering angle and acceleration

Predictions and further visualizations

  • after successfully predicting steering angle and acceleration I decided to write the predictions directly on the image

alt text

  • further implemented an arrow that visualizes the direction the network predicted to steer. The length of the arrow as well symbolizes the intensity of acceleration.

alt text

Updates and Changes:

  • trained a smaller model for predictions because loading and calc with the previous model was too calculation costly.
    Therefore I trained another - smaller model- and increased the size from 331 MB to 1.4 MB. While the accuracy still is up to 92% compared to 97% for the bigger model! huge success in my eyes!

final video output:

Video

TODO:

  • add ultrasonic
  • optimize steering and acceleration adaption