Package org.photonvision.simulation
Class VisionTargetSim
java.lang.Object
org.photonvision.simulation.VisionTargetSim
Describes a vision target located somewhere on the field that your vision system can detect.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVisionTargetSim(Pose3d pose, TargetModel model) Describes a vision target located somewhere on the field that your vision system can detect.VisionTargetSim(Pose3d pose, TargetModel model, int id) Describes a fiducial tag located somewhere on the field that your vision system can detect. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis target's vertices offset from its field pose.getModel()Returns the model describing this target's geometry.getPose()Returns the pose of this target on the field.voidsetModel(TargetModel model) Sets the model describing this target's geometry.voidSets the pose of this target on the field.
-
Field Details
-
fiducialID
-
-
Constructor Details
-
VisionTargetSim
Describes a vision target located somewhere on the field that your vision system can detect.- Parameters:
pose- Pose3d of the tag in field-relative coordinatesmodel- TargetModel which describes the geometry of the target
-
VisionTargetSim
Describes a fiducial tag located somewhere on the field that your vision system can detect.- Parameters:
pose- Pose3d of the tag in field-relative coordinatesmodel- TargetModel which describes the geometry of the target(tag)id- The ID of this fiducial tag
-
-
Method Details
-
setPose
Sets the pose of this target on the field.- Parameters:
pose- The pose in field-relative coordinates
-
setModel
Sets the model describing this target's geometry.- Parameters:
model- The model of the target
-
getPose
Returns the pose of this target on the field.- Returns:
- The pose in field-relative coordinates
-
getModel
Returns the model describing this target's geometry.- Returns:
- The model of the target
-
getFieldVertices
This target's vertices offset from its field pose. -
equals
-