Giter Site home page Giter Site logo

autonomous-rc-car's Introduction

Self-Driving RC-Car project

ROS Software for performing autonomous driving using monocular vision on an RC car.
This package was designed to run on an Nvidia Jetson TX2 using a PS4 controller. It provides two driving mode:

  • manual: The default mode. In this mode, you can drive the RC Car manually using the paired PS4 controller. You can also recording driving sequences to assemble new training data. Pressing L1, you can retrain a model from scratch.
  • autonomous: The self-driving mode. This mode enables the trained residual network to perform steering and throttle inference from input images.

RC Car PS4 Controls


Getting started:

Software

To install the ros package run:

cd $CATKIN_WS/src/  
git clone https://github.com/germain-hug/Autonomous-RC-Car.git  
cd .. && catkin_make

To install dependencies run:

pip install -r requirements.txt

You will also need to have OpenCV installed.

Hardware

Here is a non-exhaustive list of the hardware used in this project:

Hardware assembly should be fairly simple, and additional ressources can be found here

Running the software

To launch the software, run:

roslaunch rccar.launch

Node description

  • mode_management.py: Mode manager, activates manual and self-driving modes through /mode and allows for model retraining.
  • manual_driver.py: Publishes PS4 manual commands on /cmd, enables data capture mode.
  • self_driver.py: Streams from camera, and publishes inferred throttle and steering commands on /cmd
  • actuator.py: Receives throttle and steering commands through the /cmd topic, pre-processes them transmits them to the servo-controller.

autonomous-rc-car's People

Watchers

 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.