Skip to content

Commit af32275

Browse files
committed
change where image timestamp is pulled
1 parent 89c3f94 commit af32275

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

PiSideCode/init.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,14 @@
172172
elif walleyeData.currentState == States.PROCESSING:
173173
# Set tag size, grab camera frames, and grab image timestamp
174174
poseEstimator.setTagSize(walleyeData.tagSize)
175+
imageTime = walleyeData.robotPublisher.getTime()
175176
connections, images = walleyeData.cameras.getFramesForProcessing()
176-
177+
177178
for idx, val in enumerate(connections.values()):
178179
if not val and walleyeData.robotPublisher.getConnectionValue(idx):
179180
logger.info("Camera disconnected")
180181
walleyeData.robotPublisher.setConnectionValue(idx, val)
181182

182-
imageTime = walleyeData.robotPublisher.getTime()
183-
184183
# Use the poseEstimator class to find the pose, tags, and ambiguity
185184
poses, tags, ambig = poseEstimator.getPose(
186185
images.values(),

0 commit comments

Comments
 (0)