Class POI

java.lang.Object
frc.robot.helpers.POI

public final class POI extends Object
Point of Interest on the field Contains a pose, alliance designation, and a descriptive tag
  • Constructor Summary

    Constructors
    Constructor
    Description
    POI(edu.wpi.first.math.geometry.Pose2d pose, String tag, String addr)
    Creates a new POI.
  • Method Summary

    Modifier and Type
    Method
    Description
    edu.wpi.first.math.geometry.Pose2d
    get(edu.wpi.first.wpilibj.DriverStation.Alliance alliance)
    Gets the pose of the POI for the given alliance.
    Gets the addr for the POI
    Gets the descriptive tag for this POI

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • POI

      public POI(edu.wpi.first.math.geometry.Pose2d pose, String tag, String addr)
      Creates a new POI.
      Parameters:
      pose - The pose of the POI.
      tag - The tag of the POI.
      addr - The address of the POI.
  • Method Details

    • get

      public edu.wpi.first.math.geometry.Pose2d get(edu.wpi.first.wpilibj.DriverStation.Alliance alliance)
      Gets the pose of the POI for the given alliance.
      Parameters:
      alliance - The alliance to get the pose for.
      Returns:
      The pose of the POI for the given alliance.
    • getTag

      public String getTag()
      Gets the descriptive tag for this POI
      Returns:
      The tag string
    • getAddr

      public String getAddr()
      Gets the addr for the POI
      Returns:
      The addr string