Giter Club home page Giter Club logo

frc-2016-kinect-cv's Introduction

FRC 2016 Kinect Computer Vision

This program is designed to find a vision target, move and orient the robot to set up a trajectory, and then launch the projectile at the vision target.

Hardware Setup:

An Xbox 360 Kinect is attached to a Nvidia Jetson TK1 devkit (which runs this software), both of which are mounted onto the robot. The Jetson is connected to the NI RoboRIO (robot's controller) through a serial port, which is used to send targetting information.

The Vision Target

As of February 2020, this website contains a detailed description of the vision targets. https://docs.wpilib.org/en/latest/docs/software/vision-processing/introduction/target-info-and-retroreflection.html

How Does it Work?

The kinect has three video outputs: RGB, IR, and depth. The software leverages all three to filter out extraneous data as effectively as possible. The Kinect has a green LED light ring around the RGB camera, so the RGB processor provides a mask that excludes any non-green regions in the image. Unfortunately, the same green LED ring is provided to all teams, which means that stray reflections are likely to occur during competition.

After some experimentation, I discovered that the IR laser projector reflected very well off of the retroreflective tape, which allowed the IR camera to perform similarly to the RGB camera. The IR processor provides a mask that excludes any areas that do not reflect the IR light. In conjunction with the RGB mask, this is very effective at discerning the target amongst all the noise.

Finally, the depth output is utilized to determine the target's distance, and provide input to a PID loop that maneuvers the robot to the correct distance from the target.

Attributions:

Special thanks go to Atul R. for developing an implementation of the C++ imshow function in Java: https://github.com/master-atul/ImShow-Java-OpenCV

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.