Difference between revisions of "FTC Bring Up HuskyLens 20231127"

From wikidb
Jump to: navigation, search
(Why)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Unformatted Notes =
 
= 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.
 +
 +
* [https://www.dfrobot.com/product-1922.html DF Robot HuskyLens]
 +
 +
[[File:IMG_3793ModS.jpg  | 400px]]
 +
 +
== Core Links ==
 +
 +
* [https://github.com/edcepp/DeLaSalle/blob/main/SensorHuskyLensIEEE.java SensorHuskyLensIEEE.java] proof of concept code
 +
* [https://wiki.dfrobot.com/HUSKYLENS_V1.0_SKU_SEN0305_SEN0336#target_3 wiki] from DFRobot
 +
* [https://www.youtube.com/watch?v=G6qpi7iCw2Q Husky Lens to Control Hub Wiring Tutorial FTC]
 +
* [https://github.com/FIRST-Tech-Challenge/FtcRobotController/blob/master/FtcRobotController/src/main/java/org/firstinspires/ftc/robotcontroller/external/samples/SensorHuskyLens.java Husky API referenceds and example code]
 +
 +
* Specifying HuskyLens Algorithms
 +
** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Algorithm.html Algorithm]
 +
* Using HuskyLens blocks
 +
** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Block.html '''Block''']
 +
            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 ==
  
 
* [https://www.dfrobot.com/product-1922.html DF Robot] HuskyLens
 
* [https://www.dfrobot.com/product-1922.html DF Robot] HuskyLens
Line 27: Line 61:
 
** Block
 
** Block
 
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Block.html DF Robot HuskyLens Block]
 
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Block.html DF Robot HuskyLens Block]
** Husky
+
** '''Husky 9.01'''
 
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.html HuskyLens]
 
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.html HuskyLens]
 
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.html#%3Cinit%3E(com.qualcomm.robotcore.hardware.I2cDeviceSynch) i2c Device Synch]
 
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.html#%3Cinit%3E(com.qualcomm.robotcore.hardware.I2cDeviceSynch) i2c Device Synch]
 
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Algorithm.html Algorithm]
 
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Algorithm.html Algorithm]
 
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Arrow.html Arrow]
 
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Arrow.html Arrow]
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Block.html Block]
+
*** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Block.html '''Block''']
 
* Examples
 
* Examples
 
** [https://www.instructables.com/Vision-Line-Follower-Using-HuskyLens/  Line Folower]
 
** [https://www.instructables.com/Vision-Line-Follower-Using-HuskyLens/  Line Folower]
 +
 +
* Loading External Samples from John Delacy
 +
** [[File:LoadingSamplesOnbotJava.jpg  | 700px]]

Latest revision as of 12:41, 2 December 2023

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