I do not know if it is somehow related but after some runs with the same config file I get this StereoDepth(8) Error
[ INFO] [1787751000.222247076]: Pipeline type: RGBD
[ INFO] [1787751001.547930576]: Finished setting up pipeline.
[14442C1091F0CFD200] [3.7] [2.725] [StereoDepth(8)] [error] Custom disparity/depth width must be multiple of 16.
[ INFO] [1787751002.466103879]: Camera ready!
[ERROR] [1787751005.460237380]: No data on logger queue!
[ERROR] [1787751005.460895973]: Camera diagnostics error: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'sys_logger_queu
e' (X_LINK_ERROR)'
no matter if stereo_i_align_depth: false or stereo_i_align_depth: true
It appears because of the stereo_i_enable_decimation_filter: true parameter. For some reason during consecutive launches I see the following output from first to last launch (the last one is the one where the error occurs). My monos are 720P and the RGB 1080P in this specific try:
Decimation filter enabled with decimation factor 2. Previous width and height: 1280 x 720, after decimation: 640 x 360
Decimation filter enabled with decimation factor 2. Previous width and height: 640 x 360, after decimation: 320 x 180
Decimation filter enabled with decimation factor 2. Previous width and height: 320 x 180, after decimation: 160 x 90
Decimation filter enabled with decimation factor 2. Previous width and height: 160 x 90, after decimation: 80 x 45
Decimation filter enabled with decimation factor 2. Previous width and height: 80 x 45, after decimation: 40 x 22
It looks like some parameters are saved in the ROS parameter server and are used for every camera launch unless roscore is restarted every time.
Should I explicitly set stereo_i_height and stereo_i_width parameters? Or add clear_params="true" in the launch file for the \oak node? If I do this I observe that if stereo_i_align_depth: true the stereo output is aligned in resolution with the RGB Image. For example if RGB resolution is 1080P and stereo 720P then stereo is resized to 1080P. So I suspect that if I set the parameters by hand in the config file I should also apply the above resize?