FTC Bring Up HuskyLens 20231127

From wikidb
Jump to: navigation, search

Unformatted Notes

Why

Several of this year's autonomous challenge require the recognition of a particular game piece called a team prop. Based on its location the robot must place a game element called a pixel at a particular location. The team has decided use an AI, Artificial Intelligence, camera developed by DF Robot locate the team prop. The HuskyLens camera contains the code to train and locate objects. This tutorial is contains the links to show the team how to set up the camera and write code to interface with it.

In the photo a student is testing her code to make the robot recognias the team prop, move forward and move left, right or straight depending on the location of the prop. The camera has not yet been attaching to the training platform the the team mentor is holding the camera.

IMG 3793ModS.jpg

Core Links

  • Specifying HuskyLens Algorithms
  • Using HuskyLens blocks
           HuskyLens.Block[] blocks = huskyLens.blocks();
           telemetry.addData("Block count", blocks.length);
           for (int i = 0; i < blocks.length; i++) {
               telemetry.addData("Block", blocks[i].toString());
               telemetry.addData("Position x ", blocks[i].x);
               telemetry.addData("Position y ", blocks[i].y);
           }

Reference Links for Future Lab Creation

  • Loading External Samples from John Delacy
    • LoadingSamplesOnbotJava.jpg