zauberzeug / field_friend

A Development Platform for Autonomous Weeding.
https://feldfreund.de
MIT License
11 stars 3 forks source link

socketio.exceptions.BadNamespaceError #125

Closed LukasBaecker closed 1 month ago

LukasBaecker commented 1 month ago

When changing the detector from coins to plants the following Error occured. I changed the the 'wait_timeout' in the connect function of the DetectorHardware in rosys from 3.0 to 10.0 which seems to fix the error.

rosys_1       | 2024-07-17 12:12:08.580 [ERROR] rosys/vision/detector_hardware.py:142: could not detect 32e4-9230-platform-3610000.xhci-usb-0:2.3:1.0/1721211128.5329092
rosys_1       | Traceback (most recent call last):
rosys_1       |   File "/app/rosys/vision/detector_hardware.py", line 114, in _detect
rosys_1       |     result: dict = await self.sio.call('detect', {
rosys_1       |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rosys_1       |   File "/home/zauberzeug/.local/lib/python3.11/site-packages/socketio/async_client.py", line 299, in call
rosys_1       |     await self.emit(event, data=data, namespace=namespace,
rosys_1       |   File "/home/zauberzeug/.local/lib/python3.11/site-packages/socketio/async_client.py", line 220, in emit
rosys_1       |     raise exceptions.BadNamespaceError(
rosys_1       | socketio.exceptions.BadNamespaceError: / is not a connected namespace.
rodja commented 1 month ago

The fix might be an coincidence. If you select the plant detector it may update to the latest available model on start. That would explain the connection errors...

pascalzauberzeug commented 1 month ago

We didn't see the error gain and updated the detector.