Skip to content

a rapid, powerful, easy-to-use and open-source vision framework for FRC

License

Notifications You must be signed in to change notification settings

Shenzhen-Robotics-Alliance/FRC-Phantom-Vision

Repository files navigation

Phantom Vision

Yet another powerful and easy-to-use computer vision solution for FRC

Team 5516 "Iron Maple" proudly presents

Introduction

Are Limelights too costly? Are coprocessors too complicated? Introducing Phantom Vision: an affordable, powerful, and open-source computer vision solution for FRC. We aim to make computer vision a zero-barrier technology for beginner teams.

Features

  • Real-Time vision navigation with AprilTags @120fps(max) with global shutter camera alt text

  • AI GamePiece Detection with pretrained dataset @30fps

  • Pygame Dashboard

Installation Guide

  1. Purchase Parts:

  2. Preparations

    • Download our modified Jetpack System Image here
    • Install Pygame, which is used for our DashBoard
    • Download the CAD File of 3D-Printed Camera
  3. Install:

    • The jetson Nano comes with a DC-Power-Cable, cut the wire and connect to the VRM.
    • Connect the Jetson Nano to the robot-radio via ethernet
    • Connect the April Tag Camera to the Jetson Nano
    • Stick the Camera into its shell using glue, and secure the shell on a horizontal surface. If you do not use our version of camera shell, you would have to calibrate the camera using server/calibration.py
    • Measure the height of camera in reference to the ground.
  4. Run:

    • WARNING! Before you power on, if you are using a custom Voltage Regular Module, unplug Jetson and Check that you have set the voltage to 5.2V~5.5V
    • Power on the robot. The system image is already well-configured such that Phantom Vision will start automatically on boot.
    • Connect to the robot in driverstation and open a browser, type "onbot-jetson.local:5800" and you should be able to see the camera live stream"
    • run dashboard/client.py, you should be able to see the robot's position on field

API

The API reference can be found in the java client

Example Codes

This System has so far been implemented in two robot's control system. Team 5516 Competition Robot "Phantom Ⅰ" and Team 6706 Competition Robot "Phantom Ⅱ". The two robots share the same code.

Contribution

Phantom Vision is a public project, and we welcome anyone from the FIRST Community to contribute. To see what we are currently working on, check our TODOs list.

About

a rapid, powerful, easy-to-use and open-source vision framework for FRC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published