Detect any Team Shipping Element for the FTC 2021-2022 Freight Frenzy season

Overview

ShippingElementDetector

Idea/algorithm created and implemented by Allen Wu, code provided by FTC 18225 High Definition

NOTE: EXTRA CHANGES WILL NEED TO BE MADE TO ACCOMODATE A RED OR BLUE TEAM SHIPPING ELEMENT. FOR EASIEST USE OF THIS, PLEASE CONSIDER CHANGING THE COLOR OF YOUR TEAM SHIPPING ELEMENT IF IT HAS RED OR BLUE ON IT.

Follow the following steps to use this in your own code:

  1. Copy the Detector.java and DetectorTest.java class into your code base
  2. Make sure your robot is positioned as it would in the start of autonomous
  3. Run the DetectorTest.java op-mode and press 'A' to capture a new image
  4. Through command line/terminal, type in the following command: adb pull /sdcard/FIRST/data/webcam-frame-0.jpg ./
  5. While your camera is off, adjust and press 'A' again
  6. Find the image boundaries (estimate) to make only two of the markers visible
  7. Use these image boundaries in your autonomous op-mode
  8. Repeat Steps (3) to (7) again for each autonomous program

Make sure you change WEBCAM_CONFIG_NAME inside Detector.java to match your webcam name in the configuration.

You might also like...

Programación de Servicios y Procesos - 01 Programación Multiproceso. 2DAM. Curso 2021-2022

Programación de Servicios y Procesos - 01 Programación Multiproceso. 2DAM. Curso 2021-2022

Programación de Servicios y Procesos - 01 Programación Multiproceso Tema 01 Programación Multiproceso. Curso 2021/2022. Contenidos Concurrencia y Para

Dec 27, 2022

Concurrent Programming - 2021/2022 - Fall - LI51D - LI51N

s2122i-li51d-li51n Concurrent Programming - 2021/2022 - Fall - LI51D - LI51N See docs for documentation resources. See jvm for JVM-based code examples

Apr 8, 2022

Programación de Servicios y Procesos - 03 Programación de comunicaciones en red. 2DAM. Curso 2021-2022

Programación de Servicios y Procesos - 03 Programación de comunicaciones en red. 2DAM. Curso 2021-2022

Programación de Servicios y Procesos - 03 Programación de comunicaciones en red Tema 03. Programación de comunicaciones en red. Curso 2021/2022. Conte

Dec 27, 2022

Entornos de Desarrollo - 05 Clean Code y TDD: Pruebas de Software. 1DAM. Curso 2021-2022.

Entornos de Desarrollo - 05 Clean Code y TDD: Pruebas de Software. 1DAM. Curso 2021-2022.

Entornos de Desarrollo - 04 Clean Code y TDD: Pruebas de Software Tema 05. Clean Code y TDD: Pruebas de Software. Curso 2021/2022. Contenidos Introduc

Nov 3, 2022

Programación - 03 Aplicación de Estructuras de Almacenamiento. 1DAM. Ejercicios realizados por el alumnado. Curso 2021-2022

Programación - 03 Aplicación de Estructuras de Almacenamiento. 1DAM. Ejercicios realizados por el alumnado. Curso 2021-2022

Programacion-03-Ejercicios-2021-2022 Programación - 03 Aplicación de Estructuras de Almacenamiento. 1DAM. Ejercicios realizados por el alumnado. Curso

Dec 27, 2022

Programación - 04 Programación Orientada a Objetos. 1DAM. Curso 2021-2022

Programación - 04 Programación Orientada a Objetos. 1DAM. Curso 2021-2022

Programación - 04 Programación Orientada a Objetos Tema 04 Programación Orientada a Objetos. 1DAM. Curso 2021/2022. Contenidos Programación Orientada

Dec 27, 2022

Programación - 05 Programación Avanzada Orientada a Objetos. 1DAM. Ejercicios realizados por el alumnado. Curso 2021-2022.

Programación - 05 Programación Avanzada Orientada a Objetos. 1DAM. Ejercicios realizados por el alumnado. Curso 2021-2022.

Programacion-05-Ejercicios-2021-2022 Programación - 05 Programación Avanzada Orientada a Objetos. 1DAM. Ejercicios realizados por el alumnado. Curso 2

Dec 27, 2022

Programación - Ejemplo de Colecciones y Genéricos con TDAs. 1DAM. Curso 2021-2022.

Programación - Ejemplo de Colecciones y Genéricos con TDAs. 1DAM. Curso 2021-2022.

Programación - Tipo de Datos Abstractos, Colecciones y Genéricos Tema 06 Tipo de Datos Abstracto. 1DAM. Curso 2021/2022. Programación - Tipo de Datos

Sep 15, 2022

Programación - 06 Tipos de Datos Asbtractos. 1DAM. Ejercicios realizados por el alumnado. Curso 2021-2022.

Programación - 06 Tipos de Datos Asbtractos. 1DAM. Ejercicios realizados por el alumnado. Curso 2021-2022.

Programacion-06-Ejercicios-2021-2022 Programación - 06 Tipos de Datos Abstractos. 1DAM. Ejercicios realizados por el alumnado. Curso 2021-2022 ¿Cómo C

Dec 27, 2022
Owner
High Definition
FIRST Tech Challenge Team #18225
High Definition
Team 5468's 2022 FRC robot code. This code is written in Java and is based off of WPILib's Java control system and utilizes a command based system

FRC 2022 Team 5468's 2022 FRC robot code. This code is written in Java and is based off of WPILib's Java control system and utilizes a command based s

null 4 Oct 4, 2022
基于SpringBoot,Spring Security,JWT,Vue & Element 的前后端分离权限管理系统

平台简介 芋道,一套全部开源的企业级的快速开发平台,毫无保留给个人及企业免费使用。 有任何问题,或者想要的功能,可以在 Issues 中提给艿艿。 前端采用 vue-element-admin。 后端采用 Spring Boot、MySQL、Redis。 权限认证使用 Spring Security

芋道源码 8.2k Jan 1, 2023
An example FTC project using Road Runner.

Road Runner Quickstart An example FTC project using Road Runner. Note: Road Runner is in alpha and many of its APIs are incubating. Installation For m

McCaskey Robotics 1 Mar 25, 2022
FEM for Students is a program of modeling and structural analysis by Finite Element Method

FEM For Students FEM for Students is a software for modeling and structural analysis by Finite Element Method. This software was developed by me in my

André de Sousa 4 Jun 23, 2022
This template makes it easy to organize FTC code and allows for the Autonomous and TeleOp periods to share code.

FTC Code Organizer This template created by team 19458 Equilibrium.exe makes it easy to keep your code organized and allows the Autonomous and TeleOp

FTC 19458 Equilibrium.exe 5 Nov 10, 2022
A proof-of-concept Android application to detect and defeat some of the Cellebrite UFED forensic toolkit extraction techniques.

LockUp An Android-based Cellebrite UFED self-defense application LockUp is an Android application that will monitor the device for signs for attempts

levlesec 300 Dec 4, 2022
Presti 5 Nov 19, 2022
QuickShop is a shop plugin that allows players to easily sell/buy any items from a chest without any commands.

QuickShop is a shop plugin that allows players to easily sell/buy any items from a chest without any commands. In fact, none of the commands that QuickShop provides are ever needed by a player.

Ghost_chu 24 Dec 30, 2022
Hacktoberfest 2022 : Repository for open-source contributions towards Hacktoberfest 2022

Hacktoberfest 2022 OPEN Pull Request - FREE T-SHIRT's ?? DON'T COMMIT ~ PR REPO HAS BEEN EXCULDED ( DON'T KNOW THE EXACT REASON ~ RUMORS ARE THAT THIS

Saurabh Kumar 112 Jan 9, 2023
Test case to check if the Log4Shell/CVE-2021-44228 hotfix will raise any unexpected exceptions

Log4Shell Hotfix Side Effect Test Case I wanted to know if any ClassNotFoundException or similar unexpected exception is raised when one applies the C

Malte S. Stretz 3 Nov 9, 2022