Chapter 18: Mobile Robots
In April 2011, a few weeks after an earthquake and tsunami wrecked the Fukushima Daiichi power plant in Japan, engineers faced a problem with no human solution. They needed to know what the air inside the damaged reactor buildings was like — how hot, how radioactive, how badly the structure had broken. Sending a person in to look was not an option.
So they sent two machines instead. The robots ran on tracks rather than wheels, because the floors inside were littered with rubble and slick with water. They were about the size of a suitcase, and they carried what a person would have carried: a camera, a thermometer and a radiation meter. Working as a pair, one machine held a heavy door open while the other drove through it, and the readings came back to operators standing safely outside.
Look closely at what that mission needed. A body that could cross a broken floor. A power source that would last the whole trip. Sensors that could report on a place nobody could see. A link back to a human who was still making the decisions. Every robot that moves — in a warehouse aisle, on a pavement, across a field — is built from those same four answers, arranged differently.
Photograph
Fig. 18.0-1 – a tracked mobile robot inside a damaged or industrial interior, seen from slightly above and to the side; the continuous track units, the camera and sensor mast, and a manipulator or gripper arm must all be clearly visible, along with the rubble-strewn floor it is crossing. Sourcing note: a disaster-response or inspection robot in a real working setting, not a studio product shot and not a rendering; images showing only the top surface of the robot, or cropped so the tracks are hidden, are unusable.
This chapter will answer all five of these questions.
18.1 What a Mobile Robot Is
A robotic arm bolted to a factory floor is a formidable machine. It can place a component to within a fraction of a millimetre, repeat that placement for months, and lift loads no person could manage. But it can only work on what is brought to it. Somebody, or some conveyor, has to deliver the work into its reach.
For a great many jobs, that arrangement is impossible. Medicines have to travel from a hospital pharmacy to a ward on the third floor. Cartons have to move from a storage rack to a packing station forty metres away. A field of standing wheat cannot be brought to a machine; the machine has to go to the wheat.
For these tasks the robot itself must move. That single change — a robot that carries itself from place to place — alters almost every design decision that follows, and this chapter is about those decisions.
Carrying its own workspace
You met the idea of a workspace with manipulators: the set of points a fixed arm’s end-effector can actually reach, decided by its link lengths and its joint limits. A fixed arm’s workspace is a region pinned to one spot on the floor. It never grows, and everything the arm works on must be inside it.
18.1.1 Moving to the Task Instead of Waiting for It
A mobile robot solves the problem from the other end. Instead of enlarging its reach, it moves its whole body, taking its modest workspace with it wherever the work happens to be.
The compromise is worth stating plainly. A mobile robot usually reaches less far from its own body than a large industrial arm does, but it can be at any point in a building or a field, which the arm can never be.
The means of that movement is its locomotion system, and this chapter will look at the three ways it is usually built.
Fig. 18.1-1 sets the two arrangements side by side: the fixed arm with its reach envelope drawn around it, and the mobile robot with a path drawn across the floor plan of the same building.
Diagram
Fig. 18.1-1 – two halves of one floor plan of a workshop. Left half: a manipulator on a fixed base with its reach envelope drawn as a shaded region around it, labelled “workspace fixed in space”; a conveyor drawn bringing work into that region. Right half: the same floor plan with a small wheeled robot and a dashed path curving from a storage rack, past a bench, to a packing table, labelled “workspace travels with the robot”; three obstacle blocks placed on the floor that the path steers around
What mobility costs
Mobility is not free, and every price it charges shows up later in this chapter as a design problem.
The robot must carry its own energy. A fixed arm can be fed from a wall supply indefinitely, but a machine that drives away from the wall runs on a battery, and the mission ends when the battery does.
The robot no longer knows where it is. An arm’s base is bolted down, so the position of every joint is known by construction. A mobile robot’s base moves, its wheels slip, and it must work out its own position from sensor readings.
The ground cannot be assumed. Floors are wet, sloped, cluttered, cracked or covered in cable. A machine that moves has to cope with whatever surface it meets, or detect that it cannot and stop.
Finally, the robot shares its space with people. A caged industrial arm is kept away from human beings by a fence; a robot that travels down a corridor is standing next to them all day, which makes sensing and safe stopping central rather than optional.
Both columns of that table are typical figures rather than universal ones, and payload especially depends entirely on the model chosen.
18.1.2 The Subsystems of a Mobile Robot
Almost every mobile robot, from a school-built line follower to a warehouse machine carrying a loaded rack, is assembled from the same five subsystems. Learning to see them separately is what lets you design one, and what lets you diagnose one when it misbehaves.
The block diagram in Fig. 18.1-2 shows how they are joined, and it is worth noticing that two different things travel along those arrows: signals, which are small and carry information, and power, which is large and does work.
Diagram
Fig. 18.1-2 – block diagram of a mobile robot. Blocks: Environment (outside a dashed robot boundary), Sensors, Control Unit, Motor Driver, Motors, Wheels or Tracks or Legs, Power Source. Thin arrows labelled “signal”: Environment to Sensors, Sensors to Control Unit, Control Unit to Motor Driver. Thick arrows labelled “power”: Power Source to Control Unit, to Sensors and to Motor Driver, then Motor Driver to Motors, Motors to Wheels. One thin arrow from Wheels back out to Environment labelled “robot moves”, closing the loop back to Sensors
The structure and locomotion system
The structure carries everything else and holds it in alignment, and the locomotion system converts the motor’s rotation into travel across the ground. Together they decide what terrain the robot can cross, how fast it can go, and how tightly it can turn.
The actuators
The motors are the muscles. In a mobile robot they do two distinct jobs: driving the machine along, and moving whatever the machine carries, such as a lifting platform, a gripper or a sensor mast. Their torque and speed decide whether the robot can climb a ramp with a load on it.
The sensors
Sensors are the robot’s only contact with the world. They report two different kinds of fact: what is outside the robot, such as an obstacle two metres ahead, and what the robot itself is doing, such as how fast a wheel is turning or how far the body has tilted.
The control unit
The control unit is the decision-maker, usually a microcontroller or a single-board computer. It reads the sensors, applies the program, and issues the commands that make the robot move. It holds the robot’s behaviour, and changing that behaviour means changing the program, not the hardware.
The power source
The power source supplies every one of the others. A rechargeable battery pack, commonly lithium-ion, is the usual choice because it stores a large amount of energy for its mass. It must supply not only the steady running current but also the much larger surge a motor draws at the instant it starts turning.
Where a human operator is involved, a sixth block joins them: a communication link carrying commands out to the robot and readings back to the operator. Section 18.3 looks at when that link is essential and when the robot can manage without it.
18.1.3 The Sense–Plan–Act Loop on the Move
Those five subsystems are not simply connected in a row. They form a cycle that repeats many times a second for as long as the robot is switched on, and that cycle is the single most useful idea in this chapter.
The robot senses, decides what to do about what it sensed, acts on that decision, and then senses again — including the results of its own action. Fig. 18.1-3 draws the cycle with the arrow that closes it.
Diagram
Fig. 18.1-3 – flow: sensors read the surroundings → readings converted to values in the control unit → control unit compares them with the goal and decides → command sent to the motor driver → motors turn the wheels → the robot’s position changes, which changes what the sensors will read, with the last arrow returning to the first block to close the loop
That last point deserves a number rather than a sentence. Between one pass of the loop and the next, the robot is travelling blind, acting on information that is already slightly out of date.
Sixty millimetres does not sound alarming, but it is the robot’s blind travel, and it is only the beginning of the story. The robot cannot stop instantly either, so the distance at which it must begin braking is this blind travel plus its braking distance. Run the same loop at \(2 \text{ Hz}\) instead of \(20 \text{ Hz}\) and the blind travel becomes \(600 \text{ mm}\), which is enough to reach a person’s ankles before the machine has even decided to slow down.
This is why loop timing is a safety matter in mobile robotics and not merely a question of programming neatness. A slow loop and a fast robot are a dangerous pair.
The rest of the chapter follows the loop around. Section 18.2 deals with the act stage — the body that carries the robot across the ground. Section 18.3 asks who does the planning, the robot or a person. Section 18.4 takes the sense stage, section 18.5 the machine that has to be built to hold all of it together, and section 18.6 the planning of a whole route rather than a single step.
18.2 Types of Mobile Robots
Everything a mobile robot does begins with the small patch of ground it is touching. Whatever the machine is meant to achieve, it can only push against the surface underneath it, and the way it makes that contact decides where it can go.
Mobile robots are therefore classified first by their locomotion: wheels, tracks or legs. The three are not three fashions of doing the same thing. They are three different bargains between simplicity, efficiency and the roughness of the ground.
18.2.1 Wheeled Mobile Robots
Wheeled mobile robots are by far the most common type, and the reason is worth understanding rather than memorising. A wheel converts the motor’s rotation directly into travel with almost nothing in between — no linkage, no gait, no sequence of steps. Fewer moving parts means simpler construction, lower cost and less to go wrong.
They are also the most energy-efficient of the three. A rolling wheel touches the ground over a very small patch, and it lays that patch down and picks it up again without dragging. Very little of the motor’s energy is lost to friction, so more of the battery’s charge goes into actual travel.
How a wheeled robot steers
The commonest arrangement in a small robot is differential drive: two wheels on a common axis, each with its own motor, and one or two passive castor wheels that carry the rest of the weight without being driven.
Steering then needs no steering mechanism at all. Drive both wheels at the same speed and the robot runs straight. Drive one faster than the other and it curves towards the slower side. Drive them at equal speeds in opposite directions and it spins about the midpoint between them, turning within its own footprint. Fig. 18.2-1 shows the layout and the three cases.
Diagram
Fig. 18.2-1 – top view of a differential-drive robot chassis: two driven wheels on a common axis at the rear, each labelled with its own motor, and one castor wheel at the front labelled “passive, carries load only”. Beside it, three small versions of the same chassis labelled “straight”, “gentle left turn” and “turn on the spot”, each with an arrow on every driven wheel whose length shows its speed and whose direction shows its rotation, plus a dashed path curve for the first two
Larger wheeled robots use four-wheel drive for extra grip, or omni-wheel arrangements where the wheel can also roll sideways, allowing the robot to move sideways without turning first. Those wheel types — standard, castor, Mecanum and Omni — were covered when you studied the mechanical subsystem, and the choice made there directly limits the paths a robot can follow here.
That limitation about step height is a useful piece of workshop judgement. A robot on 65 mm wheels has a wheel radius of about 33 mm, so a doorway threshold or a cable duct 30 mm high is already close to the limit, and it may stop the machine dead however much torque the motor has.
18.2.2 Tracked Mobile Robots
A tracked mobile robot replaces its wheels with a continuous belt, or track, wrapped around a driven sprocket at one end and an idler wheel at the other, with smaller rollers pressing the lower run of the belt against the ground. The motor turns the sprocket, the belt is laid down in front and picked up behind, and the machine crawls forward along it. Fig. 18.2-2 shows the arrangement from the side.
Diagram
Fig. 18.2-2 – side view of one track unit: a continuous track drawn as a loop around a large drive sprocket at the rear (labelled, with a curved arrow showing rotation) and an idler wheel at the front, with three small support rollers pressing the lower run down. The straight lower run of the belt marked with a dimension line labelled “contact length”, and the ground drawn as an uneven surface beneath it
The whole lower run of the belt touches the ground, so the robot’s weight is spread over a long strip instead of four small patches. This is the property that decides almost everything else about a tracked machine, and it is called ground pressure.
Spreading the load does two things at once. It stops the machine sinking into soft ground, and it puts far more rubber in contact with the surface, which increases traction — the grip available before the belt slips. A tracked robot can therefore climb, drag and push where a wheeled one would spin helplessly.
The long belt also bridges gaps and small obstacles. Where a rigid wheel meets a step and has to climb it, a track lays itself over the edge and pulls the machine up.
What tracks cost
Tracks turn by skid steering: the two belts are driven at different speeds, and the machine slews round by dragging its belts sideways across the ground. That scrubbing wastes energy, wears the belt, and can scar a smooth floor, so a tracked robot is markedly less efficient than a wheeled one and drains its battery faster.
There is more to go wrong as well. Sprockets, idlers, rollers and belt tension all need maintenance, and a belt thrown off its sprocket in the field immobilises the robot completely.
18.2.3 Legged Mobile Robots
Wheels and tracks both need a continuous path along the ground. A legged mobile robot does not. It moves by articulated legs that imitate biological locomotion, placing each foot on a chosen spot and lifting it clear of everything in between.
That is the whole point of legs, and it is easy to miss. A staircase, a heap of rubble or a stretch of rocky ground offers no continuous surface at all, but it usually offers plenty of separate places to put a foot. Fig. 18.2-3 shows a four-legged robot on such ground.
Photograph
Fig. 18.2-3 – a four-legged (quadruped) robot walking on rough outdoor ground or a staircase, photographed from the side and low down so that all four legs and the joints in each leg are clearly visible, with at least one foot lifted clear of the surface. Sourcing note: an inspection or research quadruped in a real setting; studio shots on flat floors, renderings, and toy or entertainment robots are unusable because the point of the image is the leg geometry against irregular terrain.
Each leg carries two or three powered joints, which is where the cost lies. A differential-drive robot needs two motors in total. A four-legged robot with three joints per leg needs twelve, each with its own driver, its own position sensing and its own share of the control program.
Staying upright
A wheeled robot is stable simply by standing there. A legged robot has to be kept stable, and the idea that governs this is the support polygon: the shape drawn on the ground by joining the feet that are currently touching it, as in Fig. 18.2-4.
Diagram
Fig. 18.2-4 – top view of a four-legged robot. Three feet marked as filled circles on the ground and one foot marked as a hollow circle labelled “lifted”; a shaded triangle joining the three filled circles labelled “support polygon”; a cross marked inside the triangle labelled “centre of mass projected onto the ground”; a second smaller sketch beside it showing the cross falling outside the triangle, labelled “robot topples”
So long as the robot’s centre of mass falls inside that polygon, the machine stands. Lift a foot and the polygon shrinks, so the robot must shift its body before it lifts, and it must do this afresh for every step. Walking, for a robot, is a continuous balancing calculation.
18.2.4 Matching the Locomotion Type to the Terrain
None of the three types is better than the others. Each is the correct answer to a different question, and the question is always about the ground.
The reasoning runs in one direction only. Start with the worst surface the robot will actually meet, not the average one, and then choose the simplest locomotion that can cross it.
Simplest matters because every step up in complexity is paid for twice: once when the machine is built, and again every hour it runs, in battery capacity and in maintenance. A tracked robot patrolling a warehouse aisle is not a safer choice than a wheeled one; it is a slower, thirstier and more expensive one solving a problem the warehouse does not have.
18.3 Autonomous and Semi-Autonomous Mobile Robots
Section 18.2 settled what carries the robot across the ground. This section settles a different question, and often a harder one: who decides where it goes.
Two machines can be mechanically identical — same chassis, same motors, same sensors — and still be completely different robots, because in one of them a person is inside the decision loop and in the other one nobody is.
18.3.1 What Autonomy Means
The word autonomous is used loosely in everyday speech, where it tends to mean nothing more than “works by itself”. In engineering it has a sharper sense, and the sharpness matters.
An automatic machine repeats a fixed sequence. A domestic washing machine fills, agitates, drains and spins in the same order every time, and it will run that sequence whether the drum is full or empty. Nothing in its surroundings changes what it does next.
An autonomous machine chooses. It is given a goal rather than a sequence, it reads its surroundings, and it selects the action that gets it closer to the goal in the situation it actually finds. Two runs of the same task can produce two different sets of actions, because the corridor was blocked on Tuesday and clear on Wednesday.
Where the human sits in the loop
The clearest way to think about autonomy is to go back to the sense–plan–act loop of section 18.1 and ask which stage the human occupies. Fig. 18.3-1 draws the two extremes.
Diagram
Fig. 18.3-1 – two versions of the sense–plan–act loop side by side inside dashed robot boundaries. Left, labelled “teleoperation”: arrow from Sensors leaves the boundary to a block labelled Human Operator outside it, and the operator’s command arrow returns across the boundary to Actuators; the Plan block inside the robot is drawn empty. Right, labelled “autonomous”: Sensors, Plan and Actuators all inside the boundary with the loop closed internally, and a single thin arrow entering from outside labelled “goal only”
In teleoperation, the sensing is done by the robot and the acting is done by the robot, but every decision is taken by a person watching a screen somewhere else. The machine supplies muscles and eyes; the operator supplies judgement.
At the other extreme the whole loop closes inside the robot. A person may set the goal — collect the rack from bay fourteen — but nobody chooses the route, nobody decides to swerve round the trolley in the aisle, and nobody is watching.
Between these two lie all the practical machines, which is why autonomy is best pictured as a scale rather than a switch, as in Fig. 18.3-2.
Diagram
Fig. 18.3-2 – a horizontal scale drawn as an arrow, labelled “human decides everything” at the left end and “robot decides everything” at the right end. Four labelled markers placed along it in order: “direct teleoperation — operator drives every movement”, “operator-assisted — robot avoids collisions, operator chooses the route”, “supervised autonomy — robot plans and drives, operator approves critical steps”, “full autonomy — operator sets the goal only”
18.3.2 Autonomous Mobile Robots
An autonomous mobile robot carries out its whole task without a person taking its decisions. It works out where it is, chooses a route to its goal, drives that route, and deals with whatever appears in front of it on the way.
Three things have to be true before that is possible.
The robot must be able to perceive enough. Autonomy rests entirely on sensing, and usually on several sensors at once, because no single sensor sees everything. Section 18.4 takes this up in detail.
The robot must know what it is trying to achieve. A goal — a destination, a row to be inspected, an area to be covered — has to be expressed in terms the program can act on.
The environment must be predictable enough to plan in. Warehouse aisles, hospital corridors and laboratory floors are structured: the layout is known, the surface is uniform, and the surprises are of a limited and expected kind, such as a person stepping out or a carton left on the floor.
Because nobody is watching, an autonomous robot leans heavily on its sensors, and it must combine readings from more than one of them to be confident about anything. A single ultrasonic reading that suddenly says “obstacle at 20 cm” may be an echo off a smooth angled surface rather than a real object.
Where autonomy is worth having
Autonomy earns its cost in three situations, and it is worth naming them because they explain every real deployment you will meet.
Where the work is repetitive and continuous, an autonomous machine can run all shift without occupying a person’s attention — the case for warehouse robots and self-navigating delivery machines.
Where the number of machines is large, autonomy is the only option, because fifty robots would otherwise need fifty operators.
Where a human decision could not arrive in time, or at all, the robot must decide for itself. An exploration robot far from its operators, or one working where the radio link is unreliable, has no alternative.
The honest limitation is that an autonomous robot is only as good as the situations its designers anticipated. Faced with something genuinely outside its programming — a flooded aisle, a sensor blinded by sunlight, a shape it has never been taught — it will do something, and what it does may be wrong. Testing an autonomous robot is therefore a far larger job than building one.
18.3.3 Semi-Autonomous Mobile Robots
A semi-autonomous mobile robot divides the work. The robot handles the fast, continuous, low-level control, and a human operator handles the decisions that need judgement.
This division is not a compromise so much as a sensible allocation. The robot is very good at things that must happen twenty times a second: holding a straight course, stopping before it hits a wall, keeping its body level. The person is very good at things a program handles badly: recognising that the shape ahead is a survivor rather than a beam, or deciding that this doorway is the one worth entering.
So the operator says “go through that opening and look left”, and the robot works out the motor commands, corrects its own drift and refuses to drive into the frame on the way. Neither party could do the task alone.
The link is the weak point
Everything semi-autonomous depends on a communication link, and the link is where these systems fail. Two properties of it decide the design.
The first is bandwidth. Video from a camera is a large amount of data, and if the link cannot carry it, the operator is driving on a stale or stuttering picture.
The second is delay. A command takes time to reach the robot and a picture takes time to come back, and the operator’s own reaction time is added on top of both.
Compare that \(0.60 \text{ m}\) with the \(60 \text{ mm}\) a robot travels between its own decisions, calculated in section 18.1. The robot’s reflexes are an order of magnitude quicker than the human’s, which is precisely why collision avoidance is given to the machine even when the route is left to the operator.
18.3.4 Choosing the Degree of Autonomy
The two arrangements are compared feature by feature in Table 18.3.
Choosing between them comes down to four questions, asked in this order.
How predictable is the environment? A known building with a known layout can be planned in; a collapsed structure cannot.
What does a wrong decision cost? Where a mistake means a scuffed carton, let the robot decide. Where it means injury or the loss of an expensive machine in a place nobody can reach, keep a person in the loop.
Is a reliable link available? Radio does not pass easily through thick reinforced concrete, through earth, or through water, and a semi-autonomous design that assumes a link it will not get is a design that fails on the day.
Is a person available for the whole task? One operator per robot is affordable for a single rescue machine and impossible for a fleet.
18.4 Sensing and Perception
18.4.1 Why a Moving Robot Must Sense Continuously
A manipulator bolted to the floor can be told about its world once. The conveyor is here, the fixture is there, the tray arrives at this height, and none of it moves. Its program can carry those facts as constants.
A mobile robot has no such luxury. Its own position changes with every turn of a wheel, the corridor it planned to use may be blocked, and the floor it is about to cross may have been mopped. Everything it needs to know it must find out, over and over, while moving.
That is why sensing occupies a whole section of this chapter. For a mobile robot, perception is not an accessory. It is the only connection between the machine and reality.
Two kinds of question
The sensors on a mobile robot answer two quite different questions, and it helps to keep them apart from the start.
You have both yourself. Your eyes are exteroceptive; the sense that tells you, with your eyes shut, that your arm is raised is proprioceptive. A robot needs both for the same reason you do: knowing the world is useless if you do not know what you are doing in it.
Fig. 18.4-1 shows where the two kinds sit on a small wheeled robot.
Diagram
Fig. 18.4-1 – side and top view of a small wheeled robot with its sensors labelled and grouped. Marked exteroceptive: an ultrasonic sensor facing forward with its beam drawn as a widening cone, two IR sensors pointing down at the floor near the front edge, a camera on a short mast, and a bump switch on the front bumper. Marked proprioceptive: an encoder disc drawn on one drive wheel, and an inertial sensor drawn as a small block at the centre of the chassis. A key beside the drawing distinguishing the two groups
One warning before the details. Every sensor in this section has conditions under which it reports something confidently wrong. It does not fail by going silent — it fails by lying. That single fact drives the rest of the section, and it is why subsection 18.4.5 exists at all.
18.4.2 Sensing the Surroundings
The ultrasonic sensor
An ultrasonic sensor emits a short burst of sound at a frequency too high to hear, then measures how long the echo takes to come back. Since sound travels at a known speed, the time gives the distance. It is the same trick a bat uses.
The one subtlety is that the sound makes the journey twice — out to the object and back again — so the measured time must be halved before the distance is worked out. Fig. 18.4-2 shows the path and the timing.
Diagram
Fig. 18.4-2 – two panels. Left panel: an ultrasonic sensor facing a flat wall square on, with an arrow labelled “out” going to the wall and a second arrow labelled “back” returning, the gap between sensor and wall marked d, and a small timing sketch below showing the transmitted burst, a gap labelled t, and the received echo. Right panel: the same sensor facing a wall tilted at about 45 degrees, with the outgoing arrow striking the surface and the reflected arrow going off to one side, past the sensor, labelled “echo never returns”
That calculation also shows where the sensor’s accuracy comes from. The speed of sound is not a fixed number: it rises by roughly \(0.6 \text{ m/s}\) for every degree the air warms. A robot calibrated in a cool laboratory and driven into a hot yard will read about two per cent short, which is a centimetre in every half metre.
The larger problems are geometric. Sound spreads out in a cone rather than a narrow beam, so the sensor reports the nearest object anywhere in that cone, not the object directly ahead. A chair leg can slip between successive cones and be missed entirely. Cloth, foam and thick dust absorb the pulse and return almost nothing. And a hard surface met at a slant reflects the pulse away like a mirror, so the sensor hears no echo and reports a clear path where there is a wall.
The infrared sensor
An infrared (IR) sensor shines infrared light and measures how much of it comes back. Close, pale, matt surfaces reflect strongly; distant or dark ones reflect weakly.
On a mobile robot this makes it the natural choice for two jobs. Pointed downwards at the floor, a pair of IR sensors distinguishes a dark line from a pale floor, which is the whole basis of line following. Pointed down at the very front edge, a single one detects the absence of floor — the edge of a step or a loading bay — and stops the robot before it drives off.
IR sensors are cheap, draw little power and respond quickly. Their weaknesses are that they work only over short distances, that bright sunlight or a strong lamp can swamp the reflected signal, and that they confuse colour with distance: a black object close by and a white object further away can produce the same reading.
LIDAR
Light detection and ranging (LIDAR) works on the same timing principle as the ultrasonic sensor, but with a laser pulse instead of sound, and usually with the beam swept rapidly around the robot. Each sweep returns hundreds of range readings at known angles, which together form an outline of the surroundings, as in Fig. 18.4-3.
Diagram
Fig. 18.4-3 – top view of a small room with a wheeled robot in the middle carrying a LIDAR unit. Thin rays drawn radiating outward at regular angular intervals, each ending in a dot where it meets a wall, a doorway edge or a table leg. The dots joined by a light dashed line to show the outline the robot has measured, with the open doorway appearing as a gap in that outline
This is a much richer measurement than a single distance. It tells the robot the shape of the space, not merely that something is ahead, and it is what lets a robot recognise a corridor, find a doorway, or match what it sees against a stored map.
LIDAR is fast, accurate over metres rather than centimetres, and unaffected by the darkness that defeats a camera. It is also the most expensive sensor on most robots, it can be confused by glass and polished metal, and smoke, fog and heavy dust scatter the beam — which matters, because those are exactly the conditions of the places rescue robots are sent into.
Cameras and contact sensors
A camera gives more information than any other sensor, but it arrives as an image that must be processed before it means anything, and it needs light to work at all.
At the other extreme sits the humble touch or bump sensor: a switch on the bumper that closes when the robot strikes something. It tells the robot nothing until the collision has already happened, which is why it is never the primary sensor. It is the backstop — and every failure mode listed above is the reason a well-built robot still carries one.
Every range above is a typical figure for a common module and varies considerably between manufacturers and models; the datasheet for the exact part is the only authority.
18.4.3 Sensing the Robot’s Own Motion
Counting the wheels
The simplest proprioceptive sensor is an encoder on a drive wheel, which produces a fixed number of electrical pulses for every rotation. Counting pulses gives the angle the wheel has turned, and multiplying by the wheel’s circumference gives the distance it has rolled. Estimating position this way is called odometry.
Odometry has one fatal weakness, and it is worth stating bluntly. It measures what the wheel did, not what the robot did. Every slip on a wet tile, every scuff during a turn, every millimetre of tyre wear puts the estimate wrong — and because each reading is added to the last, the errors accumulate rather than cancelling. If the wheels slip by three per cent, the robot believes it has travelled \(3.06 \text{ m}\) when it has really covered about \(2.97 \text{ m}\), and the gap only widens as the run goes on. This steady accumulation of error is called drift.
Inertial sensors
A gyroscope measures the rate at which the robot’s body is rotating, and an accelerometer measures its linear acceleration. Packaged together on one small module, they form an inertial measurement unit (IMU).
For a mobile robot the IMU answers questions the wheels cannot. It reports how far the body has actually turned, which catches the case where one wheel spun on a wet patch and the robot did not turn as commanded. It reports tilt, which tells the robot it is on a ramp or close to toppling. A two-wheeled balancing robot stays upright on gyroscope and accelerometer readings alone, correcting its lean many times a second.
The IMU drifts too, and for the same reason. It measures rates and accelerations, and a heading has to be built up by adding those measurements over time, so a tiny constant error becomes a large one after a minute of driving.
18.4.4 Sensing Position in the Wider World
Odometry and the IMU both answer the question “how far have I come since I started?” Neither can answer “where am I?” — and after enough drift, the first answer stops being a usable substitute for the second.
Outdoors, a global positioning system (GPS) receiver answers it directly. By receiving timing signals from several satellites, the module reports the robot’s latitude and longitude on the Earth’s surface. This is an absolute position, so it does not drift: an error made an hour ago does not affect the reading taken now.
That makes GPS essential for outdoor work — a delivery robot crossing a campus, or a field machine that must cover every row of a plot without missing one.
Its limitations are equally clear. A standard receiver is accurate to a few metres, which is fine for choosing a street and useless for staying in a lane. It updates slowly, often about once a second, which is far too slow to steer by. And it needs a clear view of the sky, so it degrades under dense trees, fails between tall buildings where the signals bounce, and does not work indoors at all — which rules it out for exactly the warehouses and hospitals where most mobile robots work.
18.4.5 Sensor Integration and Sensor Fusion
Set the last three subsections side by side and a pattern appears. Odometry is fast, smooth and steadily wrong. GPS is slow and coarse but never drifts. The IMU catches rotations the wheels miss, but drifts itself. LIDAR gives shape but not identity; a camera gives identity but needs light.
No single sensor is adequate — and, crucially, the weaknesses are not the same weaknesses. That is the opportunity sensor fusion exploits.
Integration is a hardware problem too
Integration covers more than the arithmetic. Getting several sensors to work together on one moving machine raises four practical problems, and each has cost somebody a working robot.
Placement and field of view come first. A sensor perceives only where it points and only as wide as its beam. An ultrasonic sensor mounted high on a mast will not see a low kerb, and one mounted behind a projecting bumper spends its life measuring the robot’s own frame.
Timing comes second. An encoder can be read thousands of times a second, an ultrasonic sensor perhaps fifteen times, a GPS module once. Readings taken at different instants describe different situations, and a fused estimate has to allow for that rather than pretending they all arrived together.
Electrical noise comes third. The drive motors are the noisiest things on the robot, and their switching currents couple into nearby signal wires. Sensor cables run alongside motor leads produce readings that jump every time the robot accelerates.
Power and grounding come fourth. Every sensor needs a supply within its rated voltage, and every sensor’s ground must be common with the control unit’s ground. Without a shared ground the sensor’s output voltage has no fixed reference, and its readings mean nothing at all.
Fig. 18.4-4 shows how the separate streams come together.
Diagram
Fig. 18.4-4 – block diagram of sensor fusion. Four input blocks on the left labelled “wheel encoders — fast, drifts”, “IMU — fast, drifts”, “GPS — slow, absolute, outdoors only” and “LIDAR or camera — shape and landmarks”, each with an arrow into a central block labelled “fusion in the control unit”. One arrow out of the central block into a block labelled “best estimate of position and heading”, and from there an arrow to a block labelled “planning and motor commands”
18.5 Basic Design Principles
Designing a mobile robot is a chain of decisions, and each link in the chain constrains the next. Choose a heavier chassis and you need stronger motors. Stronger motors draw more current, so the battery must be larger. A larger battery is heavier, which brings you back to where you started.
That circle is not a flaw in the reasoning; it is the reasoning. A good design goes round it two or three times and settles. This section walks through the five subsystems in the order a designer actually meets them.
18.5.1 The Chassis
The chassis is the structural backbone of the robot. Everything else is fixed to it, and it decides where everything else sits.
That last phrase carries more weight than it seems to. A robot’s program assumes that the ultrasonic sensor points straight ahead and that the two drive wheels are parallel. If a bracket flexes each time the machine starts, the sensor is no longer looking where the program believes, and no amount of clever software will fix a chassis that moves.
Where the mass goes
A chassis is also a decision about where the weight sits, and two rules govern it. Keep the heaviest item — almost always the battery — as low as possible, and keep the centre of mass inside the area bounded by the wheels. Fig. 18.5-1 shows a layout that follows both.
Diagram
Fig. 18.5-1 – top view and side view of a small differential-drive chassis. Top view: two driven wheels on a central axis, a castor at the front, the battery pack drawn as a shaded block placed centrally and slightly behind the drive axis, the control board and motor driver mounted forward of it, and the ultrasonic sensor bracket at the front edge; a dashed triangle joining the two wheel contact points and the castor contact point, labelled “support area”, with the centre of mass marked as a cross inside it. Side view: the same chassis showing the battery mounted low, close to the deck, with the height of the centre of mass marked by an arrow from the ground
Raise the centre of mass and the robot becomes easier to tip on a ramp or during a sharp turn. Push it outside the wheel base and the machine tips without any provocation at all. Neither is a subtle failure — the robot simply falls over the first time it is asked to work.
Choosing the material
The materials you met in the mechanical subsystem — MDF, acrylic, aluminum and steel — line up along one axis for this purpose: stiffness gained against mass added. MDF and acrylic are cheap, easily cut in a school workshop and quite adequate for a small indoor robot. Aluminum is far stiffer for its mass and is the usual choice once the machine has to carry a load. Steel is stronger still, but a steel chassis on a small robot is mostly a way of making the motors work hard for nothing.
The discipline to hold on to is this: every gram of chassis is a gram the motors must accelerate, the brakes must stop and the battery must move for the whole of its charge.
18.5.2 The Drive System
The drive system converts electrical energy into controlled motion. In a small robot it is a motor, a gearbox and a wheel, repeated on each driven side.
Sizing it is a question with a numerical answer, and the answer comes from the worst case the robot will meet — not the average one. For most machines the worst case is starting from rest, fully loaded, on the steepest slope it will ever have to climb.
Two forces resist that climb. Gravity pulls the robot back down the slope with a component \(mg\sin\theta\), and rolling resistance opposes the motion with roughly \(\mu mg\cos\theta\), where \(\mu\) is a rolling resistance coefficient for the wheel on that surface.
Speed against torque
A motor on its own turns fast and pushes weakly. A gearbox trades one for the other: reduce the output speed by a factor and the available torque rises by roughly the same factor, less what is lost to friction inside the gears.
This is the single most common fix for a robot that cannot climb its ramp. The answer is usually not a bigger motor but a larger reduction ratio — accepting a slower robot in exchange for one that moves at all.
The choice also feeds directly into the next subsystem, because the current a motor draws rises with the torque it is asked to produce. A drive sized for the worst case must be powered for the worst case too.
18.5.3 The Power System
The power system supplies every other block. It has to meet two separate demands, and designs fail by forgetting the second one.
The first demand is energy: enough total charge to run the robot for as long as the task lasts. The second is peak current: the surge a motor draws in the instant it starts turning, which is several times its steady running current.
Sizing for endurance
A battery’s capacity is usually printed in milliampere hours, and the arithmetic for runtime is simple.
Sizing for the surge
The surge is where designs come apart. When a motor starts, its current climbs sharply, and that current has to come through the battery’s internal resistance and the wiring. The supply voltage dips for a few milliseconds.
If the control board is fed from the same rail, that dip can take its supply below the voltage it needs, and the board resets. The robot’s symptom is unmistakable and baffling to a beginner: the program restarts every time the motors start, so the machine twitches and never gets anywhere.
The remedies are standard. Give the logic its own regulated supply, or its own pack, so the motor surge does not reach it. Keep motor wiring short and thick. Fit decoupling capacitors close to the board. And whatever else is done, join the grounds — two supplies with no common ground give the signal wires no reference at all, and every reading and command between the boards becomes meaningless.
18.5.4 The Control Board and the Motor Driver
The control board is the decision-making core: a microcontroller board such as an Arduino UNO for simple robots, or a single-board computer such as a Raspberry Pi 5 where camera processing is needed. It reads the sensors, runs the program and issues commands.
What it cannot do is drive a motor.
Why the pin cannot do the job
A microcontroller output pin is a signalling device, not a power source. On a common ATmega328P-based board each pin is rated for a current of the order of twenty milliamperes, with limits on the total drawn across all pins together.
A small geared motor of the kind used on a school robot draws hundreds of milliamperes while running and considerably more at the instant it starts or when it is stalled against an obstacle. Ask the pin for that and, at best, the board’s protection intervenes and the robot behaves erratically; at worst the pin is destroyed.
There is a second reason, quite separate from current. A motor is a coil of wire, and switching the current in a coil produces a voltage spike as the magnetic field collapses. Those spikes are perfectly capable of damaging logic that is connected directly to them.
What the motor driver does
A motor driver sits between the two worlds. Its input side takes small logic signals from the control board; its output side switches the battery’s current through the motor. The board decides, the driver does the work, and the two are electrically separated except for a shared ground reference.
A driver such as the L298N contains an H-bridge for each motor — an arrangement of four switches that can connect the motor to the supply either way round, so the same driver reverses the motor as well as running it.
Speed is set by pulse width modulation (PWM): the driver’s enable input is switched on and off many times a second, and the fraction of each cycle for which it is on is the duty cycle. A higher duty cycle delivers more average power to the motor and turns it faster. On an Arduino board this comes from analogWrite() on a PWM-capable pin.
Fig. 18.5-2 shows the whole arrangement, and the single most important line in it is the ground.
Diagram
Fig. 18.5-2 – circuit: Arduino UNO driving two DC gear motors through an L298N motor driver module. From the UNO, pin 5 to ENA and pin 6 to ENB (both labelled “PWM, sets speed”); pins 7 and 8 to IN1 and IN2, pins 9 and 10 to IN3 and IN4 (labelled “direction”). On the driver, OUT1 and OUT2 to the left motor terminals, OUT3 and OUT4 to the right motor terminals. A 7.4 V battery pack: positive to the driver’s motor supply terminal, negative to the driver’s GND terminal. A separate supply feeding the UNO. A single heavy line drawn from the driver’s GND terminal to the UNO’s GND pin, labelled “common ground — without this the driver cannot read the control signals”. Each wire labelled with its pin name
18.5.5 Control Algorithms and Closed-Loop Motion
The last design principle is not a component at all. It is the question of whether the robot checks its own work.
Send a motor a fixed command and hope for the best, and you have an open-loop system: the robot has no idea whether the wheel is actually turning at the speed asked for. Measure the result and correct the command from the difference, and the loop is closed.
The structure of the closed loop is always the one drawn in Fig. 18.5-3, whatever the quantity being controlled.
Diagram
Fig. 18.5-3 – flow: desired speed (setpoint) → comparison point where the measured speed is subtracted, producing the error → controller block → command as a PWM duty cycle → motor driver → motor and wheel → actual speed, with a branch from the actual speed going to an encoder block and returning to the comparison point as the feedback line, closing the loop. The comparison point marked with a plus sign on the setpoint input and a minus sign on the feedback input
PID control
The most widely used controller for the block in the middle is PID, and each of its three letters answers a different question about the error.
The practical lesson of this whole section is that the five subsystems are not independent. The chassis mass sets the motor torque, the torque sets the current, the current sets the battery and the driver, and the sensing decides whether any of it can be corrected when reality disagrees with the plan.
18.7 Applications of Mobile Robots
Three settings show what the last five sections were for. In each of them, look for the same thing: the problem that made a mobile robot worth building, and the design decisions that problem forced.
18.7.1 Logistics and Warehouse Automation
Start with the problem, because the solution is surprising only if you skip it.
In a conventional warehouse, an order picker walks to the shelf holding each item, takes it, and walks on to the next. Across a shift in a large building that adds up to many kilometres of walking, and almost all of the picker’s time is spent travelling rather than picking. The bottleneck is not the person’s hands; it is the distance between the shelves and the packing bench.
The mobile robot’s answer inverts the whole arrangement. Instead of sending the worker to the shelf, send the shelf to the worker. Low, flat robots drive underneath a movable rack, lift it a few centimetres, and carry the entire rack to a picking station where a person stands still and picks from rack after rack as they arrive. Fig. 18.7-1 shows the layout.
Diagram
Fig. 18.7-1 – plan view of a fulfilment area. A dense block of movable racks drawn as squares in a grid with narrow lanes between them; three picking stations drawn along the left edge with a person symbol at each; several low robots drawn as small rectangles, two under racks and moving along lanes with arrows showing their direction, one empty and returning; a charging bay drawn at the bottom edge. Labels: “movable racks”, “robot carrying rack to station”, “picking station”, “charging bay”
Every design choice follows from the building. The floor is flat, swept and indoors, so wheels are the obvious locomotion and tracks would only waste charge. The load is heavy and the robot must pass under a rack, so the chassis is wide, low and carries its battery at the very bottom. The routes are fixed lanes, so the planner works on a grid that matches the lane layout exactly.
Localisation is handled in a way worth noticing. Rather than fit every robot with an expensive sensor to work out where it is, the operator marks the floor with a regular pattern of coded markers that a downward-facing camera on each robot reads. The building has been engineered for the robot, which is far cheaper than engineering the robot for an arbitrary building.
18.7.2 Transportation and Last-Mile Delivery
The economics of a delivery are lopsided. Moving a parcel a thousand kilometres by rail or road is cheap per parcel, because thousands travel together. Moving that same parcel the last kilometre — from a local depot to one doorstep — is expensive, because it is carried alone. This final stretch is called last-mile delivery, and it is where mobile robots are being tried.
A pavement delivery robot is a small, slow, insulated box on six wheels. It travels at roughly walking pace, carries a single order, and crosses roads at marked crossings. Fig. 18.7-2 shows one at a kerb.
Photograph
Fig. 18.7-2 – a small six-wheeled pavement delivery robot on a public footpath, photographed from the side at low height, with its wheels, its sensor mast or camera housing and its cargo lid all visible, and pedestrians or a kerb in the frame to give scale. Sourcing note: the robot must be in genuine outdoor public use, not a trade-show stand or a rendering; images cropped so the wheels or the surroundings are lost are unusable, because the point is the machine’s size relative to the pavement it shares.
The environment sets every requirement, and it is a far harder environment than the warehouse.
The robot is outdoors, so it fuses GPS for absolute position with odometry and an inertial measurement unit for the metres between fixes. It meets kerbs and driveway ramps, so its wheels are relatively large and its drive is geared for torque rather than speed. It travels among people who have not been trained to expect it, so it is deliberately slow, gives way rather than asserting priority, and stops for anything ambiguous.
That last habit produces the design’s most interesting feature. A robot that stops whenever it is unsure will stop often — at an unmarked obstruction, a crowd, a parked vehicle across the path. Rather than trying to program an answer for every case, operators keep human staff at a remote console who take control of any robot that has stopped, drive it through the difficulty, and hand it back to autonomy. One person can supervise many robots precisely because each needs help only occasionally. This is the shared control of section 18.3 turned into a business model.
18.7.3 Search and Rescue
After an earthquake, an explosion or a mine collapse, rescuers face a problem that no amount of courage solves. The structure that has already fallen once may fall again, the air inside may not be breathable, and the voids in the rubble where survivors are most likely to be trapped are frequently too small for a person to enter at all.
A search-and-rescue robot is sent in to answer questions, not to lift anything. Is anyone in this void? Is the air safe? Where does this passage lead? Every answer it brings back shapes what the rescue team does next, and every hour saved matters, because survival rates fall steeply with time.
The design follows from rubble. Locomotion is tracked or legged, because there is no continuous floor. The body is sealed against dust and water and built to survive being dropped down a hole. Many such robots are designed to keep working whichever way up they land.
The payload is a set of senses borrowed for a human being: a camera with its own lighting, a thermal camera that finds body heat in the dark, a gas detector that reports whether the void is breathable, and a two-way audio link so that a rescuer can speak to anyone found and hear the reply. Fig. 18.7-3 shows the arrangement.
Diagram
Fig. 18.7-3 – cross-section through a collapsed slab structure. A void beneath broken concrete slabs, with a tracked robot part way along it, drawn with labelled payload: camera with lamp, thermal camera, gas detector, speaker and microphone. A cable drawn running from the robot back out of the rubble to an operator station outside, where a person is shown at a screen, labelled “tether: carries video out and commands in, and does not depend on radio through concrete”. A survivor position marked ahead of the robot in the void
Control is where these robots differ most sharply from the two above. The environment is unknown, unmapped and unrepeatable, so global path planning has almost nothing to work on, and the judgement needed at every turn is human. These machines are teleoperated or semi-autonomous, with the robot handling only what must be fast — holding a heading, refusing to drive off a drop — while a rescuer decides where to go.
Communication is the recurring failure. Radio does not pass reliably through reinforced concrete and earth, so many of these robots trail a tether that carries video out and commands in. A tether is a nuisance — it snags, it limits range, it must be reeled — and it is used anyway, because a robot that cannot report is worse than no robot at all.
Reading the three side by side
The three applications use the same five subsystems and arrive at three different machines, because they answer to three different environments.
One pattern runs through the whole table. The more the environment can be controlled, the more autonomy is worth building; the less it can be controlled, the more a human stays in the loop. That is the same conclusion section 18.3 reached from first principles, arrived at here from three real settings.
Mobile robots work in other fields too — carrying supplies through hospital corridors and moving through fields to monitor crops — and both of those are studied in detail in Class XII.
18.8 Summary
What a mobile robot is
- A mobile robot carries its own locomotion mechanism and moves from place to place while performing a task, instead of working from a fixed base. It does not enlarge its reach; it takes its small workspace to wherever the work is.
- Mobility is paid for four times over. The robot must carry its own energy, it no longer knows its position by construction and must estimate it from sensors, it cannot assume anything about the ground, and it shares its space with people.
- Almost every mobile robot is built from five subsystems: the structure and locomotion system, the actuators, the sensors, the control unit and the power source. A communication link is added wherever a human operator is involved.
- The subsystems work as a repeating cycle, the sense–plan–act loop: sense the surroundings and the robot’s own state, plan the next action from those readings and the goal, act through the actuators, then sense again — because the robot’s own action has changed the situation.
- Latency is the delay between something changing and the robot’s response reaching its actuators. Between two passes of the loop the robot travels blind, a distance given by \(d = v \times T\), so a slow loop and a fast robot are a dangerous combination.
Types of mobile robots
- Mobile robots are classified by locomotion into wheeled, tracked and legged machines. The three are three different bargains between simplicity, efficiency and the roughness of the ground.
- Wheeled robots are the commonest, because rolling contact converts rotation into travel with few moving parts and little friction loss, making them simple and the most energy-efficient of the three. Differential drive steers by giving each driven wheel its own speed, with passive castors carrying the load.
- A wheeled robot needs a firm, reasonably smooth surface, loses grip on loose or wet ground, and cannot climb a step approaching its own wheel radius.
- Tracked robots circulate a continuous belt around a drive sprocket and idler, so their weight rests on a long strip of ground. Ground pressure, \(p = W/A\), is therefore low: the machine does not sink into soft surfaces and gains far more traction, and the belt lays itself over steps and gaps.
- Tracks cost energy and wear, because skid steering drags the belts sideways across the ground, and they add mechanical complexity that can immobilise the robot if a belt is thrown.
- Legged robots place each foot at a chosen point and lift it clear of everything between, so they can cross ground that offers no continuous path at all. They stand only while the centre of mass stays inside the support polygon formed by the feet in contact, so every step is a balancing calculation.
- Legs demand two or three powered joints per leg, so they are mechanically complex, power-hungry, slow and expensive.
- The design rule is to begin with the worst surface the robot will actually meet, and then choose the simplest locomotion that can cross it, since every step up in complexity is paid for again in battery capacity and maintenance.
Autonomy
- An automatic machine repeats a fixed sequence regardless of its surroundings. An autonomous machine is given a goal, reads its surroundings and chooses the action that suits the situation it actually finds.
- Autonomy is best located by asking which stage of the sense–plan–act loop the human occupies. In teleoperation the robot senses and acts while a person takes every decision; in full autonomy the whole loop closes on board and the person supplies only the goal.
- An autonomous mobile robot decides route, obstacle avoidance and task steps for itself. It depends totally on its sensors, needs its goal expressed in terms the program can act on, and needs an environment predictable enough to plan in. Its limitation is that it can only handle situations its designers anticipated.
- A semi-autonomous mobile robot divides the work: the robot takes the fast, continuous, low-level decisions, and a human operator takes those needing judgement. It depends on a communication link, and both the link delay and the operator’s reaction time add to the distance travelled before a command takes effect.
- The degree of autonomy is chosen by four questions: how predictable the environment is, what a wrong decision costs, whether a reliable link is available, and whether a person can be present for the whole task.
Sensing and perception
- Exteroceptive sensors report on the world outside the robot; proprioceptive sensors report on the robot’s own state. A mobile robot needs both, because commanding an action is not the same as achieving it.
- An ultrasonic sensor times the echo of a sound burst, giving \(d = vt/2\) since the pulse travels out and back. It is defeated by smooth surfaces met at a slant, which deflect the echo away, and by soft surfaces, which absorb it; its beam is a cone of roughly fifteen degrees, and the speed of sound varies with temperature.
- An IR sensor measures reflected infrared light. It is cheap and quick and suits line following and edge detection, but a dark surface reads like empty space and strong ambient light swamps the reflection.
- LIDAR — light detection and ranging — times a laser pulse and usually sweeps it round, giving accurate distance and bearing and a full outline of the surroundings. It is expensive, produces a large volume of data, and is defeated by glass, mirrors, dust and smoke.
- A bump switch detects an obstacle only by striking it and is the last line of defence, since every other sensor can miss something. Cameras give the richest picture but return images rather than decisions, and need processing power a small microcontroller does not have.
- Odometry estimates position by counting wheel rotations, and dead reckoning keeps a running position from it without any outside reference. It is smooth and cheap but drifts, because the encoder counts what the wheel did rather than what the robot did.
- A gyroscope measures rate of rotation and an accelerometer measures linear acceleration, including gravity, and so also tilt. Together they form an inertial measurement unit. Both must be added up over time, so both give excellent short-term answers that slowly become fiction.
- A GPS receiver gives an absolute position outdoors that never drifts, but it is accurate only to a few metres, updates slowly, and fails indoors, in tunnels, under tree cover and among tall buildings.
- Sensor fusion combines readings from two or more sensors to produce a more reliable estimate than any one alone. It is done either for redundancy, where two sensors measure the same quantity and agreement raises confidence, or for complementarity, where two sensors measure different quantities whose weaknesses do not overlap, as GPS and odometry do.
- The design rule is to choose sensors whose failure modes differ. Integration is also physical: mounting height and position decide what a sensor can possibly see, overlapping ultrasonic cones cause cross-talk, sensor cables are routed away from motor leads, and any sensor on a separate supply must share a common ground with the control unit.
Basic design principles
- The chassis supports every other subsystem, protects the components and holds the sensors and actuators in fixed alignment, which no software can compensate for if it flexes. The heaviest item is mounted low, and the centre of mass is kept inside the area bounded by the ground contacts.
- Chassis materials trade stiffness against added mass: MDF and acrylic are cheap and adequate for small indoor robots, aluminum is far stiffer for its mass, and steel is strong but usually more weight than a small machine can justify.
- The drive system is sized from the worst case, not the average — normally starting fully loaded on the steepest slope. The force needed is \(mg\sin\theta\) along the slope plus \(\mu mg\cos\theta\) of rolling resistance, and the torque each driven wheel must produce is \(\tau = F \times r\).
- A gearbox trades speed for torque, so a robot that cannot climb usually needs a larger reduction ratio rather than a larger motor. Higher torque means higher current, which passes the problem straight to the power system.
- A battery must meet two separate demands: enough energy for the task, with runtime \(t = C/I\), and enough peak current for the surge a motor draws as it starts. A surge that pulls the shared supply down resets the control board, which looks like a software fault and is not.
- Lithium polymer packs are charged only on a balance charger, on a non-flammable surface and never unattended, are never punctured, crushed or shorted, are discarded once swollen or badly dropped, and are stored at part charge.
- A microcontroller pin is a signalling device rated at around twenty milliamperes and cannot drive a motor drawing hundreds of milliamperes, quite apart from the voltage spikes a coil throws back when its current is switched.
- A motor driver such as the
L298Ntakes logic signals on its input side and switches the battery’s current on its output side, using an H-bridge to reverse the motor and pulse width modulation — the duty cycle — to set its speed. The driver and the control board must share a common ground. - An open-loop system never measures its output and drifts whenever the load or the surface changes. A closed-loop system measures the output, subtracts it from the desired value to obtain the error, and adjusts its command to reduce that error; the measurement fed back is the feedback.
- PID control sums three terms computed from the error: proportional to the error now, to the accumulated error, and to the rate at which the error is changing. It must be tuned for the particular machine — too much proportional gain sets the robot oscillating, and the derivative term amplifies sensor noise.
Applications
- In logistics, mobile robots invert the picking problem by carrying movable racks to a stationary picker. The floor is engineered for the robot — flat, marked with coded position markers — and the real difficulty is traffic between many robots, which is why a central fleet management system assigns tasks and reserves lanes.
- In transportation, small pavement robots address last-mile delivery, the most expensive leg of a journey. They fuse GPS with odometry and inertial sensing, travel slowly among pedestrians, stop whenever a situation is ambiguous, and are handed to a remote operator for the cases their programming cannot settle.
- In search and rescue, tracked or legged robots enter voids that are unsafe or too small for a person, carrying a camera, a thermal camera, a gas detector and two-way audio in place of a rescuer’s senses. They are teleoperated or semi-autonomous, because the environment is unmapped and the judgement needed is human, and they often trail a tether because radio does not pass reliably through rubble.
- One pattern runs through all three: the more the environment can be controlled, the more autonomy is worth building, and the less it can be controlled, the more a human stays in the loop.
18.9 Key Terms
- A* algorithm — a path-planning method that expands the cell with the smallest total of cost already spent plus estimated cost remaining, reaching the goal far more quickly than Dijkstra’s algorithm while returning the same cheapest route.
- Autonomous mobile robot — a mobile robot that decides its own route, avoids obstacles and carries out its task without a person taking those decisions.
- Autonomy — a robot’s ability to decide its own actions from sensor readings in order to achieve a given goal, rather than being told what to do.
- Breadth-first search — a path-planning method that explores outwards in layers from the start cell and returns the route with the fewest steps.
- Chassis — the structural frame of a mobile robot, which supports every other subsystem and holds the sensors and actuators in fixed alignment.
- Closed-loop control — control in which the actual output is measured, compared with the desired value, and the command adjusted to reduce the difference.
- Cost — the value attached to a move between two cells in a plan, which may represent distance, time, energy or risk, and which the planner works to minimise.
- Dead reckoning — keeping a running estimate of position from the robot’s own motion measurements alone, without any outside reference.
- Differential drive — a steering arrangement in which two wheels on a common axis are driven at separately controlled speeds, so that no steering mechanism is needed.
- Dijkstra’s algorithm — a path-planning method that always expands the reached cell with the lowest total cost so far, and so returns the cheapest route when moves differ in cost.
- Duty cycle — the fraction of each switching cycle for which a pulse-width-modulated signal is on, which sets the average power delivered to a motor.
- Edge — a connection between two neighbouring free cells in a planning graph, representing a move the robot can make.
- Exteroceptive sensor — a sensor that reports on the world outside the robot, such as the distance to an obstacle.
- Feedback — the measurement of a system’s actual output that is returned for comparison with the desired value.
- Fleet management system — a central computer that assigns tasks to many robots and reserves routes for them, so that they do not obstruct one another.
- GPS — global positioning system; a satellite-based system whose receiver gives an absolute outdoor position that does not drift, but only to within a few metres and only under an open sky.
- Ground pressure — the force a machine presses onto the surface divided by its total contact area, which decides how far it sinks into soft ground.
- H-bridge — an arrangement of four switches inside a motor driver that can connect a motor to the supply either way round, allowing its direction to be reversed.
- Heuristic — an estimate of the cost still remaining from a cell to the goal, used by A* to direct its search; it must never overstate the true remaining cost.
- IMU — inertial measurement unit; a gyroscope and an accelerometer packaged together, reporting the robot’s rate of rotation and its linear acceleration.
- IR — infrared; light just beyond the red end of the visible range, emitted and detected by short-range reflective sensors used for line following and edge detection.
- Last-mile delivery — the final short leg of a delivery, from a local depot to the customer’s door, which costs the most per parcel because each is carried alone.
- Latency — the delay between something changing in the world and the robot’s response to it reaching its actuators.
- LIDAR — light detection and ranging; a sensor that times the return of a laser pulse and usually sweeps it round, giving accurate distance and bearing for the surroundings.
- Localisation — the process by which a robot works out where it is within its map.
- Locomotion — the means by which a robot moves its whole body from place to place, using wheels, tracks or legs.
- MDF — medium-density fibreboard; a sheet material that is cheap and easily cut, often used for the chassis of small indoor robots.
- Mobile robot — a robotic system that carries its own locomotion mechanism, so that it can move through its environment while performing a task instead of working from a fixed base.
- Node — a single free cell in a planning graph, representing a place the robot can be.
- Occupancy grid — a map that divides the space into square cells, each marked as free or occupied.
- Odometry — estimating how far and in what direction a robot has moved by counting the rotations of its wheels.
- Open-loop control — control in which a command is issued without the result ever being measured, so nothing corrects an error once it appears.
- Path planning — computing a route from the robot’s present position to a goal through a known map, avoiding the regions marked as blocked.
- PID — proportional–integral–derivative; a controller whose correction is the sum of three terms computed from the error now, the accumulated error, and the rate at which the error is changing.
- Proprioceptive sensor — a sensor that reports on the robot’s own internal state, such as wheel rotation or body tilt.
- PWM — pulse width modulation; switching a supply rapidly on and off so that the fraction of time it is on sets the average power delivered.
- Semi-autonomous mobile robot — a mobile robot in which control is shared, the machine handling fast low-level motion and a human operator taking the decisions that need judgement.
- Sense–plan–act loop — the repeating cycle in which a robot senses its situation, plans its next action, acts on that plan, and then senses again to see what its action achieved.
- Sensor fusion — combining readings from two or more sensors to obtain an estimate more reliable than any of them alone.
- Skid steering — turning a machine by driving the belts or wheels on its two sides at different speeds, so that they drag sideways across the ground.
- Support polygon — the shape drawn on the ground by joining the feet or wheels currently in contact; a machine stands only while its centre of mass falls inside it.
- Teleoperation — control of a robot by a human operator at a distance, who receives its sensor data and issues its movement commands directly.
- Traction — the grip available between a wheel or track and the ground before it slips.
- Workspace — the set of points a robot’s end-effector can reach; on a mobile robot it travels with the machine instead of being fixed in space.
18.10 Objective Questions
- A robot of fixed mass is rebuilt with tracks in place of its wheels, nothing else being changed. Which quantity falls?
- Its weight
- Its ground pressure
- Its traction on loose soil
- Its total contact area
- A robot approaches a matt black board placed across its path and does not slow down. Which sensor is most likely to have reported open space?
- Ultrasonic sensor
- IR sensor
- Bump switch
- Wheel encoder
- State whether each of the following is true or false.
- Dead reckoning gives a position estimate that becomes more accurate the longer the robot drives.
- A gearbox increases the torque available at the wheel while reducing its speed.
- A GPS receiver gives a position that does not drift, but only to within a few metres.
- Fill in the blanks.
- The shape formed on the ground by joining the feet currently in contact with it is called the ______.
- Turning a machine by driving its two sides at different speeds, so that they drag sideways across the ground, is called ______.
- Match each item in column A with what defeats it in column B.
| Column A | Column B |
|---|---|
| a. Ultrasonic sensor | i. A slipping wheel |
| b. IR sensor | ii. A glass partition |
| c. LIDAR | iii. A smooth wall met at a slant |
| d. Odometry | iv. Strong sunlight |
Give the full form of each of the following abbreviations: LIDAR, IMU, PWM, PID, GPS.
Assertion (A): The control board of a mobile robot is never connected directly to a drive motor. Reason (R): An output pin of a common microcontroller board is rated for a current of the order of twenty milliamperes.
- Both A and R are true, and R is the correct explanation of A.
- Both A and R are true, but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
- A robot travelling at a fixed speed has its control loop slowed from twenty passes per second to five. In one line, state what happens to the distance it covers between one decision and the next.
18.11 Check Your Concepts
Define latency, and state one consequence of high latency for a robot moving at speed.
Name the five subsystems from which almost every mobile robot is built, and state in one line what each of them does.
Differentiate between an exteroceptive sensor and a proprioceptive sensor, giving one example of each and stating what a robot would be unable to do if it carried only one of the two kinds.
A wheeled robot and a tracked robot have the same mass. Explain, with reference to ground pressure and traction, why the tracked machine crosses soft ground better, and state one price that is paid for this advantage.
A robot of total mass \(3.0 \text{ kg}\) has two driven wheels of radius \(40 \text{ mm}\). It must start from rest on a ramp of slope \(8^\circ\). Take \(g = 9.8 \text{ m/s}^2\) and a rolling resistance coefficient of \(0.04\). Calculate the torque each driven wheel must produce, and state, with a reason, whether a motor rated at exactly that torque should be selected.
A warehouse robot must plan routes across a large floor on which one section has a slow, congested surface. Compare breadth-first search, Dijkstra’s algorithm and A* against three criteria — the ability to handle moves of differing cost, the number of cells examined, and the route finally returned — and recommend one of them, justifying your choice.
18.12 Diagram, Circuit & Output Reading
- A student wires a robot as follows. The battery pack’s positive terminal goes to the motor supply terminal of an
L298Ndriver module and its negative terminal to the module’sGNDterminal. Pin 5 of an Arduino UNO goes toENA, and pins 7 and 8 go toIN1andIN2. The left motor is connected toOUT1andOUT2. The UNO is powered separately from a USB supply. The program is correct, but the motor does not respond to any command.
- Identify the single connection that is missing.
- Explain why its absence stops the driver from acting on the control signals.
- The table below gives typical figures for three sensors being considered for an indoor robot.
| Sensor | Typical range | Directional detail | Defeated by |
|---|---|---|---|
| Ultrasonic | 0.02 m to 4 m | Cone of about 15° | Angled smooth surfaces, soft surfaces |
| IR | A few millimetres to under a metre | A single narrow spot | Dark surfaces, strong ambient light |
| LIDAR | 0.1 m to about 10 m | Distance and bearing at every point | Glass, mirrors, dust and smoke |
The robot must run along a corridor that has a glass door at one end and a dark rubber mat across the middle of the floor. a. State which single sensor from the table would be the worst choice on its own for this corridor, and why. b. Choose a pair of sensors for the robot and justify the pairing in terms of their failure modes.
- An ultrasonic sensor on a stationary robot receives its echo \(5.8 \text{ ms}\) after transmitting. The air temperature is about \(20\ ^\circ\text{C}\), at which the speed of sound is \(343 \text{ m/s}\).
- Calculate the distance to the surface ahead.
- The robot then turns through \(30^\circ\) and the sensor reports no echo at all, although the wall in front of it is unbroken. Explain what has happened.
- The grid below is an occupancy map.
Sis the start cell,Gis the goal, a full stop is a free cell and a hash is an occupied cell. The robot may move only up, down, left or right, one cell at a time, and every move costs the same.
S . . # .
. # . # .
. # . . .
. . . # G
- State the number of moves in the route that breadth-first search would return.
- The obstacles are now inflated by one cell in each direction before planning, as they would be for a robot with width. State whether any route from
StoGstill exists, and give the reason for your answer.
18.13 Case-Based Questions
- A school robotics club is building a small robot to carry printed papers along the corridor between the science block and the office. The corridor floor is smooth and level, but the doorway at the office end has a raised threshold \(25 \text{ mm}\) high. The design so far is as follows.
| Item | Value |
|---|---|
| Total mass of robot | 4 kg |
| Wheels | 65 mm diameter, two driven, one castor |
| Battery pack | 2200 mAh lithium polymer |
| Average current drawn during a trip | 900 mA |
| Expected duty | 40 trips per day, about 3 minutes each |
- State which locomotion type suits this corridor, and say with a reason whether the \(25 \text{ mm}\) threshold is likely to stop the robot as designed.
- Calculate the running time available from one full charge, assuming that only about \(80\%\) of the pack’s capacity is usable, and state whether one charge will cover a full day’s trips.
- The corridor has a glass display case along one wall and a dark rubber mat near the office door. Choose two sensors for obstacle detection and justify the pairing by referring to the conditions under which each of them fails.
- A district disaster response team is deciding what to buy for use after building collapses. Two machines are offered. Machine P is a tracked robot with a camera, a thermal camera and a gas detector, driven by an operator over a tether. Machine Q is a wheeled robot that navigates autonomously from a map and reports what it finds. A typical incident involves a two-storey structure that has come down, leaving voids about \(0.5 \text{ m}\) high beneath thick concrete slabs, with a layout that nobody knows in advance, and a working window of about ninety minutes.
- State which locomotion type suits this environment and justify the choice by reference to the surface the machine must cross.
- Recommend a degree of autonomy for this task, justifying it in terms of how predictable the environment is and what a wrong decision would cost.
- State one limitation of the machine you have recommended, and describe one practical step the team could take to work around it during an incident.