Class VisionTargetSim

java.lang.Object
org.photonvision.simulation.VisionTargetSim

public class VisionTargetSim extends Object
Describes a vision target located somewhere on the field that your vision system can detect.
  • Field Details

    • fiducialID

      public final int fiducialID
  • Constructor Details

    • VisionTargetSim

      public VisionTargetSim(edu.wpi.first.math.geometry.Pose3d pose, TargetModel model)
      Describes a vision target located somewhere on the field that your vision system can detect.
      Parameters:
      pose - Pose3d of the tag in field-relative coordinates
      model - TargetModel which describes the shape of the target
    • VisionTargetSim

      public VisionTargetSim(edu.wpi.first.math.geometry.Pose3d pose, TargetModel model, int id)
      Describes a fiducial tag located somewhere on the field that your vision system can detect.
      Parameters:
      pose - Pose3d of the tag in field-relative coordinates
      model - TargetModel which describes the shape of the target(tag)
      id - The ID of this fiducial tag
  • Method Details

    • setPose

      public void setPose(edu.wpi.first.math.geometry.Pose3d pose)
    • setModel

      public void setModel(TargetModel model)
    • getPose

      public edu.wpi.first.math.geometry.Pose3d getPose()
    • getModel

      public TargetModel getModel()
    • getFieldVertices

      public List<edu.wpi.first.math.geometry.Translation3d> getFieldVertices()
      This target's vertices offset from its field pose.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object