MCPcopy Index your code
hub / github.com/SpectacularAI/sdk / processMapperOutput

Method processMapperOutput

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

Source from the content-addressed store, hash-verified

532 wasTracking = False
533
534 def processMapperOutput(output):
535 nonlocal vioOutput, prevVioOutput, wasTracking
536
537 mapperOutput = output["mapperOutput"]
538 if wasTracking: # Don't render if not tracking. Messes up this visualization easily
539 self.map.onMappingOutput(mapperOutput)
540 if mapperOutput.finalMap:
541 if self.args.keepOpenAfterFinalMap:
542 self.showCameraFrustum = False
543 self.showCameraModel = False
544 if self.args.targetFps == 0: self.args.targetFps = 30 # No vio outputs -> set 30fps mode instead
545 if self.cameraSmooth: self.cameraSmooth.reset() # Stop camera moving automatically
546 vioOutput = prevVioOutput
547 else:
548 self.shouldQuit = True
549
550 while not self.shouldQuit:
551 self.__processUserInput()

Callers

nothing calls this directly

Calls 2

onMappingOutputMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected