BGA
lvl.4
Offline
|
I added code to compute the distance to a detected object with specific helpers for a detected S1 robot. The code can also be used to compute the distance to the cards that come with the robot.
The detected bounding box is very noisy so even if you stay still, the value returned varies somewhat, so don't use it for precision measurements. ;) It is able to rovide distances in both millimeters and inches:
https://git.bug-br.org.br/bga/ro ... nippets/distance.py |
|