Skip to content

Threading

Mark Petersen requested to merge threading into master

Adding threading back into darknet_ros. The original darknet_ros that copied the darknet/demo.c uses a three stage buffer that advances only when an new image is received. If images are received at low fps, this would create a large delay. The new threading will process an image entirely without having to wait for another image to continue. This helps to reduce delays which average about 0.2 seconds. The delay is the time from when the image is published by another node and then subscribed, processed, and published again by darknet_ros. Darknet_ros node on average adds a 0.15 seconds delay with an average fps of 12.6 using YOLO3 weights, GTX 1050 Ti, and i7-6700k CPU.

Merge request reports