Chapter 6: Identification of Robots
The Class 9 group from a school in Jaipur spent a morning at a robotics exhibition. In the first hall stood a bright orange arm bolted to a steel table. It had no head, no legs and no face. It simply swung, stopped, picked up a small metal block and set it down again, over and over, without ever moving from its spot.
In the next hall was a robot shaped like a person. It stood on two legs, turned its head towards whoever came close, and lifted a hand to wave. Behind it, on the floor, a low box on four wheels rolled quietly between the visitors, slowing down whenever someone stepped in front of it.
Three machines. Three completely different shapes. Yet each one was a robot, and each one was built out of the same kinds of parts. By the end of the morning the students could look at any of them and name what they were seeing.
Diagram
Fig. 6.0-1 – photo of a robotics exhibition hall showing an industrial robotic arm on a table, a humanoid robot standing nearby, and a small wheeled mobile robot on the floor
This chapter will answer each of these five questions as you read through it.
6.1 A Robot Can Be of Any Size and Shape
Look at the tools in a kitchen. A spoon, a rolling pin and a pair of tongs are all made of metal, and all of them are held in the hand. But no two of them look alike, because no two of them do the same job. The shape of each tool comes from the work it has to do.
Robots are the same. A robot that welds car doors in a factory does not need legs. A robot that carries medicines down a hospital corridor does not need a face. A robot that has to climb a staircase cannot be a flat box on wheels. Once you know the job, the shape starts to make sense.
What Decides a Robot’s Shape
Three questions decide how a robot is built.
The first is the task — what exactly must the robot do? Lifting a heavy engine block needs a thick, strong arm. Picking up an egg needs soft, gentle fingers.
The second is the workspace — the region the robot can reach and work in. A robot arm fixed to a table can only work inside the space its arm can sweep through. A delivery robot’s workspace is the whole corridor, so it must be able to move about.
The third is the environment and the difficulties it brings. A robot working underwater must be sealed against water and must be able to swim or crawl. A robot working on a farm has to deal with mud, uneven ground and rain. A robot working in a clean electronics factory has none of those problems, so it can be lighter and more delicate.
Because of these three questions, robots come in an enormous range of sizes and shapes. Some are small enough to be held in one hand. Some are large enough to fill a room. Some look like a human being, some like an insect, some like an aeroplane, and many look like nothing at all except a machine built for one job.
Same Parts, Different Bodies
Here is the useful part. However different two robots look on the outside, they are built from the same short list of parts: a body that holds everything together, actuators that move it, sensors that tell it about its surroundings, a control system that works out what to do next, and a power supply that keeps it all running.
So identifying a robot is not about guessing what it is from its outline. It is about looking at a machine and naming the parts you can see, and saying what each one is there for. See Fig. 6.1-1.
Diagram
Fig. 6.1-1 – three robot outlines side by side, all drawn in the same simple style: (a) an arm bolted to a table, (b) a two-legged humanoid standing upright, (c) a low four-wheeled box. Under each, the same four labels appear: body/structure, actuators, sensors, control system
In the next three sections you will look closely at three very different robots — an industrial robotic arm, a humanoid robot and a mobile robot — and learn to name what each one is made of.
6.2 Identifying an Industrial Robotic Arm
Think about how you pick a book off a high shelf. Your shoulder swings the whole arm up, your elbow bends, your wrist turns so your palm faces the book, and your fingers close around it. Five or six separate movements, one after another, and the book is in your hand.
A factory needs that same set of movements, but repeated thousands of times a day without getting tired. That is what an industrial robotic arm is built for. It is a robot shaped roughly like a human arm, fixed to a floor, a table or an overhead rail, and used for jobs such as welding, painting, assembling parts, packing boxes and moving material from one machine to another.
It is worth noticing what this robot does not have. It has no legs, no wheels and usually no face. It never goes anywhere. Everything it needs is brought to it on a conveyor, and it works only inside the space its arm can sweep through.
You have probably seen these arms in videos of car factories — heavy, brightly painted, moving in smooth curves. See Fig. 6.2-1.
Diagram
Fig. 6.2-1 – photo of an industrial robotic arm on a factory floor, mounted on a fixed base, with a gripper attached at the far end
What to Look for on an Arm
When you look at a real industrial arm, or at a photograph or video of one, you can identify eight things. The next few sections take them one at a time:
- the arm structure — the links and joints that make up its body
- the end effector — the tool at the far end that touches the work
- the actuators — the motors that move each joint
- the control system — the hardware and software that decide the movement
- the sensors — the parts that report back what is happening
- the safety features — the parts that protect the people around it
- the programming — how the arm is told what to do
- the integration — how the arm is fitted into the rest of the factory
The first six are things you can point to. The last two are things you cannot see by looking, but without them the arm would just stand still.
6.2.1 Arm Structure: Links, Joints and Axes
Hold your arm straight out and try to touch your own shoulder. You cannot do it, because a straight arm has nowhere to bend. Now bend your elbow and it takes half a second. A rigid bar can only point; it is the bending places that let an arm reach things.
A robot arm is built on exactly that idea. It is a chain of stiff pieces with movable connections between them.
Each stiff piece is called a link. A link does not bend or stretch — it is usually a hollow casting of steel or aluminium, strong enough to carry the weight of everything beyond it. The bones of your arm do the same job.
Each movable connection between two links is called a joint. The joint is the only place where movement happens. Your shoulder, elbow and wrist are joints.
Two Ways a Joint Can Move
Robot joints move in one of two basic ways, and you can usually tell which by watching the arm work. See Fig. 6.2.1-1.
Diagram
Fig. 6.2.1-1 – two simple sketches side by side. Left: two links joined at a rotary joint, with a curved arrow showing one link turning about the joint. Right: two links joined at a linear joint, with a straight arrow showing one link sliding in and out of the other
Most industrial arms use rotary joints for nearly everything, because turning motors are simple, compact and reliable.
Counting the Axes
Every joint gives the arm one independent movement, and that movement is often called an axis. An arm with six joints is therefore called a six-axis robot, and six-axis arms are the most common kind in industry.
The number of independent movements a robot can make is called its degree of freedom (DOF). A six-axis arm has six degrees of freedom. Roughly speaking, three of them are used to bring the tool to the right place, and three to turn the tool to the right angle once it gets there.
That is the honest limitation of arm structure: more joints mean more reach and more awkward angles the arm can manage, but also a slower, heavier and more expensive robot. A machine that only has to lift boxes from a belt onto a pallet may need just four axes, and building it with six would be a waste.
Reading an Arm from a Photograph
You can identify the structure of an arm in a picture without any special knowledge. Start at the base, which is bolted down, and follow the arm outwards. Each time the metal shape changes direction or there is a thick round housing, you have found a joint. The straight sections between them are the links. Count the joints, and you have counted the axes.
6.2.2 The End Effector
The links and joints of an arm can bring the far end of the arm to any point in the workspace, at any angle. That is all they can do. Getting to the right place is useless if there is nothing there to hold the object, weld the seam or spray the paint.
So a tool is fitted at the far end of the arm. This tool is called the end effector, because it is the part that produces the effect the robot was bought for. It is sometimes called the robot’s hand, and it is the only part of the arm that actually touches the workpiece.
One Arm, Many Possible Tools
The same arm can do completely different jobs simply by changing what is bolted on the end. A few common end effectors are shown in Fig. 6.2.2-1.
Diagram
Fig. 6.2.2-1 – four end effectors drawn side by side and labelled: (a) a two-finger gripper closing on a block, (b) a set of vacuum cups holding a flat sheet, (c) a welding torch with a nozzle, (d) a cutting tool
A gripper has two or more fingers that close on an object and hold it while the arm moves. A set of vacuum cups presses against a flat surface and holds it by suction — this is how sheets of glass, cardboard boxes and packets are lifted. A welding torch joins two metal pieces along a seam. A cutting tool trims material to shape. Paint sprayers, screwdrivers and glue nozzles are used in the same way.
6.2.3 Actuators and the Control System
A joint is only a place where movement is possible. Nothing about a hinge makes a door swing; someone has to push it. In the same way, a robot’s joints will not move unless something supplies the force.
The part that supplies that force is called an actuator. On an industrial arm, each joint has its own actuator, sitting right at the joint or driving it through a gear.
An actuator at a joint has to supply enough turning force to swing everything beyond that joint, including the end effector and whatever it is carrying. Turning force is called torque — the same thing you apply when you use a spanner. This is why the shoulder joint of an arm, which carries the whole arm’s weight, has a much larger actuator than the wrist joint.
Three Kinds of Actuator
Industrial arms use electric, pneumatic or hydraulic actuators. Table 6.2 compares them.
Electric actuators are by far the most common, because they can be started, stopped and held at any position with great precision, and they need only a cable. Pneumatic actuators are cheap and fast but usually just push all the way out or pull all the way back, which suits a simple gripper. Hydraulic actuators are chosen when the load is very heavy.
Electric actuators come in a few types you will meet again in the laboratory: a plain DC motor, a geared DC motor that trades speed for torque, a stepper motor that turns in small fixed steps, and a servo motor that can be told to move to a particular angle and stay there.
The Control System
Actuators supply force, but they do not know when or how much. Something has to decide that. That job belongs to the control system, which is best described as the brain of the arm — not because it thinks, but because every decision about movement is worked out there.
The control system has two halves.
The hardware half is the controller — a dedicated computer or an embedded circuit board kept in a cabinet beside the robot, along with the input and output connections that carry signals to the actuators and bring readings back from the sensors.
The software half is a set of instructions, called control algorithms, that work out the movement. Given a target position for the end effector, the software calculates how far each joint must turn, how fast each actuator should run, and in what order, so that the arm moves smoothly and safely instead of jerking to a stop. See Fig. 6.2.3-1.
Diagram
Fig. 6.2.3-1 – block sketch of an arm’s control loop: a box labelled “controller” with an arrow out to boxes labelled “actuator at each joint”, an arrow from those to a box labelled “arm moves”, and a dashed arrow from “sensors” back into the controller
6.2.4 Sensors and Feedback
Close your eyes and touch the tip of your nose. You can do it, because even with your eyes shut you know where your elbow is bent to and which way your wrist is turned. Take that sense away and your hand would wander about your face.
A robot arm has the same difficulty. The controller can send a command to a joint, but sending a command is not the same as the movement happening. The load may be heavier than expected, a gear may have a little play in it, or something may be in the way. Without some way of checking, the controller would be working blind.
So the arm is fitted with sensors — parts that measure something and report it back as an electrical signal. Information that travels back from a sensor to the control system is called feedback.
The Sensor That Watches Each Joint
The most important sensor on an industrial arm sits inside the joint itself. It is called an encoder, and it reports how far the joint has turned.
Diagram
Fig. 6.2.4-1 – sketch of an encoder disc mounted on a joint shaft, with evenly spaced slots around its edge, a light source on one side, a detector on the other, and an arrow showing pulses going to the controller
The angle is worked out from a simple relation:
\(\text{angle turned} = \dfrac{\text{pulses counted}}{\text{pulses in one full turn}} \times 360^\circ\)
Here “pulses counted” is how many pulses the controller has received since the joint started moving, and “pulses in one full turn” is a fixed number decided by how many slots the disc has.
The Other Sensors on an Arm
Three more kinds of sensor are common on industrial arms.
Force or torque sensors measure how hard the arm is pressing or pulling. An arm fitting a plug into a socket needs this — it must push firmly enough to seat the plug but stop before it breaks anything.
Proximity sensors detect that an object is nearby without touching it. They are used to check that a part has actually arrived on the conveyor before the arm reaches for it.
Vision systems are cameras with software behind them, used to recognise objects and find where they are lying. A camera lets one arm handle parts that arrive at slightly different positions each time, instead of needing them placed exactly.
6.2.5 Safety Features, Programming and Integration
An industrial arm is strong enough to swing a load of several kilograms at head height, and it does so quickly. It has no idea that a person has walked up behind it. Everything that keeps people safe around such a machine has to be designed in.
Safety Features
Four safety features are found on almost every industrial installation. See Fig. 6.2.5-1.
Diagram
Fig. 6.2.5-1 – top view of a robot cell: a robotic arm inside a fenced enclosure, a large red emergency stop button on the outside of the fence, a gap in the fence marked “light curtain” with dashed beams across it, and a conveyor running in through the gap
An emergency stop button is a large red button, easy to reach and easy to hit with the palm of the hand. Pressing it cuts power to the actuators at once, so the arm stops wherever it is.
Protective barriers are fences or panels around the working area, so that nobody can walk into the space the arm sweeps through while it is running.
A light curtain guards the opening where parts go in and out, because that gap cannot be fenced.
Collision detection is the fourth feature. The control system watches the current drawn by each actuator. If the arm strikes something, the actuator suddenly has to work much harder to keep moving, the current rises, and the controller stops the arm before more damage is done.
Programming the Arm
An arm does nothing until it is told what to do, and there are two usual ways of telling it.
The first is teaching. An operator holds a hand-held control box, drives the arm slowly to each position needed, and saves that position. Doing this for every position in the job builds up a stored sequence, which the robot can then repeat at full speed.
The second way is offline programming. The job is written and tested as a program on a computer, using simulation software that shows the arm moving on screen. Only when the program is correct is it sent to the real robot. This is done in robot-specific languages, or in ordinary programming languages such as C++ and Python. Offline programming means the production line does not have to be stopped while the robot is being taught.
Whichever way is used, the arm can be reprogrammed later for a different task. That is exactly what makes it a robot and not a fixed-purpose machine.
Integration
The last part of identifying an industrial arm is the part you cannot photograph. An arm on its own is of no use; it has to be joined to everything around it. This is called integration.
Integration means building the fixtures that hold the workpiece steady, setting up the conveyors that bring parts in and carry finished work out, and writing the software that makes the arm start at the right moment — after the conveyor stops, not before. Engineers who do this work are called integrators. A great deal of the cost of putting a robot into a factory goes into integration rather than into the robot itself.
6.3 Identifying a Humanoid Robot
Almost everything around you was built for a human body. Stairs are the height of a human step. Door handles are at the height of a human hand. Chairs, tools, switches, buses and taps all assume a person of roughly the right shape will come along and use them.
That is the strongest reason for building a robot in the shape of a person. A machine with a human-like body can move through a building made for people, use the same tools, and be understood by anyone who looks at it. Such a robot is called a humanoid robot.
A humanoid does not have to be a copy of a person. Some have a head, torso and arms but roll about on a wheeled base instead of walking. Some have a plain plastic face that only suggests eyes. What makes a robot a humanoid is that its overall body plan follows a human one. See Fig. 6.3-1.
Diagram
Fig. 6.3-1 – photo of a humanoid robot standing upright, showing head, torso, two arms with hands, and legs
Humanoids are used where a robot has to work among people or speak to them — greeting visitors at a counter, guiding people at an exhibition, helping in research on walking and balance, or reaching into places built for a human worker.
What to Look for on a Humanoid
The parts of a humanoid are the same in kind as the parts of an industrial arm, but there are more of them and they are harder to fit in, because the whole machine has to carry itself about. Ten things make up a humanoid:
- the frame and body structure
- the joints, which give it its degrees of freedom
- the actuators that move the limbs
- the end effectors and hands
- the sensors that tell it about its surroundings
- the control system
- the power supply
- the communication system
- the safety features
- the customisation added for its particular application
The next four sections take these in order. As you read, keep comparing them with the arm in section 6.2 — the differences are where the interesting part lies.
6.3.1 Frame, Joints and Degrees of Freedom
An industrial arm is bolted to the floor, so its weight hardly matters. A humanoid has to lift its own body every time it takes a step. Every extra kilogram of body has to be carried by its own motors, powered by its own battery, all day. This one fact shapes the whole design.
The Frame
The frame is the skeleton of the robot. It gives the machine its overall shape, holds the head, torso, arms and legs together, and provides places to mount the motors, wiring and electronics inside.
Frames are usually built from aluminium, carbon fibre or plastic. Aluminium is strong and much lighter than steel, so it is used for the load-bearing parts such as the legs. Carbon fibre is stiffer still for its weight, but costly, so it appears mostly in research robots. Plastic is used for outer covers and panels, which have to keep dust out and look tidy but carry no load.
Joints and Degrees of Freedom
Where an industrial arm has around six joints, a humanoid has joints at the neck, both shoulders, elbows, wrists, waist, hips, knees and ankles — and often in each finger as well. See Fig. 6.3.1-1.
Diagram
Fig. 6.3.1-1 – outline of a humanoid robot with small circles marking the joints, labelled: neck, shoulder, elbow, wrist, waist, hip, knee, ankle
Some of these are not single joints at all. A shoulder has to let the arm swing forward, swing sideways and twist, so a robot shoulder is built as two or three separate rotary joints stacked close together. Counted properly, that shoulder gives three degrees of freedom on its own.
Add the second arm, the legs, the waist and the neck, and a full humanoid may have several dozen degrees of freedom. That is why it can move in ways an industrial arm cannot — it can crouch, turn its head, and shift its weight from one foot to the other.
All that freedom is expensive. Every degree of freedom needs its own actuator, its own sensor and its own share of the control system’s attention, and it adds one more part that can fail. It also makes balance harder, because the control system has to keep track of where the whole body’s weight is sitting while all those joints are moving at once.
6.3.2 Actuators, End Effectors and Hands
A humanoid’s joints need the same thing every joint needs — something to move them. But the choice of actuator is much narrower here than on a factory arm.
Why Humanoids Use Electric Motors
A pneumatic actuator needs a compressor to make compressed air. A hydraulic actuator needs a pump, a tank of oil and thick pipes. Neither of those is easy to carry around on a walking machine, and both would have to be dragged along behind it.
So humanoids are driven almost entirely by electric motors, which need only a battery and a pair of wires. The motors chosen have two qualities: high torque, so a knee can hold up the body’s weight without collapsing, and high precision, so a hand can be placed exactly where it is wanted. A gearbox is usually fitted between the motor and the joint, because a small motor spinning fast becomes a strong, slow, controllable movement once it is geared down.
Actuators are not used only for walking and reaching. In some humanoids, small motors sit behind the face and move the eyebrows, eyelids and mouth. The robot is not feeling anything; the control system is simply driving those motors into set positions so that a person looking at it reads the face as friendly, attentive or surprised.
Hands and Other End Effectors
At the end of each arm sits an end effector. On a humanoid this is usually a hand — a set of fingers meant to pick up objects that were made for human hands. Some humanoids carry a simple two-finger or three-finger gripper instead, and a humanoid built for one particular job may carry a tool there.
The difficulty is weight. Everything in the hand has to be lifted by the elbow and shoulder above it, so packing several motors into the fingers makes the whole arm heavier and slower. A common solution is to move the motors out of the hand altogether. See Fig. 6.3.2-1.
Diagram
Fig. 6.3.2-1 – sketch of a cable-driven robot hand: three fingers with thin cables running from the fingertips down through the palm and along the forearm to a set of small motors mounted near the elbow
Even the best robot hands are far behind a human hand. Yours has enough separate movements and enough feeling in the skin to pick up a needle, hold an egg without cracking it and turn a key, all without looking. A robot hand with three fingers and no sense of touch can manage the box but not the egg.
6.3.3 Sensors, Control System and Power Supply
Stand on one foot for a minute. You will feel small corrections happening all the time in your ankle, and you are not deciding on any of them. Balance is not a single act; it is thousands of tiny adjustments, made continuously, based on the fact that your body knows which way it is leaning.
A humanoid that stands on two feet has to do the same. This is the deepest difference between a humanoid and a bolted-down arm: an arm that stops receiving commands simply stands still, while a humanoid that stops correcting itself falls over.
The Sensors
A humanoid carries several kinds of sensor.
Cameras act as its eyes, letting the control system find objects, people and obstacles. Microphones pick up speech and other sounds. Touch sensors in the hands and body report contact, so the robot knows it has actually gripped something or bumped into something.
Two more sensors are there entirely for balance. An accelerometer senses which way gravity is pulling, so the robot can tell how far it is leaning. A gyroscope senses turning.
Diagram
Fig. 6.3.3-1 – a humanoid drawn twice. Left: standing upright with a small box in its torso labelled “accelerometer and gyroscope”. Right: the same robot leaning slightly forward, with a curved arrow at the ankle joint showing the correcting movement
The Control System
Everything those sensors report has to be turned into movement, and quickly. The control system of a humanoid is built around a microcontroller or a processor, together with software that reads the sensors, works out what to do and drives the actuators.
The word that matters here is real-time. If the robot is tipping forward, a correction that arrives half a second late is worse than useless. So the control loop runs over and over, many times every second: read the sensors, work out the correction, move the joints, read the sensors again.
The control system also handles the slower decisions — where to walk, when to speak, which object to reach for — but the balance loop underneath never stops running.
The Power Supply
An industrial arm plugs into the factory’s electricity supply and never has to worry about it. A humanoid cannot drag a cable behind it, so it carries its own power.
The usual choice is a rechargeable lithium-ion battery, the same kind used in a mobile phone or a laptop, because it stores a good amount of energy for its weight. The battery feeds the motors, the sensors and the control system.
This is also the humanoid’s plainest limitation. Motors that lift a whole body use a great deal of current, so a humanoid usually works for a limited time and then has to be recharged. Adding a bigger battery adds weight, which the motors must then carry — and that uses more power again.
6.3.4 Communication, Safety and Customisation
A humanoid has no keyboard on its back. Yet somebody has to load its program, change its settings, check how much charge is left in its battery and see what its camera is looking at. All of that travels over a communication link.
Communication
Communication on a robot means the paths by which it receives commands and sends information out. A humanoid usually has more than one.
A wireless link — Wi-Fi or Bluetooth — is the common choice, because a walking robot cannot be tethered by a cable. Over it, an operator sends instructions from a laptop or a phone, and the robot sends back its status: which joints are where, how the battery is holding up, what the camera sees.
A wired connection is still used for the jobs where reliability matters more than freedom to move — loading new software, or running tests in the workshop with the robot standing still.
A network interface lets the robot talk to other machines rather than to a person. A humanoid working at a hospital reception, for example, may look up an appointment on the hospital’s own computer system before answering.
Communication also runs the other way, towards the people around it. A speaker lets the robot speak, and a screen on its chest or in its hand can display what it is saying or offer choices to touch. See Fig. 6.3.4-1.
Diagram
Fig. 6.3.4-1 – humanoid robot outline with four labels pointing to it: wireless antenna in the head, speaker and microphone at the head, touchscreen on the chest, red emergency stop button on the back
Safety Features
An industrial arm is kept away from people behind a fence. A humanoid is built to be near people, so its safety has to work in the open.
An emergency stop button is fitted where a person can reach it — usually on the back or shoulder — and pressing it cuts power to the actuators at once.
Collision detection watches for the sudden extra effort that means the robot has hit something, and stops the movement.
Compliance in the joints is a gentler idea. A stiff joint that is pushed simply pushes back, and whatever is in the way gets crushed. A compliant joint gives a little when it meets resistance, in the way your elbow yields if someone leans on it. So if a robot’s arm meets a person, the arm moves aside instead of forcing through.
Customisation for the Application
The ten building blocks describe a general humanoid. A real one is always built for a particular job, and the last step is adding whatever that job needs.
A humanoid meant for medical work may be fitted with specialised sensors and tools. One meant to greet visitors may be given a better microphone array so it can pick out a voice in a noisy hall, and a larger screen. One used for research on walking may carry extra sensors in its feet that would be pointless anywhere else.
This is worth remembering when you identify a robot from a photograph. The blocks in sections 6.3.1 to 6.3.3 will be there in some form on every humanoid. Anything beyond them is a clue about what this particular robot was built to do.
6.4 Identifying a Mobile Robot
The arm in section 6.2 waits for work to be brought to it. Sometimes that is impossible. A warehouse is too big to bring to a robot. A field of crops cannot be put on a conveyor. A hospital’s medicines have to reach wards spread over four floors.
For work like that, the robot has to go to the job. A robot built to move from place to place under its own power is called a mobile robot.
Most mobile robots are low, wide and unglamorous — a flat platform on wheels or tracks with sensors around its edges. You will find them carrying shelves across warehouse floors, delivering linen and medicines along hospital corridors, cleaning house floors, driving between rows of crops on a farm, and inspecting pipelines and drains. Flying robots and underwater robots are mobile robots too; only the way they move is different. See Fig. 6.4-1.
Diagram
Fig. 6.4-1 – photo of a four-wheeled mobile robot on a floor, with sensors visible around the front edge of its platform
The Problem That Defines a Mobile Robot
A fixed arm always knows where it is, because it never goes anywhere. Its encoders tell it the angle of each joint, and from those angles the position of the gripper follows exactly.
A mobile robot has no such luck. It sets off across a floor, and after a minute of turning and rolling it must still be able to answer two questions: where am I now, and what is in front of me? Everything else about a mobile robot — the sensors it carries, the software it runs — follows from those two questions.
What to Look for on a Mobile Robot
Ten building blocks make up a mobile robot:
- the chassis or frame
- the wheels or tracks that move it
- the actuators that drive them
- the sensors that watch its surroundings
- the control system
- the communication link
- localisation, which is how it works out where it is
- the safety features
- the software framework it is programmed on
- the customisation added for its particular job
The next four sections work through these, and by the end of them you will have met every part used in all three robots in this chapter.
6.4.1 Chassis, Wheels and Tracks
A cycle’s frame is not the part that does anything. It carries no load by itself, it has no moving parts, and nobody buys a cycle for its frame. But bolt the wheels, pedals, chain and seat to nothing at all and you have no cycle.
A mobile robot’s frame is called the chassis, and it plays that same quiet part.
The chassis of a mobile robot is usually a flat plate or a shallow box, and it is deliberately kept low and wide. A tall, narrow robot tips over when it turns quickly or crosses a bump; a low, wide one stays put. The battery, which is the heaviest single item, is normally mounted near the bottom for the same reason.
Wheels, Tracks and Legs
The chassis has to be carried across the ground somehow, and there are three usual answers. See Fig. 6.4.1-1.
Diagram
Fig. 6.4.1-1 – three simple side views of the same chassis: (a) on four wheels, (b) on two continuous tracks, (c) on four legs
Wheels are the common choice. They are simple, quiet and waste little energy, and they suit any hard flat surface — a warehouse floor, a corridor, a paved path.
Tracks are the wide rubber or metal belts that run around a set of wheels, like those on an earth mover. They spread the robot’s weight over a much larger area of ground and grip far better on loose or broken surfaces.
Legs are used where the ground is too rough or too broken for either — a legged robot can step over an obstacle instead of having to climb over it. Legs are much harder to build and control, which is why most working mobile robots still roll.
6.4.2 Actuators and Sensors
A car turns because its front wheels are steered by a mechanism connected to the steering wheel. That is one way to change direction, but it needs an extra mechanism and an extra motor, and it takes up room at the front of the vehicle.
Small mobile robots usually avoid it altogether, using a neater trick instead.
Driving and Steering with Two Motors
Most mobile robots use differential drive. Two wheels, one on each side, are each driven by their own motor, and a small free-rolling castor wheel holds the robot level. There is no steering mechanism at all.
Diagram
Fig. 6.4.2-1 – top view of a differential drive robot: two driven wheels on the left and right of the chassis, a small castor at the back, with arrows showing the left wheel turning faster than the right and a curved dashed line showing the resulting path to the right
Some robots use special wheels with small rollers set around their rims, arranged so the robot can also slide sideways without turning. This is called omnidirectional movement, and it is useful where a robot has to slot into a tight gap without swinging its body round.
The Sensors It Carries
Because a mobile robot moves through a world it does not control, it carries more sensors than an arm does. Table 6.4 lists the common ones.
Two of these are worth a closer look.
A LIDAR sits on top of the robot and spins, firing a laser pulse and timing how long the reflection takes to come back. Thousands of such measurements, taken all around, give the robot an outline of the walls and objects near it.
An ultrasonic sensor does the same thing with sound instead of light. It sends out a short pulse of sound too high for you to hear, and measures the time until the echo returns.
Notice that the encoder here is the same device you met on the arm’s joints in section 6.2.4. On an arm it counts the turning of a joint; on a mobile robot it counts the turning of a wheel. The part is identical, only its job has changed.
That is the honest limitation of all these sensors: not one of them works everywhere. Cameras need light, ultrasonic sensors are confused by soft surfaces that absorb sound, infrared sensors are fooled by dark or shiny floors, and encoders cannot detect a wheel slipping. A working robot carries several kinds so that the failure of one does not blind it.
6.4.3 Control System, Communication and Localisation
Sensors do not decide anything. A LIDAR reports distances, an encoder reports wheel turns, and that is the end of their work. Something has to look at all those numbers and choose what the robot should do next. That is the control system’s job on a mobile robot, just as it was on the arm.
The difference is what it decides about. An arm’s control system works out joint angles. A mobile robot’s control system works out where to go, how fast, and when to stop.
Turning Readings into Decisions
Start with the simplest useful rule. If something is close ahead, stop. If it is a little further off, slow down. Otherwise carry on. Written as a method, it looks like this.
The same method written as a Python program is short enough to read in one go. A function is used so that the rule is written once and can be applied to any distance.
On a real robot the list of test distances would be replaced by a fresh reading from the sensor, and the loop would never end — it would run over and over for as long as the robot was switched on.
Communication
A mobile robot is usually not working alone. In a warehouse, dozens of them share the same floor, and a central computer sends each one its next job and keeps them out of each other’s way.
That means the robot has to receive commands and transmit information — its position, its battery level, whether it has finished its task. The link is normally wireless, because the robot moves; a wired connection is used mainly when the robot is docked for charging or servicing.
Localisation
The hardest question a mobile robot faces is the one from section 6.4: where am I? Working that out is called localisation.
Counting wheel turns gives a first estimate, but as you saw, every slip adds an error that is never corrected. So the robot compares what its sensors see with what it knows about the building.
The best-known method is SLAM (Simultaneous Localisation and Mapping). The name says what it does: the robot builds a map of its surroundings and works out its own position within that map, both at the same time. See Fig. 6.4.3-1.
Diagram
Fig. 6.4.3-1 – a robot in a room with LIDAR beams fanning out to the walls and a doorway, and beside it the outline map the robot has built so far, with a small marker showing where the robot thinks it is
The idea is one you use yourself. Walk into an unfamiliar house and you build a rough picture of it as you go — a corridor here, a turn there, a door on the left. A few minutes later you can find your way back to the entrance, because you know both what the place looks like and where in it you are standing.
The robot does it with numbers. Its LIDAR gives it the shape of the walls around it. As it rolls forward, it takes another set of readings and looks for the same corners and walls in the new set. From how much those features have shifted, it works out how far it really moved — which is far more reliable than counting wheel turns.
6.4.4 Software Framework, Safety and Customisation
The program in section 6.4.3 was three lines of decision. A real mobile robot needs far more than that: something to read the LIDAR, something to run the motors, something to build the map, something to plan a path around an obstacle, and something to keep all of those running at once without getting in each other’s way.
Writing all of that from nothing, for every new robot, would take years. So teams build on a software framework.
A framework gives three things. It gives libraries — pieces of working code for tasks such as reading a sensor or planning a path. It gives development tools for building, running and checking programs. And it gives a simulation environment, in which the robot and its surroundings appear on screen, so a new program can be tested before it is ever loaded into a real machine.
The best known framework in robotics is ROS, the Robot Operating System, which despite its name is not an operating system like Windows or Linux but a collection of tools and libraries that runs on top of one.
Safety Features
A mobile robot’s danger is different from an arm’s. It is not usually strong enough to crush anything, but it moves about among people who are not expecting it, and some of them are carrying things or not looking down.
An emergency stop button is fitted on the top of the robot, where anyone nearby can reach it.
Collision detection is used here too. Many mobile robots also carry a bumper — a springy strip around the front edge with a switch behind it, so that any contact at all cuts the drive at once.
Speed limits matter as much as stopping. A robot moving through an area where people walk is set to a slow speed, so that it has time to detect someone and stop. The same robot may be allowed to move faster in an aisle closed to people.
Customisation for the Application
The ten building blocks give you a mobile robot that can move about safely and knows where it is. What it is actually for is decided by what is added on top. See Fig. 6.4.4-1.
Diagram
Fig. 6.4.4-1 – the same wheeled chassis drawn three times with different payloads: (a) a lifting platform raising a shelf, (b) a tank and spray nozzles for a farm, (c) a mast carrying a camera for inspection
A warehouse robot is given a lifting platform so it can carry a whole shelf. A farm robot is given a tank and nozzles, and sensors that can tell a crop from a weed. A search and rescue robot is given a thermal camera, which sees warm bodies in smoke and darkness where an ordinary camera sees nothing. An inspection robot is given a camera on a mast and lights of its own.
The chassis, wheels, motors, sensors and control system underneath may be nearly identical in all four. Only the payload changes.
6.5 Telling the Three Robots Apart
Three machines, all called robots, and no two of them alike to look at. An arm that never leaves its table, a two-legged machine that walks among people, and a flat platform that rolls down a corridor. Table 6.5 sets them side by side.
Identifying a Robot You Have Not Seen Before
Because the building blocks are always the same, you can work out a great deal about an unfamiliar robot from a photograph or a short video.
6.6 Summary
- A robot’s size and shape are decided by three things: the task it must do, the workspace it must work in, and the environment and its difficulties.
- However different two robots look, they are built from the same kinds of parts: a rigid structure, actuators, sensors, a control system and a power supply.
- An industrial robotic arm is fixed in one place and repeats a task. Its body is a chain of rigid links joined by movable joints.
- Robot joints are either rotary, where one link turns, or linear, where one link slides. Each joint gives one independent movement, called an axis, and the total number of independent movements is the robot’s degrees of freedom.
- The end effector is the tool at the far end of an arm — a gripper, welding torch, vacuum cups or cutter. It is the only part that touches the workpiece.
- Actuators supply the force that moves a joint. They may be electric, pneumatic or hydraulic; electric motors are the most common because they can be positioned precisely.
- The control system is the hardware controller plus the software that works out how each joint should move. It sends commands to the actuators and reads feedback from the sensors.
- An encoder inside each joint counts pulses as the joint turns, so the control system always knows the angle of every joint. Force sensors, proximity sensors and vision systems are also used.
- Industrial arms are guarded by emergency stop buttons, fences, light curtains and collision detection. They are programmed either by teaching positions with a hand-held control box or by writing and simulating a program offline.
- Integration is the work of joining an arm to the conveyors, fixtures and software of the factory around it.
- A humanoid robot is built to the plan of a human body, so that it can move through places and use tools made for people.
- A humanoid’s frame is made of light materials such as aluminium, carbon fibre and plastic, because the robot must carry its own weight.
- A humanoid has many joints, and some joint assemblies, such as the shoulder, give several degrees of freedom on their own.
- Humanoids use electric motors, since pneumatic and hydraulic systems would need a compressor or pump to be carried along. Hands are often driven by cables from motors in the forearm to keep the hand light.
- Cameras, microphones and touch sensors let a humanoid sense its surroundings, while an accelerometer and a gyroscope let it stay balanced. Its control loop must run in real time or the robot falls.
- A humanoid carries its own rechargeable lithium-ion battery, which limits how long it can work.
- Humanoids communicate wirelessly, by cable and over a network, and are made safe around people by emergency stop buttons, collision detection and compliant joints that give way when pushed.
- A mobile robot moves about on its own, on wheels, tracks or legs. Its chassis is kept low and wide for stability.
- Wheels suit hard flat surfaces; tracks spread the robot’s weight and grip better on loose or uneven ground, at the cost of speed, energy and wear.
- Differential drive steers a robot using two independently driven wheels, with no steering mechanism at all.
- Mobile robots carry cameras, LIDAR, ultrasonic sensors, infrared sensors, encoders and gyroscopes, because no single sensor works in every situation.
- Localisation is the problem of working out where the robot is. SLAM builds a map of the surroundings and finds the robot’s position within that map at the same time.
- A software framework supplies ready-made libraries, development tools and a simulation environment, so a new program can be tested before it runs on a real machine.
- Customisation is the payload or tool added on top of a standard mobile robot, and it is what decides whether the robot lifts shelves, sprays a field or inspects a pipeline.
- A mechanical body can take any form. What makes a machine a robot is that it senses, decides and acts.
6.7 Key Terms
- Actuator – the part of a robot that converts energy into movement, so that a joint or a tool actually moves.
- Axis – one independent movement of a robot, provided by one joint; an arm with six such movements is called a six-axis robot.
- Chassis – the base structure of a mobile robot, carrying the wheels or tracks and holding the sensors, actuators, control system and battery.
- Communication – the paths by which a robot receives commands and sends out information, by wireless link, cable or network.
- Control system – the hardware and software of a robot that read the sensors, work out what should happen next, and send commands to the actuators.
- Controller – the hardware part of the control system: a dedicated computer or embedded circuit board, with its input and output connections.
- Degree of freedom (DOF) – the number of independent movements a robot can make.
- Differential drive – a way of driving and steering a robot using two independently driven wheels and no steering mechanism.
- Encoder – a sensor on a turning shaft that produces electrical pulses as it rotates, letting the control system work out the angle turned.
- End effector – the tool fitted at the far end of a robot arm, which interacts directly with the workpiece.
- Environment – the surroundings a robot must work in, and the difficulties they bring, such as water, dust or uneven ground.
- Feedback – information that travels back from a sensor to the control system.
- Frame – the rigid structure of a robot that gives it its shape and holds all its other parts in place.
- Gripper – an end effector with two or more fingers that close on an object to hold it.
- Humanoid robot – a robot whose body is built to resemble the human body, with a head, torso, arms and usually legs.
- Industrial robotic arm – a robot built as a chain of moving segments, fixed in one place, used for repeated tasks in a factory or workshop.
- Joint – the movable connection between two links, and the place where a robot’s movement happens.
- Link – a rigid segment of a robot’s body, which does not bend or stretch.
- Localisation – working out where a robot is within its surroundings.
- Mobile robot – a robot that can move about its environment on its own, instead of being fixed in one place.
- Sensor – a device that measures a physical quantity, such as position, force or distance, and turns it into a signal the control system can read.
- SLAM (Simultaneous Localisation and Mapping) – a method by which a robot builds a map of its surroundings and works out its own position within that map at the same time.
- Software framework – a ready-made platform of libraries, development tools and simulation software that a robot’s own program is built on.
- Task – the particular work a robot is built to do, which is the first thing that decides its size and shape.
- Uncanny valley – the unease people feel towards a robot or animated face that looks almost, but not quite, human.
- Workspace – the region of space that a robot can reach and work in.
6.8 Objective Questions
(The part of a robot arm that touches the workpiece and does the actual job is called the:)
- link
- joint
- end effector
- controller
(Fill in the blanks.)
- A ________ joint allows one link to slide straight in or out, while a rotary joint allows one link to turn.
- ________ spread a mobile robot’s weight over a larger area of ground and grip better on mud and gravel than wheels do.
- The region of space a robot can reach and work in is called its ________.
- A humanoid robot carries its own rechargeable ________ battery, because it cannot be tied to a wall socket.
(State whether each statement is true or false.)
- An industrial robotic arm must be moved to a new place for each new job.
- Every degree of freedom of a robot needs its own actuator.
- A gyroscope tells a robot which way is up.
- The same encoder can be used to count the turning of a robot’s joint or of its wheel.
(Match each sensor in Column A with what it measures in Column B.)
Column A Column B a. Encoder i. Distance to objects all around the robot b. LIDAR ii. How hard the robot is pressing or pulling c. Accelerometer iii. Turns of a shaft d. Force sensor iv. The direction in which gravity pulls (A differential drive robot has its left wheel turning forward and its right wheel turning backward, both at the same speed. The robot will:)
- roll straight forward
- roll straight backward
- spin on the spot
- stay still
(A mobile robot uses the rule from this chapter: stop below 20 cm, slow down below 50 cm, otherwise go forward. Write the action chosen for a reading of 35 cm.)
(Name the type of end effector that would be used to lift a large flat sheet of glass.)
6.9 Concept Questions
(Define a link and a joint, and state clearly which of the two is responsible for a robot’s movement.)
(Give a reason why humanoid robots are built with aluminium, carbon fibre and plastic instead of steel, even though steel is stronger and cheaper.)
(Explain what an encoder does on an industrial robotic arm, and describe what problem the arm would face if its encoders were removed.)
(Differentiate between wheels and tracks on a mobile robot, giving one situation in which each is the better choice.)
(An engineer says that counting wheel turns is not enough for a mobile robot to know where it is. Explain why this is so, and state what SLAM does about it.)
(An encoder disc produces 600 pulses in one full turn. The controller counts 100 pulses while a joint moves. Work out the angle the joint has turned through, showing your steps.)
(Write a Python function named
decidethat takes a distance in centimetres and returns “reverse” if the distance is less than 10, “stop” if it is less than 25, and “go forward” otherwise. Then write the lines needed to print the action chosen for a distance of 8 cm.)
6.10 Case-Based Questions
(A school sets up a small robotic arm on a bench in its workshop. The arm has a gripper and is programmed to pick small components from a tray and place them into a jig. Students stand around the bench to watch it work.
a. Name two safety features that should be fitted before the arm is switched on, and say what each one protects against. b. The arm has to be stopped in exactly the same position every time it reaches for the tray. Name the sensor that makes this possible and explain how it reports the position. c. The teacher wants to replace the gripper with a small screwdriver tool. State the precaution that must be taken before the tool is changed, and give the reason for it.)
(A farm outside Jaipur uses a mobile robot to spray a liquid between rows of crops. The soil is soft and often muddy after watering. The robot carries a tank and nozzles, and a sensor at the front reports the distance to whatever is directly ahead. On one run, the sensor reports these readings, one after another:
Reading Distance ahead 1 120 cm 2 70 cm 3 40 cm 4 15 cm a. Should this robot run on wheels or on tracks? Give two reasons for your choice. b. Using the rule from this chapter — stop below 20 cm, slow down below 50 cm, otherwise go forward — state the action the control system chooses for each of the four readings. c. The tank and nozzles are not part of the ten building blocks of a mobile robot. What is this addition called, and name one more sensor the farm robot would need that a warehouse robot would not.)