MCPcopy Create free account
hub / github.com/SpectacularAI/sdk / processVioOutput

Method processVioOutput

python/cli/visualization/visualizer.py:521–532  ·  view source on GitHub ↗
(output)

Source from the content-addressed store, hash-verified

519 return self.vioOutputQueue.pop(0) if vioOutputTime < mapperOutputTime else self.mapperOutputQueue.pop(0)
520
521 def processVioOutput(output):
522 nonlocal vioOutput, prevVioOutput, wasTracking
523 vioOutput = output
524 if vioOutput['isTracking']:
525 wasTracking = True
526 cameraPose = vioOutput["cameraPose"]
527 self.poseTrail.append(cameraPose.getPosition())
528 else:
529 vioOutput = None
530 if wasTracking:
531 self.__resetAfterLost()
532 wasTracking = False
533
534 def processMapperOutput(output):
535 nonlocal vioOutput, prevVioOutput, wasTracking

Callers

nothing calls this directly

Calls 3

__resetAfterLostMethod · 0.95
appendMethod · 0.80
getPositionMethod · 0.80

Tested by

no test coverage detected