0

I am researching the ALLandMark module. How can I get the distance to detected Land Mark or the position of it?

I have tried to register Land Mark with ALTrackerProxy::registerTarget and then get the position or the coordinates of the target with:

My idea is when Pepper detects Land Mark to navigate to it.

How can I get the distance to detected Land Mark or the position of it?

Nathan Arthur
  • 5,424
  • 3
  • 42
  • 64
stefan.stt
  • 1,831
  • 2
  • 14
  • 32

2 Answers2

3

The distance is completely relative to the printed size.

You can use a simple empirical ratio from the sizeX and sizeY found in the shapeInfo.

(in fact you could compute this ratio, using the specs from the camera, but it's nearly quicker to test it)

The real way is to use the OpenCV PnP method: basically you enter the position of the mark in the image, plus the camera information and it gives you the position in the world.

Alexandre Mazel
  • 2,129
  • 17
  • 21
0

Here Aldebaran have posted very good example(No.3: Landmark localization) how this could be done.

stefan.stt
  • 1,831
  • 2
  • 14
  • 32