Hi, I perfectly success to run darknet_ros on my laptop, but I want to customize it.
I want darknet_ros to always publish empty array when darknet_ros detect nothing.
So, I fixed ~/darknetros/src/YoloObjectDetector.cpp line 360. 0 to 1
` if (count == 0) {
roiBoxes[0].num = 1;
} else {
roiBoxes_[0].num = count;
}`
But I noticed that darknet_ros publish the 'car' topic 0even though there weren't car.
And, the imformation about cat was old one.(same probability)
I think that was saved data a few seconds ago.
Is there any tip for properly publishing empty array when I detect nothing?
Screenshots
If applicable, add screenshots to help explain your problem.
System (please complete the following information):
Additional context
Hi, I perfectly success to run darknet_ros on my laptop, but I want to customize it. I want darknet_ros to always publish empty array when darknet_ros detect nothing.
So, I fixed ~/darknetros/src/YoloObjectDetector.cpp line 360. 0 to 1 ` if (count == 0) { roiBoxes[0].num = 1; } else { roiBoxes_[0].num = count; }` But I noticed that darknet_ros publish the 'car' topic 0even though there weren't car. And, the imformation about cat was old one.(same probability) I think that was saved data a few seconds ago.
Is there any tip for properly publishing empty array when I detect nothing?
Screenshots If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/82497626/136185088-c7869ec1-bceb-41ec-bf02-ef6dd1cca747.png)
System (please complete the following information):