Skip to content

Commit

Permalink
Rename variable to avoid mypy confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
james-ward committed Nov 13, 2024
1 parent 082f785 commit d4f853b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions photon-lib/py/photonlibpy/simulation/visionSystemSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def __init__(self, visionSystemName: str):
self.bufferLength: seconds = 1.5

self.camSimMap: typing.Dict[str, PhotonCameraSim] = {}
self.camTrfMap: typing.Dict[PhotonCameraSim, TimeInterpolatablePose3dBuffer] = (
{}
)
self.camTrfMap: typing.Dict[
PhotonCameraSim, TimeInterpolatablePose3dBuffer
] = {}
self.robotPoseBuffer: TimeInterpolatablePose3dBuffer = (
TimeInterpolatablePose3dBuffer(self.bufferLength)
)
Expand Down Expand Up @@ -228,8 +228,8 @@ def update(self, robotPose: Pose2d | Pose3d) -> None:

camResult = camSim.process(latency, lateCameraPose, allTargets)
camSim.submitProcessedFrame(camResult, timestampNt)
for target in camResult.getTargets():
trf = target.getBestCameraToTarget()
for tgt in camResult.getTargets():
trf = tgt.getBestCameraToTarget()
if trf == Transform3d():
continue

Expand Down

0 comments on commit d4f853b

Please sign in to comment.