luxonis / depthai-ros

Official ROS Driver for DepthAI Sensors.
MIT License
260 stars 190 forks source link

OAK-D-PRO-POE shutdown after a while #575

Open khuechuong opened 3 months ago

khuechuong commented 3 months ago

ROS Noetic OAK-D-PRO-POE

So the oak-d-pro-poe was fine when it starts, but for some reason, after a while it gives me this

[1844301041E8E9F400] [169.254.1.221] [1723044660.375] [host] [warning] Monitor thread (device: 1844301041E8E9F400 [169.254.1.221]) - ping was missed, closing the device connection
[ERROR]ros.depthai_ros_driver][produceDiagnostics:80]: No data on logger queue!
[ERROR]ros.depthai_ros_driver][diagCB:61]: Camera diagnostics error: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'sys_logger_queue' (X_LINK_ERROR)'
[ERROR]ros.depthai_ros_driver][produceDiagnostics:80]: No data on logger queue!
[ERROR]ros.depthai_ros_driver][diagCB:61]: Camera diagnostics error: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'sys_logger_queue' (X_LINK_ERROR)'

and then shutdown.

Serafadam commented 3 months ago

Hi, this might be due to high CPU usage on the camera, you can monitor it either via diagnostics topic or by enabling debug information - export DEPTHAI_DEBUG=1, you can also set a parameter camera_i_restart_on_diagnostics_error: true to have the camera restart after encountering an error