robotpy_toolkit_7407.sensors.photonvision package

Submodules

robotpy_toolkit_7407.sensors.photonvision.photon_camera module

class robotpy_toolkit_7407.sensors.photonvision.photon_camera.PhotonCamera(name: str, poseRelativeToRobot: Pose3d, scale_constant: float = 1, height=None, pitch=None)

Bases: object

get_scaled_relative_pose()
hasTargets()
refresh()

robotpy_toolkit_7407.sensors.photonvision.photon_odometry module

IMPORTANT:
  • THIS DOES NOT WORK YET

  • From the perspective of the driver: - Positive X is forward - Positive Y is left - Positive theta is counterclockwise

robotpy_toolkit_7407.sensors.photonvision.photon_odometry.LoadFieldLayout(json_path: str)
class robotpy_toolkit_7407.sensors.photonvision.photon_odometry.PhotonOdometry(camera: PhotonCamera, field_layout: dict, gyro: Gyro, start_pose=Pose3d(Translation3d(x=0.000000, y=0.000000, z=0.000000), Rotation3d(x=0.000000, y=0.000000, z=0.000000)))

Bases: object

getRobotPose(target: PhotonTarget | None = None)
parse_field_layout(field_layout: dict)
refresh()

robotpy_toolkit_7407.sensors.photonvision.photon_target module

class robotpy_toolkit_7407.sensors.photonvision.photon_target.AprilTag(ID: int, pose: Pose3d)

Bases: AprilTag

class robotpy_toolkit_7407.sensors.photonvision.photon_target.PhotonTarget(target: PhotonTrackedTarget)

Bases: object

Module contents