In this example, we use the Interaction service to get the list of the persons around the robot. A frame is associated to each person, and the Actuation service also exposes the robot frame. With all that information, we can compute the distance between the robot and each person.
https://android.aldebaran.com/doc/humans_around_tutorial.html
Nothing to do in emulator mode.