Role of robots in transport

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Role of robots in transport

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which is an example of a robot used in transport?
A A calculator that adds numbers
B A driverless car that moves passengers
2. Which job does a robot do in transport?
A A delivery drone carries a parcel to a house
B A robot arm sprays paint on a car in a factory
3. What do robots in a warehouse move?
A Crops that are growing in a field
B Stock, such as boxes and shelves of goods
4. Why does a self-driving car need sensors?
A To detect obstacles such as people and other cars
B To store the music the passengers like
5. A warehouse robot's sensor detects a box in its path. What should it do?
A Stop or steer around the obstacle
B Drive straight into the box

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1driverless_car.detect(obstacle) AA driverless car with no sensors cannot detect obstacles, so it could crash into people or other vehicles
2drone.deliver(parcel, address) Bwarehouse_robot.move(stock, packing_area)
3A warehouse robot moves stock from a shelf to the packing area CA delivery drone flies a parcel to a customer's address, moving goods without a human driver
4A sensor on a transport robot stops it when an obstacle is too close DIF distance < 1 THEN stop()
5driverless_car.drive() // no sensors fitted EA self-driving car uses its sensors to detect an obstacle on the road so it can avoid it
6warehouse_robot.move(stock) // no destination FThe warehouse robot has no destination, so it does not know where to carry the stock

Definitions

robots in transport

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
__ obstacle = TRUE THEN stop_car() ENDIF
2.
IF distance _ 2 THEN hover() ENDIF
3.
_____ parcels_left > 0 DO carry_to_van() ENDWHILE
4.
obstacle _ read_sensor() IF obstacle = TRUE THEN stop_car() ENDIF
5.
IF blocked = TRUE THEN turn() ____ go_on() ENDIF

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A WHILE car_is_on DO
B READ distance FROM motor
C IF distance < 5 THEN
D brake()
E ENDIF
F ENDWHILE
Question 2
A altitude ← 0
B WHILE altitude < 50 DO
C altitude ← altitude - 5
D ENDWHILE
Question 3
A IF order_received THEN
B move_to(shelf)
C pick_up(item)
D move_to(shelf)
E ENDIF
Question 4
A FUNCTION stop_needed(d)
B IF d > 3 THEN
C RETURN TRUE
D ENDIF
E RETURN FALSE
F ENDFUNCTION
Question 5
A battery ← READ_BATTERY()
B IF battery > 20 THEN
C land()
D ELSE
E return_to_base()
F ENDIF

Answer Key

Role of robots in transport
Section A: Quick Questions
Q1
B — A driverless car that moves passengers
Q2
A — A delivery drone carries a parcel to a house
Q3
B — Stock, such as boxes and shelves of goods
Q4
A — To detect obstacles such as people and other cars
Q5
A — Stop or steer around the obstacle
Section B: Match the Pairs
Q1
driverless_car.detect(obstacle) → A self-driving car uses its sensors to detect an obstacle on the road so it can avoid it
Q2
drone.deliver(parcel, address) → A delivery drone flies a parcel to a customer's address, moving goods without a human driver
Q3
A warehouse robot moves stock from a shelf to the packing area → warehouse_robot.move(stock, packing_area)
Q4
A sensor on a transport robot stops it when an obstacle is too close → IF distance < 1 THEN stop()
Q5
driverless_car.drive() // no sensors fitted → A driverless car with no sensors cannot detect obstacles, so it could crash into people or other vehicles
Q6
warehouse_robot.move(stock) // no destination → The warehouse robot has no destination, so it does not know where to carry the stock
Section C: Definitions
Q1
robots in transport — Robots move people and goods, for example driverless cars, delivery drones and warehouse robots, using sensors to detect obstacles.
Section D: Fill in the Blanks
Q1
IF obstacle = TRUE THEN stop_car() ENDIF
Q2
IF distance < 2 THEN hover() ENDIF
Q3
WHILE parcels_left > 0 DO carry_to_van() ENDWHILE
Q4
obstacle ← read_sensor() IF obstacle = TRUE THEN stop_car() ENDIF
Q5
IF blocked = TRUE THEN turn() ELSE go_on() ENDIF
Section E: Spot the Error
Q1
B — A motor is an actuator, not a sensor. The self-driving car must read the distance from a sensor, so the line should be READ distance FROM sensor.
Q2
C — The delivery drone is meant to climb to 50. Subtracting 5 makes the altitude fall, so the loop never ends. It should be altitude ← altitude + 5.
Q3
D — After picking up the item, the warehouse robot must carry it to the packing area. Moving to the shelf again means the stock never gets there. It should be move_to(packing).
Q4
B — The robot should stop when the obstacle sensor shows something CLOSE, meaning a small distance. d > 3 stops it when the obstacle is far away. It should be IF d < 3 THEN.
Q5
C — When the battery is above 20 the delivery drone has enough power to start its delivery. It should take off, not land. The line should be takeoff().