Giter Club home page Giter Club logo

drcsimulator's Introduction

USRC's Drone Racing Competition Simulator

Welcome to USRC's DRC simulator! Here, you can:

  • Practice your Python coding skills
  • Learn Computer Vision
  • Create a self-driving car.

If you're a developer looking to improve this repository, please look at developers.md in this same directory.

Getting started

To get started with the simulator, you need to do some things:

  1. Have python (python 3, to be precise) installed. For installation instructions, go to Python's download site.
  2. Install all the dependencies below:
pip3 install opencv-python
pip3 install websockets
  1. Copy our repository to a safe place, using git clone https://github.com/usydroboticsclub/DRCSimulator.git.
  2. That's it! You're ready to go.

Running the simulator

  1. Open a terminal at the directory and type in python3 simulatorServer.py.
  2. In a web browser, go to http://localhost:8000/index.html. You should see a car on the top panel of the screen, and a picture showing what the car sees on the bottom panel.
  3. In a separate terminal, run python3 sampleCar.py. You should see the following things happen:
    • The car in your browser window starts moving in a circle.
    • A window pops up, showing the car's point of view.

Coding your own car

  1. Copy sampleCar.py into a safe place.
  2. Open sampleCar (copy).py in Visual Studio Code your preferred IDE / text editor.
  3. Read, edit, run when ready. And show us what you can do! Send videos, emails and code to [email protected].

A few more pointers

  • You can find USYD's successful 2019 entry here: https://github.com/clucini/SelfZoomingCar. It's not particularly well documented, but there may be some lessons to be learnt in terms of modular architecture. (May.)
  • You can also try to drive the car yourself using the WSAD keys at http://localhost:8000/index_keydrive.html
  • If the code is running way too slowly, you can try Josiah Tan's Processing version here: https://github.com/Josiah-tan/DRCsimulator_test

PEP hours

If you would like to claim PEP hours for this activity, please email us with some proof of work (a link to your repository or a video); and we'll be happy to back up your PEP claim and perhaps get it fast-tracked.

Some caveats

This simulator is not designed to be competition-grade. You can mess around with the parameters a lot; you can make the car very very fast or make it fly by editing the source code as you want. So, um, enjoy? Just don't push it to prod.

Have fun!

drcsimulator's People

Contributors

acenturyandabit 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.