From 9c06163c43999f4e56bbe30abac281f094713f69 Mon Sep 17 00:00:00 2001 From: zrezke Date: Tue, 27 Feb 2024 16:58:35 +0100 Subject: [PATCH] Cleanup. --- crates/re_viewer/pipeline.json | 1 - nonworking.log | 37 ---------------------- rerun_py/depthai_viewer/_backend/device.py | 2 +- working.log | 23 -------------- 4 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 crates/re_viewer/pipeline.json delete mode 100644 nonworking.log delete mode 100644 working.log diff --git a/crates/re_viewer/pipeline.json b/crates/re_viewer/pipeline.json deleted file mode 100644 index 89d59abee35c..000000000000 --- a/crates/re_viewer/pipeline.json +++ /dev/null @@ -1 +0,0 @@ -{"assetStorage": [], "assets": {"map": {}}, "pipeline": {"connections": [{"node1Id": 3, "node1Output": "out", "node1OutputGroup": "", "node2Id": 2, "node2Input": "in", "node2InputGroup": ""}, {"node1Id": 0, "node1Output": "raw", "node1OutputGroup": "", "node2Id": 1, "node2Input": "in", "node2InputGroup": ""}], "globalProperties": {"calibData": null, "cameraTuningBlobSize": null, "cameraTuningBlobUri": "", "leonCssFrequencyHz": 700000000.0, "leonMssFrequencyHz": 700000000.0, "pipelineName": null, "pipelineVersion": null, "sippBufferSize": 18432, "sippDmaBufferSize": 16384, "xlinkChunkSize": -1}, "nodes": [[0, {"id": 0, "ioInfo": [[["", "video"], {"blocking": false, "group": "", "id": 11, "name": "video", "queueSize": 8, "type": 0, "waitForMessage": false}], [["", "still"], {"blocking": false, "group": "", "id": 9, "name": "still", "queueSize": 8, "type": 0, "waitForMessage": false}], [["", "isp"], {"blocking": false, "group": "", "id": 8, "name": "isp", "queueSize": 8, "type": 0, "waitForMessage": false}], [["", "preview"], {"blocking": false, "group": "", "id": 10, "name": "preview", "queueSize": 8, "type": 0, "waitForMessage": false}], [["", "raw"], {"blocking": false, "group": "", "id": 7, "name": "raw", "queueSize": 8, "type": 0, "waitForMessage": false}], [["", "frameEvent"], {"blocking": false, "group": "", "id": 6, "name": "frameEvent", "queueSize": 8, "type": 0, "waitForMessage": false}], [["", "inputConfig"], {"blocking": false, "group": "", "id": 5, "name": "inputConfig", "queueSize": 8, "type": 3, "waitForMessage": false}], [["", "inputControl"], {"blocking": true, "group": "", "id": 4, "name": "inputControl", "queueSize": 8, "type": 3, "waitForMessage": false}]], "name": "Camera", "properties": {"boardSocket": 4, "calibAlpha": null, "cameraName": "", "colorOrder": 0, "fp16": false, "fps": 30.0, "imageOrientation": -1, "initialControl": {"aeLockMode": false, "aeMaxExposureTimeUs": 0, "aeRegion": {"height": 0, "priority": 0, "width": 0, "x": 0, "y": 0}, "afRegion": {"height": 0, "priority": 0, "width": 0, "x": 0, "y": 0}, "antiBandingMode": 0, "autoFocusMode": 3, "awbLockMode": false, "awbMode": 0, "brightness": 0, "captureIntent": 0, "chromaDenoise": 0, "cmdMask": 0, "contrast": 0, "controlMode": 0, "effectMode": 0, "expCompensation": 0, "expManual": {"exposureTimeUs": 0, "frameDurationUs": 0, "sensitivityIso": 0}, "frameSyncMode": 0, "lensPosAutoInfinity": 0, "lensPosAutoMacro": 0, "lensPosition": 0, "lensPositionRaw": 0.0, "lowPowerNumFramesBurst": 0, "lowPowerNumFramesDiscard": 0, "lumaDenoise": 0, "saturation": 0, "sceneMode": 0, "sharpness": 0, "strobeConfig": {"activeLevel": 0, "enable": 0, "gpioNumber": 0}, "strobeTimings": {"durationUs": 0, "exposureBeginOffsetUs": 0, "exposureEndOffsetUs": 0}, "wbColorTemp": 0}, "interleaved": true, "isp3aFps": 0, "ispScale": {"horizDenominator": 0, "horizNumerator": 0, "vertDenominator": 0, "vertNumerator": 0}, "numFramesPoolIsp": 3, "numFramesPoolPreview": 4, "numFramesPoolRaw": 3, "numFramesPoolStill": 4, "numFramesPoolVideo": 4, "previewHeight": 300, "previewKeepAspectRatio": true, "previewWidth": 300, "rawPacked": null, "resolutionHeight": -1, "resolutionWidth": -1, "sensorCropX": -1.0, "sensorCropY": -1.0, "sensorType": -1, "stillHeight": -1, "stillWidth": -1, "videoHeight": -1, "videoWidth": -1, "warpMeshHeight": 0, "warpMeshSource": -1, "warpMeshStepHeight": 32, "warpMeshStepWidth": 32, "warpMeshUri": "", "warpMeshWidth": 0}}], [1, {"id": 1, "ioInfo": [[["", "in"], {"blocking": true, "group": "", "id": 3, "name": "in", "queueSize": 8, "type": 3, "waitForMessage": true}]], "name": "XLinkOut", "properties": {"maxFpsLimit": -1.0, "metadataOnly": false, "streamName": "thermal_cam"}}], [2, {"id": 2, "ioInfo": [[["", "in"], {"blocking": true, "group": "", "id": 2, "name": "in", "queueSize": 8, "type": 3, "waitForMessage": true}]], "name": "XLinkOut", "properties": {"maxFpsLimit": -1.0, "metadataOnly": false, "streamName": "sys_logger"}}], [3, {"id": 3, "ioInfo": [[["", "out"], {"blocking": false, "group": "", "id": 1, "name": "out", "queueSize": 8, "type": 0, "waitForMessage": false}]], "name": "SystemLogger", "properties": {"rateHz": 0.10000000149011612}}]]}} \ No newline at end of file diff --git a/nonworking.log b/nonworking.log deleted file mode 100644 index fbe896707f11..000000000000 --- a/nonworking.log +++ /dev/null @@ -1,37 +0,0 @@ -Selecting device: 194430100196762700 -Oak cam: -No intrisics for cam: CameraBoardSocket.CAM_A -No intrisics for cam: CameraBoardSocket.CAM_E -Default stereo pair: None -Pipeline config: auto=True cameras=[CameraConfiguration(fps=30, resolution=, kind=, board_socket=, stream_enabled=True, name='Rgb'), CameraConfiguration(fps=30, resolution=, kind=, board_socket=, stream_enabled=True, name='Thermal')] depth=None ai_model=None imu=ImuConfiguration(report_rate=100, batch_report_threshold=5) -Update pipeline: auto=True cameras=[CameraConfiguration(fps=30, resolution=, kind=, board_socket=, stream_enabled=True, name='Rgb'), CameraConfiguration(fps=30, resolution=, kind=, board_socket=, stream_enabled=True, name='Thermal')] depth=None ai_model=None imu=ImuConfiguration(report_rate=100, batch_report_threshold=5) -Updating pipeline... -Usb speed: UsbSpeed.HIGH -Device is connected in USB2 mode, camera streams will be JPEG encoded... -dai version: 2.24.0.0.dev0+c014e27e224f7ef3f6407be6b3f05be6c2fffd13 -AI: None -Connected camera features [{socket: CAM_A, sensorName: IMX462, width: 1920, height: 1080, orientation: ROTATE_180_DEG, supportedTypes: [COLOR], hasAutofocus: 0, hasAutofocusIC: 0, name: rgb}, {socket: CAM_E, sensorName: TINY1C, width: 256, height: 192, orientation: AUTO, supportedTypes: [THERMAL], hasAutofocus: 0, hasAutofocusIC: 0, name: thermal}] -Creating camera: fps=30 resolution= kind= board_socket= stream_enabled=True name='Thermal' -Creating camera: fps=30 resolution= kind= board_socket= stream_enabled=False name='Color' -Starting pipeline -{'assetStorage': [], 'assets': {'map': {}}, 'pipeline': {'connections': [{'node1Id': 3, 'node1Output': 'out', 'node1OutputGroup': '', 'node2Id': 2, 'node2Input': 'in', 'node2InputGroup': ''}, {'node1Id': 0, 'node1Output': 'raw', 'node1OutputGroup': '', 'node2Id': 1, 'node2Input': 'in', 'node2InputGroup': ''}], 'globalProperties': {'calibData': None, 'cameraTuningBlobSize': None, 'cameraTuningBlobUri': '', 'leonCssFrequencyHz': 700000000.0, 'leonMssFrequencyHz': 700000000.0, 'pipelineName': None, 'pipelineVersion': None, 'sippBufferSize': 18432, 'sippDmaBufferSize': 16384, 'xlinkChunkSize': -1}, 'nodes': [[0, {'id': 0, 'ioInfo': [[['', 'video'], {'blocking': False, 'group': '', 'id': 11, 'name': 'video', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'still'], {'blocking': False, 'group': '', 'id': 9, 'name': 'still', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'isp'], {'blocking': False, 'group': '', 'id': 8, 'name': 'isp', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'preview'], {'blocking': False, 'group': '', 'id': 10, 'name': 'preview', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'raw'], {'blocking': False, 'group': '', 'id': 7, 'name': 'raw', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'frameEvent'], {'blocking': False, 'group': '', 'id': 6, 'name': 'frameEvent', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'inputConfig'], {'blocking': False, 'group': '', 'id': 5, 'name': 'inputConfig', 'queueSize': 8, 'type': 3, 'waitForMessage': False}], [['', 'inputControl'], {'blocking': True, 'group': '', 'id': 4, 'name': 'inputControl', 'queueSize': 8, 'type': 3, 'waitForMessage': False}]], 'name': 'Camera', 'properties': {'boardSocket': 4, 'calibAlpha': None, 'cameraName': '', 'colorOrder': 0, 'fp16': False, 'fps': 30.0, 'imageOrientation': -1, 'initialControl': {'aeLockMode': False, 'aeMaxExposureTimeUs': 0, 'aeRegion': {'height': 0, 'priority': 0, 'width': 0, 'x': 0, 'y': 0}, 'afRegion': {'height': 0, 'priority': 0, 'width': 0, 'x': 0, 'y': 0}, 'antiBandingMode': 0, 'autoFocusMode': 3, 'awbLockMode': False, 'awbMode': 0, 'brightness': 0, 'captureIntent': 0, 'chromaDenoise': 0, 'cmdMask': 0, 'contrast': 0, 'controlMode': 0, 'effectMode': 0, 'expCompensation': 0, 'expManual': {'exposureTimeUs': 0, 'frameDurationUs': 0, 'sensitivityIso': 0}, 'frameSyncMode': 0, 'lensPosAutoInfinity': 0, 'lensPosAutoMacro': 0, 'lensPosition': 0, 'lensPositionRaw': 0.0, 'lowPowerNumFramesBurst': 0, 'lowPowerNumFramesDiscard': 0, 'lumaDenoise': 0, 'saturation': 0, 'sceneMode': 0, 'sharpness': 0, 'strobeConfig': {'activeLevel': 0, 'enable': 0, 'gpioNumber': 0}, 'strobeTimings': {'durationUs': 0, 'exposureBeginOffsetUs': 0, 'exposureEndOffsetUs': 0}, 'wbColorTemp': 0}, 'interleaved': True, 'isp3aFps': 0, 'ispScale': {'horizDenominator': 0, 'horizNumerator': 0, 'vertDenominator': 0, 'vertNumerator': 0}, 'numFramesPoolIsp': 3, 'numFramesPoolPreview': 4, 'numFramesPoolRaw': 3, 'numFramesPoolStill': 4, 'numFramesPoolVideo': 4, 'previewHeight': 300, 'previewKeepAspectRatio': True, 'previewWidth': 300, 'rawPacked': None, 'resolutionHeight': -1, 'resolutionWidth': -1, 'sensorCropX': -1.0, 'sensorCropY': -1.0, 'sensorType': -1, 'stillHeight': -1, 'stillWidth': -1, 'videoHeight': -1, 'videoWidth': -1, 'warpMeshHeight': 0, 'warpMeshSource': -1, 'warpMeshStepHeight': 32, 'warpMeshStepWidth': 32, 'warpMeshUri': '', 'warpMeshWidth': 0}}], [1, {'id': 1, 'ioInfo': [[['', 'in'], {'blocking': True, 'group': '', 'id': 3, 'name': 'in', 'queueSize': 8, 'type': 3, 'waitForMessage': True}]], 'name': 'XLinkOut', 'properties': {'maxFpsLimit': -1.0, 'metadataOnly': False, 'streamName': 'thermal_cam'}}], [2, {'id': 2, 'ioInfo': [[['', 'in'], {'blocking': True, 'group': '', 'id': 2, 'name': 'in', 'queueSize': 8, 'type': 3, 'waitForMessage': True}]], 'name': 'XLinkOut', 'properties': {'maxFpsLimit': -1.0, 'metadataOnly': False, 'streamName': 'sys_logger'}}], [3, {'id': 3, 'ioInfo': [[['', 'out'], {'blocking': False, 'group': '', 'id': 1, 'name': 'out', 'queueSize': 8, 'type': 0, 'waitForMessage': False}]], 'name': 'SystemLogger', 'properties': {'rateHz': 0.10000000149011612}}]]}} -[194430100196762700] [1.1.4.3.2] [6.050] [Camera(0)] [warning] PlgSrcTiny1c::Create: Capping fps from 30 to 25 -Got message to send: -Sending message: -Error while updating device:Traceback (most recent call last): - - File "/home/filip/Documents/depthai-viewer/rerun_py/depthai_viewer/_backend/main.py", line 167, in run - self._device.update() - - File "/home/filip/Documents/depthai-viewer/rerun_py/depthai_viewer/_backend/device.py", line 588, in update - packet = queue.tryGet() - -RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'thermal_cam' (X_LINK_ERROR)' - -Resetting... -Closing device... -[2024-02-22T14:23:38Z WARN re_viewer::depthai::depthai] Device is connected in USB2 mode. This may cause performance issues. -Done -Got message to send: -Sending message: -[2024-02-22T14:23:39Z ERROR re_viewer::depthai::depthai] Error: Depthai error: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'thermal_cam' (X_LINK_ERROR)' diff --git a/rerun_py/depthai_viewer/_backend/device.py b/rerun_py/depthai_viewer/_backend/device.py index 450d1a5ccaa8..40a1e1203a9a 100644 --- a/rerun_py/depthai_viewer/_backend/device.py +++ b/rerun_py/depthai_viewer/_backend/device.py @@ -612,7 +612,7 @@ def update(self) -> None: return if not self._oak.device.isPipelineRunning(): return - # self._oak.poll() + self._oak.poll() for component, queue in self._queues: try: diff --git a/working.log b/working.log deleted file mode 100644 index 8445a03171ac..000000000000 --- a/working.log +++ /dev/null @@ -1,23 +0,0 @@ -Selecting device: 194430100196762700 -/home/filip/Documents/depthai-viewer/rerun_py/depthai_viewer/venv-0.1.7/lib/python3.10/site-packages/depthai_sdk/oak_camera.py:220: UsbWarning: Device connected in USB2 mode! This might cause some issues. In such case, please try using a (different) USB3 cable, or force USB2 mode 'with OakCamera(usb_speed='usb2') as oak:' - warnings.warn("Device connected in USB2 mode! This might cause some issues. " -Oak cam: -No intrisics for cam: CameraBoardSocket.CAM_A -No intrisics for cam: CameraBoardSocket.CAM_E -Default stereo pair: None -Pipeline config: auto=True cameras=[CameraConfiguration(fps=30, resolution=, kind=, board_socket=, stream_enabled=True, name='Rgb'), CameraConfiguration(fps=30, resolution=, kind=, board_socket=, stream_enabled=True, name='Thermal')] depth=None ai_model=None imu=ImuConfiguration(report_rate=100, batch_report_threshold=5) -Update pipeline: auto=True cameras=[CameraConfiguration(fps=30, resolution=, kind=, board_socket=, stream_enabled=True, name='Rgb'), CameraConfiguration(fps=30, resolution=, kind=, board_socket=, stream_enabled=True, name='Thermal')] depth=None ai_model=None imu=ImuConfiguration(report_rate=100, batch_report_threshold=5) -Updating pipeline... -Usb speed: UsbSpeed.HIGH -Device is connected in USB2 mode, camera streams will be JPEG encoded... -dai version: 2.24.0.0.dev0+c014e27e224f7ef3f6407be6b3f05be6c2fffd13 -AI: None -Connected camera features [{socket: CAM_A, sensorName: IMX462, width: 1920, height: 1080, orientation: ROTATE_180_DEG, supportedTypes: [COLOR], hasAutofocus: 0, hasAutofocusIC: 0, name: rgb}, {socket: CAM_E, sensorName: TINY1C, width: 256, height: 192, orientation: AUTO, supportedTypes: [THERMAL], hasAutofocus: 0, hasAutofocusIC: 0, name: thermal}] -Creating camera: fps=30 resolution= kind= board_socket= stream_enabled=True name='Thermal' -Creating camera: fps=30 resolution= kind= board_socket= stream_enabled=False name='Color' -Starting pipeline -{'assetStorage': [], 'assets': {'map': {}}, 'pipeline': {'connections': [{'node1Id': 3, 'node1Output': 'out', 'node1OutputGroup': '', 'node2Id': 2, 'node2Input': 'in', 'node2InputGroup': ''}, {'node1Id': 0, 'node1Output': 'raw', 'node1OutputGroup': '', 'node2Id': 1, 'node2Input': 'in', 'node2InputGroup': ''}], 'globalProperties': {'calibData': None, 'cameraTuningBlobSize': None, 'cameraTuningBlobUri': '', 'leonCssFrequencyHz': 700000000.0, 'leonMssFrequencyHz': 700000000.0, 'pipelineName': None, 'pipelineVersion': None, 'sippBufferSize': 18432, 'sippDmaBufferSize': 16384, 'xlinkChunkSize': -1}, 'nodes': [[0, {'id': 0, 'ioInfo': [[['', 'video'], {'blocking': False, 'group': '', 'id': 11, 'name': 'video', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'still'], {'blocking': False, 'group': '', 'id': 9, 'name': 'still', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'isp'], {'blocking': False, 'group': '', 'id': 8, 'name': 'isp', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'preview'], {'blocking': False, 'group': '', 'id': 10, 'name': 'preview', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'raw'], {'blocking': False, 'group': '', 'id': 7, 'name': 'raw', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'frameEvent'], {'blocking': False, 'group': '', 'id': 6, 'name': 'frameEvent', 'queueSize': 8, 'type': 0, 'waitForMessage': False}], [['', 'inputConfig'], {'blocking': False, 'group': '', 'id': 5, 'name': 'inputConfig', 'queueSize': 8, 'type': 3, 'waitForMessage': False}], [['', 'inputControl'], {'blocking': True, 'group': '', 'id': 4, 'name': 'inputControl', 'queueSize': 8, 'type': 3, 'waitForMessage': False}]], 'name': 'Camera', 'properties': {'boardSocket': 4, 'calibAlpha': None, 'cameraName': '', 'colorOrder': 0, 'fp16': False, 'fps': 30.0, 'imageOrientation': -1, 'initialControl': {'aeLockMode': False, 'aeMaxExposureTimeUs': 0, 'aeRegion': {'height': 0, 'priority': 0, 'width': 0, 'x': 0, 'y': 0}, 'afRegion': {'height': 0, 'priority': 0, 'width': 0, 'x': 0, 'y': 0}, 'antiBandingMode': 0, 'autoFocusMode': 3, 'awbLockMode': False, 'awbMode': 0, 'brightness': 0, 'captureIntent': 0, 'chromaDenoise': 0, 'cmdMask': 0, 'contrast': 0, 'controlMode': 0, 'effectMode': 0, 'expCompensation': 0, 'expManual': {'exposureTimeUs': 0, 'frameDurationUs': 0, 'sensitivityIso': 0}, 'frameSyncMode': 0, 'lensPosAutoInfinity': 0, 'lensPosAutoMacro': 0, 'lensPosition': 0, 'lensPositionRaw': 0.0, 'lowPowerNumFramesBurst': 0, 'lowPowerNumFramesDiscard': 0, 'lumaDenoise': 0, 'saturation': 0, 'sceneMode': 0, 'sharpness': 0, 'strobeConfig': {'activeLevel': 0, 'enable': 0, 'gpioNumber': 0}, 'strobeTimings': {'durationUs': 0, 'exposureBeginOffsetUs': 0, 'exposureEndOffsetUs': 0}, 'wbColorTemp': 0}, 'interleaved': True, 'isp3aFps': 0, 'ispScale': {'horizDenominator': 0, 'horizNumerator': 0, 'vertDenominator': 0, 'vertNumerator': 0}, 'numFramesPoolIsp': 3, 'numFramesPoolPreview': 4, 'numFramesPoolRaw': 3, 'numFramesPoolStill': 4, 'numFramesPoolVideo': 4, 'previewHeight': 300, 'previewKeepAspectRatio': True, 'previewWidth': 300, 'rawPacked': None, 'resolutionHeight': -1, 'resolutionWidth': -1, 'sensorCropX': -1.0, 'sensorCropY': -1.0, 'sensorType': -1, 'stillHeight': -1, 'stillWidth': -1, 'videoHeight': -1, 'videoWidth': -1, 'warpMeshHeight': 0, 'warpMeshSource': -1, 'warpMeshStepHeight': 32, 'warpMeshStepWidth': 32, 'warpMeshUri': '', 'warpMeshWidth': 0}}], [1, {'id': 1, 'ioInfo': [[['', 'in'], {'blocking': True, 'group': '', 'id': 3, 'name': 'in', 'queueSize': 8, 'type': 3, 'waitForMessage': True}]], 'name': 'XLinkOut', 'properties': {'maxFpsLimit': -1.0, 'metadataOnly': False, 'streamName': 'thermal_cam'}}], [2, {'id': 2, 'ioInfo': [[['', 'in'], {'blocking': True, 'group': '', 'id': 2, 'name': 'in', 'queueSize': 8, 'type': 3, 'waitForMessage': True}]], 'name': 'XLinkOut', 'properties': {'maxFpsLimit': -1.0, 'metadataOnly': False, 'streamName': 'sys_logger'}}], [3, {'id': 3, 'ioInfo': [[['', 'out'], {'blocking': False, 'group': '', 'id': 1, 'name': 'out', 'queueSize': 8, 'type': 0, 'waitForMessage': False}]], 'name': 'SystemLogger', 'properties': {'rateHz': 0.10000000149011612}}]]}} -[194430100196762700] [1.1.4.3.2] [6.226] [Camera(0)] [warning] PlgSrcTiny1c::Create: Capping fps from 30 to 25 -Got message to send: -Sending message: -[2024-02-22T14:23:06Z WARN re_viewer::depthai::depthai] Device is connected in USB2 mode. This may cause performance issues.