AGASTHYA’S LABRobo-Badminton · Student engineering
Design evolution & court replay ↗ PATENT PENDING

A PROBLEM WE HIT IN TESTING, AND THE IDEA WE FILED

A cable,
not a slip ring.

Each of R1’s four wheels steers on its own. When we tested it on a few dozen shots in a row, we found one wheel had turned more than four full circles in the same direction. No cable survives that. On this page you can watch the shots where it happened, see why the obvious fix cost us points, see the idea we came up with, and see how far it has got us.

PATENT APPLICATION FILED · INDIA

Phase-aware steering management for a mobile racket-sport robot having independently steered wheel modules

Inventors: Rajesh Kumar Bhairampally and Agasthya Venkatesh Bhairampally. The complete specification has been filed. Application no. 202641122124.

Filing form and Patent Office receipt (PDF) ↗

How to read this page: everything here comes from simulation runs of the same 42 feeds, one every 2.4 s, with the robot never reset in between. The replays are those runs, played back. You can switch between the three steering rules on any feed.

01 / THE SITUATION

The wheels kept winding up

Each R1 wheel sits in a fork, and a steering motor turns the fork. The motor that drives the wheel rides on the fork too, so its power and signal cables have to cross the joint that turns.

A wheel can roll along a given line in two ways: pointing along it, or pointing the opposite way and spinning backwards. So the usual controller never turns a wheel more than 90°. It just picks whichever of the two is nearer. That is the quickest thing to do for each move. But each choice starts from wherever the wheel happens to be, so nothing stops the total from creeping.

Over 42 shots in a row it did more than creep. In this run one wheel ended up several full turns away from where it started. The worst we saw in the tests we filed was 1,924°, more than five turns. The replay here is a fresh run of the same 42 feeds. It reached 1,576°.

Where it happened. Most of it came in four feeds, one after another. In feed 38 the robot runs out, hits, and curves back towards its ready position. Its direction of travel swings round by most of a circle, and every wheel turns 314° to follow. Feeds 39, 40 and 41 swing it the same way again. Wheel 3 starts feed 38 at 578° and reaches 1,576° before feed 41 is over, less than ten seconds later. None of the individual choices was wrong. Every time, every wheel took the shorter turn.

A cable cannot follow that. The usual answers are a slip ring, or moving both motors onto the chassis and driving the wheel through a shaft inside the steering axis. We worked out that the second option would add 8.2 to 10.0 kg.

The run with no limit, opened at feed 38. Press “Play on from feed 38” and watch the counter above the picture climb over the next four feeds. “Previous” takes you back towards feed 1, where every wheel starts at 90°. Open in the full replay ↗
How far each wheel had turned, over the 42 feeds, with no limit. The shaded band is what a cable can follow: ±270°.

02 / THE OBVIOUS FIX

Limit every wheel to ±180°. It cost shots.

Our first fix was the simple one. If a wheel is asked to go past ±180°, point it the opposite way instead and spin it backwards. That kept the angle in bounds. It also cost us shots: 85 of 126 returned in non-stop play, down from 93 with no limit, and 94.3 to 94.8% from a ready start, down from 97.1%.

When we looked at the recordings we found two different reasons.

Turning round in the middle of a chase. While the robot is racing to a shuttle, the direction it needs to go can sweep across the ±180° line. The wheels then have to swing about 160° the other way while the robot is moving. A wheel can only push in the direction it points, so while it is swinging round it is not pushing, and the robot stalls. You can see it in feed 38 of this run. With no limit the robot is doing 2.2 m/s by 1.2 s. With the simple limit it is still at 1.3 m/s and the racket arrives 23 cm from the shuttle.

Dithering at the line. When the direction it needs is almost exactly ±180°, the wheel cannot make up its mind. The target jumps from one side to the other again and again, 16 to 40 times in a single shot in our tests, and the robot gets away late.

How fast the robot was going during feed 38. The dashed line is when it planned to hit.
The same feed with the simple limit. Part-way through the chase the wheels are thrown right across their range.

03 / THE IDEA

Let the limit depend on what the robot is doing

What we noticed is that the robot always knows what stage of a shot it is in, and that turning a wheel all the way round costs something completely different at each stage. While it is parked and waiting, it costs nothing. In the last half second before the hit, it costs the shot.

  • Two limits instead of one. A soft limit of ±180° applies only when the robot is parked or has been still for a moment. The rest of the time the limit is ±270°, which a cable can still follow.
  • Unwind only when nothing is happening. The wheels turn back towards zero when the robot is parked at its ready position, or has stayed below 0.2 m/s for 0.15 s and is not chasing a shuttle. Slowing down for an instant in the middle of a chase does not count.
  • Never interrupt a chase unless the wheel would otherwise go past ±270°. The robot knows it is in a chase because it has a planned hitting time that has not yet passed.
  • Stay away from the edge. If a new direction would put a wheel within 20° of its limit, the wheel goes to the other side, where there is more room. Once it has chosen a side it sticks with it. That gets rid of the dithering.
  • Point the wheels before setting off. As soon as the robot knows where it has to go, and while it is still standing, the wheels turn to face that way. Then they can push from the first instant.
−270°−180°0°+180°+270°
One steering joint. The outer zones can be used while the robot is moving or chasing a shuttle. The cable is sized for the full ±270°.
What the robot is doingLimit that applies
Parked at the ready position±180°, free to unwind
Still for at least 0.15 s±180°, free to unwind
Moving, or on its way back±270°
Chasing a shuttle, before the hit±270°, and no forced turn inside it

04 / ONE FEED, THREE RULES

Feed 38, step by step

Feed 38 is where the big wind-up above begins, and it is also the feed the simple limit lost. In less than two and a half seconds it shows the whole problem and the answer. Times are counted from the moment the shuttle is launched.

  1. 0.0 s. The robot is still on its way back from feed 37. It is 1.7 m from its ready position and moving at 2.7 m/s. Three of its wheels point at about 40°.
  2. 0.0 to 1.0 s. It curves round to go after the new shuttle. The direction it has to travel swings from 40° to about 175°, and the wheels turn with it.
  3. 1.0 s. The direction crosses the 180° line. This is where the three rules go different ways.
    No limit: the wheels just keep turning.
    Simple limit: the wheels have reached 171° and are thrown back the other way to about 10°. That is a 160° turn while the robot is moving. For the next 0.2 s it is stuck at 1.1 to 1.3 m/s, while in the other two runs it speeds up to 2.2 m/s.
    Phase-aware: the robot is in a chase, so the wheels are allowed into the outer zone. They carry on to 188° and nothing is forced.
  4. 1.43 s, the planned hit. With the simple limit the racket is 23 cm short of the shuttle, a miss. With no limit, and with the phase-aware limit, the robot hits the shuttle and the return lands in court.
  5. 1.6 to 2.4 s. The robot heads for home. With no limit the wheels keep turning the same way and finish the feed 314° further round than they started. With the phase-aware limit they touch 240° for a moment, which is inside the 270° the cable is sized for. Then, with the shot over, they flip to the opposite pointing and finish at 171°, back inside ±180° before feed 39 is launched.

In the replay, the “Test shown” buttons switch between the three rules on this one feed. “Slow motion ¼×” plays it at quarter speed. Watch the wheel forks in the 3D view between 1.0 and 1.4 s.

Feed 38 with the phase-aware limit. Use the buttons above the picture to see the same feed with no limit, or with the simple limit. Open in the full replay ↗

05 / THE RESULT

Safe for the cable, and nearly as good as no limit

We played the same 42 feeds under each rule. For non-stop play we went round them three times, 126 feeds in all, with a new feed every 2.4 s. We also tested each rule with the robot starting every feed from its ready position.

Steering ruleFrom a ready startNon-stop playFurthest a wheel turned
No limit97.1%93 of 1261,924°
Simple ±180° limit94.3 to 94.8%85 of 126178°
Phase-aware limit97.1 to 97.6%90 of 126261°

What this tells us.

  • The cable is safe. With no limit a wheel wound up by 1,924°, more than five turns. With the phase-aware limit the furthest any wheel went was 261°, inside the ±270° the cable is sized for.
  • From a ready start we lost nothing. The simple limit dropped the robot from 97.1% to about 94.5%. The phase-aware limit brought it back to 97.1 to 97.6%.
  • In non-stop play we got most of the lost shots back. The simple limit cost 8 returns in 126. The phase-aware limit cost 3.

Two things to keep in mind when reading the non-stop column. The 90 was measured with an extra data recorder running, and the 93 and 85 without it. And non-stop scores move by a few shots from one run to the next, because the time the robot’s computer takes to plan is counted against it and is never quite the same twice. So a gap of five shots is a sign, not proof. The ready-start column and the wheel angles do not have this problem.

In the three replay runs on this page (30, 29 and 29 of 42) the furthest any wheel turns under the phase-aware limit is 255°, and feed 38, which the simple limit lost, is returned.

The same 42 feeds. Top: the simple ±180° limit. Bottom: the phase-aware limit, which goes into the outer zone only while the robot is moving.
The three replay runs. Each square is one feed, in order. A filled square was returned in court. Feeds 17 and 38 are the same feed, one lap apart. Click a square to replay it.