(self, mapperOutput)
| 489 | if self.shouldQuit: break |
| 490 | |
| 491 | def onMappingOutput(self, mapperOutput): |
| 492 | if self.shouldQuit: return |
| 493 | |
| 494 | output = { |
| 495 | "type" : "slam", |
| 496 | "mapperOutput" : mapperOutput, |
| 497 | "time" : time.time() |
| 498 | } |
| 499 | self.mapperOutputQueue.append(output) |
| 500 | |
| 501 | MAX_MAPPER_OUTPUT_QUEUE_SIZE = 10 |
| 502 | if len(self.mapperOutputQueue) > MAX_MAPPER_OUTPUT_QUEUE_SIZE: |
| 503 | self.mapperOutputQueue.pop(0) |
| 504 | print("Warning: Dropping mapper output in visualizer (processing too slow!)") |
| 505 | |
| 506 | def run(self): |
| 507 | vioOutput = None |
no test coverage detected