Record Class CameraInfo
java.lang.Object
java.lang.Record
xbot.common.injection.electrical_contract.CameraInfo
public record CameraInfo(String networkTablesName, String friendlyName, Transform3d position, EnumSet<CameraCapabilities> capabilities, boolean useForPoseEstimates)
extends Record
This class is used to provide information about the cameras on the robot.
-
Constructor Summary
ConstructorsConstructorDescriptionCameraInfo(String networkTablesName, String friendlyName, Transform3d position, EnumSet<CameraCapabilities> capabilities) CameraInfo(String networkTablesName, String friendlyName, Transform3d position, EnumSet<CameraCapabilities> capabilities, boolean useForPoseEstimates) Creates an instance of aCameraInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefriendlyNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenetworkTablesNamerecord component.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseForPoseEstimatesrecord component.
-
Constructor Details
-
CameraInfo
public CameraInfo(String networkTablesName, String friendlyName, Transform3d position, EnumSet<CameraCapabilities> capabilities) -
CameraInfo
public CameraInfo(String networkTablesName, String friendlyName, Transform3d position, EnumSet<CameraCapabilities> capabilities, boolean useForPoseEstimates) Creates an instance of aCameraInforecord class.- Parameters:
networkTablesName- the value for thenetworkTablesNamerecord componentfriendlyName- the value for thefriendlyNamerecord componentposition- the value for thepositionrecord componentcapabilities- the value for thecapabilitiesrecord componentuseForPoseEstimates- the value for theuseForPoseEstimatesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
networkTablesName
Returns the value of thenetworkTablesNamerecord component.- Returns:
- the value of the
networkTablesNamerecord component
-
friendlyName
Returns the value of thefriendlyNamerecord component.- Returns:
- the value of the
friendlyNamerecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
useForPoseEstimates
public boolean useForPoseEstimates()Returns the value of theuseForPoseEstimatesrecord component.- Returns:
- the value of the
useForPoseEstimatesrecord component
-