← All posts

Product update4 min read

A robot that follows, and the five things that stop it

Builds 283 and 284 let an iPhone on a Waveshare UGV02 follow a paired iPhone, by the map or by ultra wideband. What it steers by, and what makes it stop.

Three ICIDO builds dated 11 November changed what the Labs screen for a Waveshare UGV02 robot can do. Build 282 keeps the robot connected after its screen is left. Build 283 lets the robot follow a person. Build 284 lets it follow outside a scanned place.

These are builds for testers. The version on the App Store is 1.3.

Two iPhones, one robot

Following needs two iPhones. One, with LiDAR, rides on the UGV02 and drives it. The other is a paired iPhone, carried by the person being followed. The feature is under Labs, then Follow.

Staying connected

Build 282 came from a fault found on a real UGV02. Leaving Settings dropped the robot every time, because the drive screen disconnected when it disappeared.

Now leaving that screen only stops the wheels. The link and its battery check stay up until Disconnect is tapped, the robot is lost, or ICIDO closes. The Labs row says Connected.

Stopping when ICIDO leaves the foreground used to be the screen's job. It moved into the robot connection itself, so it holds wherever in ICIDO the person is. Answers missed while ICIDO was asleep no longer count towards calling the robot lost.

Behind, or ahead

The robot follows in one of two ways. Behind, it travels in the person's footsteps. Ahead, it goes in front, the way the person's iPhone faces. The distance can be set from 1 to 3 metres. The top speed is 0.8 metres per second.

In build 283 this works inside a place both iPhones are found in. Once two devices are paired, each iPhone's position in the place it is navigating, and which way it faces, goes straight to the other. That link is encrypted, runs device to device, and never passes through a server.

The part that decides where the robot should go was written as plain calculation and checked on a Mac. In those checks it held within 0.1 metres of the set distance, and within 0.14 metres of the walked path round a corner.

Five things that stop it

The robot stops for:

  • anything in its way,
  • a drop in the floor ahead,
  • a lost iPhone,
  • a robot that has gone silent,
  • its own iPhone leaving ICIDO, which also ends following.

It never reverses.

The first two come from LiDAR depth on the robot's iPhone: something in the way, or the floor dropping away. That check was run against made-up depth data, and the made-up data caught a step down that the first version missed.

There is a red Stop bar on the robot's iPhone. There is also a robot button on every screen, with a panel behind it. Stop was tested from either iPhone.

The one time the camera is sent

ICIDO's own text about this link said "never the camera". With build 283, that text gains its one exception.

The robot's camera goes only to the iPhone it follows. It goes one picture per request, and only while that iPhone's robot panel is open.

Build 284 also fixed that picture. In 283, an upright iPhone on the robot sent its camera view upside down, with left and right swapped.

Outside a scanned place

Ultra wideband radios measure distance by timing short radio pulses between two devices. Paired iPhones already make that measurement when "Find each other anywhere" is on for both. That switch is off until it is turned on.

Build 284 uses the same measurement to follow where there is no shared map. Each moment, the robot's iPhone picks: by the map if both iPhones are found in one place, otherwise by ultra wideband, otherwise it says what is missing. Changing between the two resets the footsteps, the floor and the person's position.

By ultra wideband, the robot follows behind only. The reason is stated in the build's notes: ultra wideband gives a direction only for what is in front of the robot's iPhone, and a person the robot leads is behind it.

Sometimes there is a distance but no direction. Then the robot turns on the spot to look: 12 seconds turning, 4 seconds still. It gives up after a minute of not knowing where the person is.

Away from the navigation screen, the robot's iPhone runs its own camera session for this, with world tracking and LiDAR depth. That session never tries to find itself in a saved place.

What was checked, and what was not

Build 283 was tested end to end on two iOS Simulators against a stand-in robot: pairing, starting, a corner, behind and in front, the distance, and Stop from either iPhone.

Build 284 was tested on two Simulators as well. Real ultra wideband cannot be tested on a Simulator, so the measurement was made up from the two map positions, with a direction only within 60 degrees ahead. In that test the robot found a person behind it by turning, followed a corridor and its turn, and settled 1.59 metres behind.

The notes for these builds record no following run on a real UGV02. Until one is done, the numbers above describe the planner and the stand-in, not a robot on a floor.

Related reading