(output)
| 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() |
nothing calls this directly
no test coverage detected