My Sanbot family icon
Sanbot Human Follow For the Sanbot Nano

Let your Sanbot Nano follow you again

When the stock Human Follow app (com.qihan.HumanFollow) is missing from a Sanbot Nano, asking it to follow does nothing. Sanbot Human Follow takes its place: the robot finds you with its camera, turns to face you and follows at a comfortable distance.

It is not Qihan’s original app. It uses the robot’s OpenSDK face recognition to centre on a person and its wheels to keep a stand-off distance. Start and stop it from My Sanbot, with a wave of your hand, or by voice.

Version 1.3.1 · Included in the robot software pack · Runs on the Sanbot Nano

Highlights

Human Follow 1.3.1 is included in the free My Sanbot robot software pack, and the pack’s install script puts it on the robot for you. Robots already running it can update from the Software screen in My Sanbot. The version shows on the app’s screen as v1.3.1 (7), so you can check which one is installed.

  • No more chasing pictures: it only drives once it has seen the same face three times in about a second and a half, and it stops if it hasn’t seen you for just over a second, instead of carrying on towards where you were.
  • Follows your voice: if it loses you it says “I lost you. Say, I’m here.” Wake the robot and it turns towards your voice, finds your face and carries on following. “Turn left”, “turn right” and “turn around” correct it by hand.
  • Quiet when idle: the listening beep is gone, and turning follow off gets a polite “Follow is off. Say follow me whenever you’d like me to come along.”
  • Google speech on the robot: optional Google text-to-speech and speech recognition (on by default) instead of the robot’s unreliable cloud speech, with the robot’s own OpenSDK speech as a fallback.
  • On-screen switches: turn spoken feedback, Google speech and Google listening on or off from the app’s screen.
  • Detect Human and Close: a test mode that draws boxes around people without driving, and a button to close the app.
  • Steadier lock: once it has locked on to you, it holds on through brief misses, and the detect-mode announcements are quieter.

How it works

Find, lock, follow, stop

Everything happens on the robot. Human Follow uses the Nano’s own camera and sensors.

  1. Finds a person

    The robot’s face recognition finds a face, which Human Follow widens to a body box, and movement in the picture helps it search. It tracks a person, not just a face.

  2. Locks on

    A teal LOCK appears on screen and holds for about four seconds if it briefly loses sight of you.

  3. Follows at a distance

    The wheels keep moving smoothly towards you and stop at a comfortable distance, judged from the height of your face. The head faces straight ahead and tilts up so the camera keeps you in view.

  4. Stops or searches

    It stops for obstacles and when you ask it to. If it loses your face, it turns slowly to look for you.

Features

What Human Follow does

Behaviour and controls from the 1.3.1 release.

🧍

Person tracking

Combines the face box, a wider body box and movement in the picture. It only drives towards a face; movement is used to help it search.

🔒

Confirmed, sticky lock

A new person has to be seen three times in the same place before the robot moves. The teal LOCK then holds for about five seconds through brief misses, but the robot only drives while it can actually see you.

🛞

Smooth following

Keeps the wheels moving continuously in the right direction rather than in short jerky turns.

📏

Keeps its distance

Uses the height of your face to judge distance. Spoken status tells you if you are too close, too far or at a good distance.

🙆

Head kept in view

While following, the head faces straight ahead, tilts up part way, and re-centres every few seconds so the camera can see you.

✋

Hand-up start and stop

Raise an open hand above your face — wave or hold it — to start or stop following. No phone needed.

🗣️

Voice control

After waking the robot, say “follow me”, “stop follow”, “I’m here”, “turn left”, “turn right”, “turn around”, “speech on”, “speech off” or “status”. It replies with the same spoken phrases.

🔈

Spoken feedback

Short phrases such as “Following you”, “Too close” and “Good distance”, at half speed and half volume so you can hear them from about 2 metres. Turn them off on screen, or with Speech Feedback in My Sanbot.

🎙️

Google speech

Google text-to-speech and speech recognition on the robot, on by default. Untick them to go back to the robot’s OpenSDK speech.

🔍

Detect Human

A test mode that shows boxes around people it can see without moving the robot — handy for checking the camera and lighting.

📺

Camera and radar on screen

The robot’s screen shows the HD camera preview beside an infrared radar, with Start follow and Stop buttons. The preview stays on either way.

🛑

Obstacle stop

Stops when the robot reports an obstacle, stops the wheels when something is about 12 cm away, and eases back if you are closer than about 16 cm.

🔎

Finds you by voice when lost

If your face disappears, the robot asks you to say “I’m here”, turns towards your voice (or looks around towards where it last saw you), and carries on following once it sees your face again. It turns at most a third of the way round on its own, then waits for you instead of spinning.

🔗

Answers the robot’s own commands

Uses the same package name as the original, so the robot’s built-in voice and launch commands start it. It also listens for the robot’s own follow open and close messages.

🏠

Add to Home

One button pins Human Follow and Sanbot-ros to the robot’s home screen (Nova launcher).

Ways to start

Start following however suits you

Start and stop following from your phone, by hand, by voice or from your own scripts.

My Sanbot

Tap Follow on in the My Sanbot remote on your computer, Android phone, or iPhone, iPad or Mac.

Hand up

Raise an open hand above your face in front of the robot.

Voice

Wake the robot and say “follow me”. Say “stop follow” to stop.

On the robot’s screen

Tap Start follow or Stop in the Human Follow app.

MQTT or OpenSDK Proxy

Send {"mode":"follow","enabled":true} to autonomy. Mute the spoken status with speech_feedback.

The robot’s own follow

The Nano’s built-in follow command and follow messages open it, just as they would the original app.

Technical details

For tinkerers

Useful if you install it by hand or start it from your own scripts.

📦

Package

com.qihan.HumanFollow — the same name as the stock app, so the robot’s voice and launch commands find it. Version 1.3.1 (version code 7).

📡

Messages it listens for

com.qinhancloud.humanfollow.open / .close and com.qihancloud.obstacle.humanfollow.open / .close, plus a follow true/false extra on its launch.

🧰

Install by hand

With the robot connected over adb: adb install -r -d SanbotHumanFollow-debug.apk, then adb shell am start -n com.qihan.HumanFollow/.HumanFollowActivity. The robot pack’s install script does this for you.

👁️

Vision on the robot

Uses the robot’s own face recognition and camera. It doesn’t use the Orbbec body-tracking camera.

📜

Licence

MIT licence for the Human Follow code. The Sanbot OpenSDK remains Qihan’s.

🙏

Open source credit

An upstream copy is offered to the open-source sanbot-ros project by Lucas Hudson, as Sanbot_HumanFollow in pull request #4.

Requirements and limits

Before you start

Human Follow is a stand-in for the original app. Keep an eye on the robot while it follows.

  1. A Sanbot Nano

    With the robot software pack installed, or Human Follow installed by hand.

  2. Google speech (optional)

    For the Google speech options, the Nano needs Google text-to-speech and Google Search installed, and microphone permission for Human Follow.

  3. A clear floor

    Obstacle stopping is best effort. Clear the way and stay nearby.

  4. Know its limits

    It follows faces only, the distance is a rough estimate from face size, and its lock is still limited — use Detect Human to check what it can see. Keep the face camera free of other apps.

Get Sanbot Human Follow

Human Follow is included in the free My Sanbot robot software pack, which also installs OpenSDK Proxy and ROS Bridge. Use the contact form and choose My Sanbot for help.