GithubHelp home page GithubHelp logo

guru-narayana / lane_follower_dnn Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 126 KB

lane follower made from scratch with raspberry pi and arduino

License: MIT License

CMake 16.80% Python 72.25% Jupyter Notebook 9.35% C++ 1.60%

lane_follower_dnn's Introduction

Lane_follower_DNN

lane follower made from scratch with raspberry pi and arduino, uses alex net for classification of the images. rasperry folder corresponds to the package that you need install in the ros packages of rasperry pi and same goes for PC and arduino , here raspi uses serial communication to send velocity command to the arduino.

NODES

1.For Collecting The Data

alt text

As shown in the graph the nodes that u need to run to collect the traning data is collect.py in pc package which subcribes the /turtle1/cmd_vel topic and /rgb/image to get the information about the velocity u gave at that perticular image and u need to use teleop keyboard node in turtle sim to control the robot while training.

2.For Training & Testing In order to train the i used the alexnetv2 for which code is there in the PC folderand you can choose the model depending on the complexity of the images you and also you might have to use transfer learning to fit data into a model which wasnt desgined for that.in terms of GPU i recommed to use googlecolab(its pretty fast).

alt text In the testing phase u need to load the saved model (change the path in the load.py) and use main .py node to test the model it publishes linear and angular velocity based on float output of the model, if u have no way of controlling with pwm (in the case of controlling motor with raspberry directly) u can use threshhold of the probablity to determine the direction

Publishing the images RaspberryPi

I faced many issues while installing cv_bridge in RaspberryPi model3b so i had to use the source code of the cv_bridge image to images_msg conversin and published the image u can use the same code for publishing the images.

lane_follower_dnn's People

Contributors

guru-narayana avatar

Watchers

James Cloos avatar  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.