I use this node (trying ;-) to steer a R/C car (basically a JetRacer) thru a circuit and it looks promising.
The only issue I have at this point is, that if the car loses track of the circuit and none of the trained markers is visible anymore, my code expects the /detectnet/detections/results/id going back to 0 (which is background by default) and so triggers some sort of recovery maneuver.
Instead the node stops publishing and so "keeps" the last identified object on the topic.
Is there a solution to signal "I don't see anything I was trained to see"? I could use a timeout to catch the absence of messages on the topic, but maybe there is something more elegant... ;-)
I use this node (trying ;-) to steer a R/C car (basically a JetRacer) thru a circuit and it looks promising.
The only issue I have at this point is, that if the car loses track of the circuit and none of the trained markers is visible anymore, my code expects the
/detectnet/detections/results/id
going back to0
(which isbackground
by default) and so triggers some sort of recovery maneuver.Instead the node stops publishing and so "keeps" the last identified object on the topic.
Is there a solution to signal "I don't see anything I was trained to see"? I could use a timeout to catch the absence of messages on the topic, but maybe there is something more elegant... ;-)