1
$\begingroup$

The robot is standing in the middle of the arena. I am confused on how to convert the pixels into a real life distance and how to use the bounding box. Starting help is appreciated.

$\endgroup$
2
  • 1
    $\begingroup$ Hey @bobby Welcome to StackExchange Robotics :) It would be easier for someone to help you if you could add any attempts you made. $\endgroup$
    – Pe Dro
    Oct 3, 2020 at 5:27
  • 1
    $\begingroup$ Welcome to Robotics bobby kennedy. Please edit your question to include more details of your setup, what you want to achieve, what you tried, what you saw & what you expected to see. Please take a look at How to Ask & tour for more information on how stack exchange works and work through the Robotics question checklist to help our members answer your question. $\endgroup$
    – Ben
    Oct 6, 2020 at 23:56

1 Answer 1

0
$\begingroup$

The best (and cheapest) method would be to use AprilTags. I have added the python bindings for it here.

For a great starting point, refer to this blog that explains the setup in C++.

It can not only tell you the distance but also the orientation of the object

I hope it helps.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.