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(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(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(Pose3d pose)
    • setModel

      public void setModel(TargetModel model)
    • getPose

      public Pose3d getPose()
    • getModel

      public TargetModel getModel()
    • getFieldVertices

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

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