Lite / Intelligent Robotic Systems / Term 4 worksheet
Worksheet: Intelligent Robotic Systems, term 4
Name: Date:
Week 28: Blocks, arrows and promises
1. Which layer does an object detector that turns camera pixels into 'box at 1.2 m' belong to?
- Sensing
- Perception and estimation
- Planning
- Actuation
2. Why draw power paths differently from data paths?
- To make the diagram colourful
- Because a power fault can disable many data paths at once, so it needs its own analysis
- Because power paths never fail
3. Which is the best label for an arrow from the localiser to the planner?
- position
- pose (x, y, heading) in the map frame, m and rad, 50 Hz
- data
- the robot's location, sent often
4. A robot's motor-current loop runs at 500 Hz and its path planner at 20 Hz. How many current-loop updates happen between two planner updates?
Answer: updates
5. In a robot where one 5 V regulator feeds the computer, the camera and the lidar, what is the regulator?
- A data path
- A single point of failure
- A redundant component
Week 28: Fast loops inside slow ones
1. A robot's motor-current loop runs at 1000 Hz and its path planner at 5 Hz. How many current-loop updates happen between two planner updates?
Answer: updates
2. A current loop runs at 20 kHz. What is its period, in microseconds?
Answer: µs
3. Which job should run at the highest rate?
- Choosing the next delivery shelf
- Recognising objects in camera images
- Controlling motor current
4. Why must an inner speed loop be much faster than the position loop around it?
- So the position loop can treat the speed as following its command almost instantly
- Because speed is more important than position
- It doesn't matter which is faster
5. A team moves the wheel PID from the main computer (which also runs vision) onto a small microcontroller. What is the main benefit?
- Vision runs faster
- The control loop's timing no longer depends on how busy vision is
- The robot needs less power overall
Week 28: One brain or many?
1. Which is a typical advantage of a distributed architecture?
- Fewer interfaces to specify
- Fast loops run close to the hardware with predictable timing
- No need to synchronise clocks
2. Design A costs more, is slower and is less reliable than design B. What is A?
- A trade-off
- Dominated: there is no reason to choose it
- The safe choice
3. Weights: cost 3, latency 2, reliability 5. Option X scores cost 4, latency 2, reliability 3 (out of 5). What is X's weighted total?
Answer:
4. Why write down what an architecture decision traded away?
- Documentation is required by law
- So later engineers know the weakness was a deliberate choice and when to revisit it
- It isn't useful
5. For a hospital delivery robot, which criterion should usually get the most weight?
- Lowest cost
- Reliability and safe failure
- Fastest top speed
Week 29: States, events and guards
1. A delivery robot starts in IDLE (state 0) with its battery at 55 %. Rules: IDLE(0) + order → DRIVING(1) if battery ≥ 30 %, else → CHARGING(3). DRIVING(1) + arrived → DELIVERING(2). DRIVING(1) + bump → FAULT(4). DELIVERING(2) + done → IDLE(0) and the battery drops by 20 %. CHARGING(3) + charged → IDLE(0) with the battery at 100 %. FAULT(4) + reset → IDLE(0). Any other event in any state is ignored. Events arrive in this order: arrived, reset, reset, done. Which state number is it in at the end?
Answer: state number
2. A delivery robot starts in IDLE (state 0) with its battery at 35 %. Rules: IDLE(0) + order → DRIVING(1) if battery ≥ 30 %, else → CHARGING(3). DRIVING(1) + arrived → DELIVERING(2). DRIVING(1) + bump → FAULT(4). DELIVERING(2) + done → IDLE(0) and the battery drops by 20 %. CHARGING(3) + charged → IDLE(0) with the battery at 100 %. FAULT(4) + reset → IDLE(0). Any other event in any state is ignored. Events arrive in this order: arrived, arrived, charged, reset, order, reset, order. Which state number is it in at the end?
Answer: state number
3. Which pair of guards on IDLE + order is complete and non-overlapping?
- battery > 30 and battery < 30
- battery ≥ 30 and battery < 30
- battery ≥ 30 and battery ≤ 30
4. Which of these is an event rather than a state?
- CHARGING
- bump sensor triggered
- FAULT
5. Two rules both match DRIVING + bump: one goes to FAULT, one stays in DRIVING. What is wrong?
- Nothing
- The machine is non-deterministic: the outcome depends on rule order
- The robot will be in two states at once
Week 29: No state left behind
1. Which state in the worked example is a trap?
- IDLE
- DELIVERING
- FAULT
2. A state machine has 5 states and 6 events. How many cells must a complete coverage table fill in?
Answer:
3. A state CHARGING exists in the code but no rule leads into it. What should you conclude?
- It is harmless
- A transition into it is probably missing, or the state should be deleted
- The robot will enter it randomly
4. A delivery robot starts in IDLE (state 0) with its battery at 45 %. Rules: IDLE(0) + order → DRIVING(1) if battery ≥ 30 %, else → CHARGING(3). DRIVING(1) + arrived → DELIVERING(2). DRIVING(1) + bump → FAULT(4). DELIVERING(2) + done → IDLE(0) and the battery drops by 20 %. CHARGING(3) + charged → IDLE(0) with the battery at 100 %. FAULT(4) + reset → IDLE(0). Any other event in any state is ignored. Events arrive in this order: bump, reset, arrived, done, arrived, order. Which state number is it in at the end?
Answer: state number
5. What is the best way out of a FAULT state on a delivery robot?
- Leave automatically after 5 seconds
- A deliberate reset event, accepted only when the fault cause is cleared
- Power-cycle the robot
Week 29: Test every arrow
1. Tests exercise 12 of a machine's 16 transitions. What is the transition coverage, in percent?
Answer: %
2. A guard is speed < 0.5 m/s. Which two test values check its boundary best?
- 0 and 1
- 0.49 and 0.5
- 0.25 and 0.75
3. A delivery robot starts in IDLE (state 0) with its battery at 45 %. Rules: IDLE(0) + order → DRIVING(1) if battery ≥ 30 %, else → CHARGING(3). DRIVING(1) + arrived → DELIVERING(2). DRIVING(1) + bump → FAULT(4). DELIVERING(2) + done → IDLE(0) and the battery drops by 20 %. CHARGING(3) + charged → IDLE(0) with the battery at 100 %. FAULT(4) + reset → IDLE(0). Any other event in any state is ignored. Events arrive in this order: done, done, order, arrived, order, bump. Which state number is it in at the end?
Answer: state number
4. Why store transitions in a table rather than nested if-statements?
- It runs faster
- The rules become data that can be printed, checked for completeness and tested one by one
- Python requires it
5. All single-transition tests pass, but the robot fails after its second delivery. Which test would have caught it?
- Another single-transition test
- A sequence test of two full deliveries, checking battery and state
- A test of the initial state
Week 30: Why P control always falls short
1. A plant with static gain K = 1 is under proportional control with Kp = 5. The setpoint steps to r = 5. What is the steady-state error e = r − y once it settles?
Answer:
2. A plant with static gain K = 0.5 is under proportional control with Kp = 1. The setpoint steps to r = 2. What is the steady-state error e = r − y once it settles?
Answer:
3. A plant with static gain K = 2 must settle within 5 % of a setpoint r = 2 using proportional control only. What is the smallest Kp that achieves this?
Answer:
4. Why can a P controller never remove the steady-state error completely?
- Because the sensor is noisy
- Because its output is zero when the error is zero, but holding the setpoint needs a non-zero push
- Because the plant is too slow
5. Which is NOT a usual cost of raising Kp a lot?
- Amplified sensor noise in the command
- Actuator saturation
- Larger steady-state error
Week 30: Reading a step response
1. A joint is commanded to 90°. The log shows it peaks at 91.8° and finally settles at 90°. What is the percentage overshoot?
Answer: %
2. A first-order plant (gain K = 1, time constant τ = 0.5 s) is under proportional control with Kp = 9 and a unit step setpoint. The closed loop is first-order with time constant τ/(1 + Kp). What is its 10–90 % rise time, in seconds? (Use rise time = τcl·ln 9 and 2 % settling = τcl·ln 50.)
Answer: s
3. A joint behaves like a second-order system with damping ratio ζ = 0.3. Using overshoot = exp(−π·ζ / √(1 − ζ²)) × 100 %, what percentage overshoot should a step produce?
Answer: %
4. A pick-and-place arm must not hit the part it is placing. Which metric matters most for that?
- Rise time
- Overshoot
- Steady-state error
5. In the PID joint lab, the response meets the error spec but rings for too long. Which change most directly helps?
- Increase Kd
- Increase Ki
- Remove the controller
6. Why do specifications bound several metrics at once?
- To make the job harder
- Because improving one metric (e.g. rise time) often worsens another (e.g. overshoot)
- Because they are all the same thing
Week 30: What I and D buy, and what they cost
1. Which term removes a constant steady-state error?
- Proportional
- Integral
- Derivative
2. Why is derivative action often filtered?
- It is too slow
- Differentiating noise produces large, jumpy commands
- It removes steady-state error too well
3. What is integrator windup?
- The integral growing while the actuator is saturated, causing overshoot later
- The motor spinning backwards
- The derivative term getting too large
4. A joint behaves like a second-order system with damping ratio ζ = 0.4. Using overshoot = exp(−π·ζ / √(1 − ζ²)) × 100 %, what percentage overshoot should a step produce?
Answer: %
5. A plant with static gain K = 1 is under proportional control with Kp = 9. The setpoint steps to r = 1. What is the steady-state error e = r − y once it settles?
Answer:
Week 31: Interface contracts
1. A planner's paths bend away from the map after each turn, though odometry looks fine on its own. Which mismatch is most likely?
- Unit
- Coordinate frame
- Rate
2. A tilt sensor publishes at 50 Hz and the balance loop runs at 200 Hz. On average, how many loop cycles use each tilt value?
Answer: cycles
3. A range of 0.4 m is read by code that expects millimetres. What distance does the code think the obstacle is at, in metres?
Answer: m
4. Which addition to a message most helps a consumer detect stale data at runtime?
- A longer variable name
- A timestamp of when it was measured
- A comment in the code
5. A robot's motor-current loop runs at 2000 Hz and its path planner at 10 Hz. How many current-loop updates happen between two planner updates?
Answer: updates
Week 31: The latency budget
1. A robot must react to an obstacle within 60 ms. Camera exposure and readout take 16 ms, vision processing 10 ms, planning 8 ms, the message over the bus 4 ms and the motor driver 10 ms. How much slack is left, in ms? (Negative means over budget.)
Answer: ms
2. A robot must react to an obstacle within 100 ms. Camera exposure and readout take 8 ms, vision processing 40 ms, planning 2 ms, the message over the bus 1 ms and the motor driver 10 ms. How much slack is left, in ms? (Negative means over budget.)
Answer: ms
3. Total latency is 80 ms and the robot moves at 1.2 m/s. How far does it travel before it starts to react, in cm?
Answer: cm
4. You must cut 10 ms. Stages: camera 16, vision 30, plan 8, bus 2, motor 10. Where do you look first?
- Bus
- Vision
- Motor driver
5. Why budget with worst-case timings rather than averages?
- Averages are harder to compute
- A safety deadline must hold on the slow cycles too, not just typical ones
- Worst cases never happen
Week 31: One connection at a time
1. In the worked example, which step should you investigate?
- Adding one checkpoint
- Adding three checkpoints
- Switching to the Kalman filter
2. What is a stub in integration testing?
- A broken subsystem
- A simple stand-in that obeys the interface so others can be tested early
- The last subsystem to be added
3. Why is integrating everything at once usually slower overall?
- The computer takes longer to compile
- When it fails, the fault could be in any connection, so diagnosis takes much longer
- It isn't slower
4. A robot must react to an obstacle within 80 ms. Camera exposure and readout take 12 ms, vision processing 25 ms, planning 10 ms, the message over the bus 4 ms and the motor driver 5 ms. How much slack is left, in ms? (Negative means over budget.)
Answer: ms
5. Why replay recorded sensor data when testing a new filter?
- Recordings are always more accurate
- The same input every time makes before-and-after comparisons fair and repeatable
- It saves battery
Week 32: Change one thing
1. In 'Does checkpoint spacing change the rover's final error?', what is the dependent variable?
- Checkpoint spacing
- Final position error
- The route
2. All baseline runs were done before lunch, all new-method runs after a battery swap. What is the problem?
- None
- Battery state is confounded with the method
- Too few runs
3. Which is a testable hypothesis?
- The new planner is smarter
- On the 5 test maps, the new planner's mean path length is shorter than the baseline's
- Planners are interesting
4. What is the control condition in a test of a new obstacle filter?
- The robot with no filter, or the current filter, under the same conditions
- A robot that does not move
- The best possible filter
5. Five trials of a robot's docking error gave 49, 44, 52, 51, 49 mm. What is the mean, in mm?
Answer: mm
Week 32: How many runs is enough?
1. Five trials of a robot's docking error gave 29, 35, 41, 41, 32 mm. What is the sample standard deviation (divide by n − 1), in mm?
Answer: mm
2. A metric has a sample standard deviation of 1.2 across n = 36 independent trials. What is the standard error of the mean?
Answer:
3. Pilot runs suggest a trial-to-trial standard deviation of 4 cm. How many trials do you need so the standard error of the mean is at most 1.5 cm? (Give the smallest whole number.)
Answer: trials
4. Why run both controllers on the same list of seeds?
- It is faster
- So both face identical noise and disturbances, and differences come from the controllers
- Seeds make the results better
5. Which number tells a user how much a single run of the robot will vary?
- Standard deviation
- Standard error
- Number of trials
Week 32: Write the plan before the runs
1. Which belongs in a test plan written before the runs?
- The results table
- The primary metric and how it will be compared
- The discussion of why it worked
2. Why name one primary metric?
- Reports have limited space
- Testing many metrics and picking the best-looking one makes chance wins look real
- Secondary metrics are always useless
3. Halfway through, you realise your metric ignores jammed parts. What should you do?
- Quietly switch metrics
- Change it, record the change and the reason, and report both
- Keep the broken metric
4. Pilot runs suggest a trial-to-trial standard deviation of 4 cm. How many trials do you need so the standard error of the mean is at most 1.5 cm? (Give the smallest whole number.)
Answer: trials
5. A metric has a sample standard deviation of 4.5 across n = 16 independent trials. What is the standard error of the mean?
Answer:
Week 33: Better than what?
1. A baseline path follower has a mean tracking error of 40 mm. The new method has 38 mm under the same conditions. What is the percentage improvement (lower error is better)?
Answer: %
2. Over 10 seeded trials each, the baseline controller's settling time averaged 20 s and the new controller's 14 s. Both conditions have a standard deviation of 2 s, so the pooled SD is 2 s. What is the difference in means (baseline − new), in seconds?
Answer: s
3. Why is 'error 0.86' on its own not a result?
- It has too few digits
- Without a baseline on the same task, nobody can judge whether it is good
- Errors should be percentages
4. In the baseline lab, unticking 'same seeds' makes the comparison…
- More precise
- Noisier, because each method also gets different luck
- Unchanged
5. A method has d = 1.5 but saves only 0.2 mm on a task with a 5 mm tolerance and doubles the code size. What should the report say?
- Huge win, ship it
- The difference is consistent but probably not worth the complexity for this task
- d is wrong
Week 33: Give the baseline a fair fight
1. Which makes a baseline comparison unfair?
- Same seeds for both
- Tuning only the new method
- Reporting both methods' SD
2. The new planner uses a perfect map; the baseline uses the noisy lidar map. Fair?
- Yes
- No: they must get the same information
- Only if the new planner wins by a lot
3. Why tune on seeds 101–110 and compare on seeds 1–10?
- Lower seeds are harder
- So the final comparison isn't on the same runs the gains were fitted to
- No reason
4. A baseline path follower has a mean tracking error of 25 mm. The new method has 18.75 mm under the same conditions. What is the percentage improvement (lower error is better)?
Answer: %
5. Over 10 seeded trials each, the baseline controller's settling time averaged 40 s and the new controller's 36 s. Both conditions have a standard deviation of 2 s, so the pooled SD is 2 s. What is the effect size d = (difference in means) / pooled SD?
Answer:
Week 33: Take it apart to see what matters
1. In the worked example, which component contributes most?
- Re-imaging
- Kalman filter
- Number of checkpoints
2. Why remove only one component at a time?
- It's quicker
- So any change in performance can be attributed to that component
- Removing two is not allowed
3. Full system error 1.2 mm; without the filter 1.8 mm. By what percentage does removing the filter increase the error?
Answer: %
4. Removing A alone or B alone barely changes the result, but removing both makes it much worse. What does that mean?
- Neither matters
- A and B back each other up: either is enough, but you need one
- The experiment failed
5. A baseline path follower has a mean tracking error of 50 mm. The new method has 40 mm under the same conditions. What is the percentage improvement (lower error is better)?
Answer: %
Week 34: Measure what you actually want
1. In the hook, which metric was missing?
- Trip time
- Comfort (acceleration or jerk)
- Number of floors
2. Mean tracking error is low, but a robot occasionally swings 30 cm off its path near shelves. Which metric reveals this?
- Mean error
- Maximum (or 99th-percentile) error
- Number of runs
3. Which is best written as a constraint rather than the primary metric for a hospital robot?
- Deliveries per hour
- No contact with people
- Energy per delivery
4. A joint is commanded to 45°. The log shows it peaks at 57.6° and finally settles at 45°. What is the percentage overshoot?
Answer: %
5. A baseline path follower has a mean tracking error of 50 mm. The new method has 40 mm under the same conditions. What is the percentage improvement (lower error is better)?
Answer: %
Week 34: Error bars that tell the truth
1. Over 10 seeded trials each, the baseline controller's settling time averaged 30 s and the new controller's 28 s. Both conditions have a standard deviation of 5 s, so the pooled SD is 5 s. What is the effect size d = (difference in means) / pooled SD?
Answer:
2. Five trials of a robot's docking error gave 16, 8, 8, 16, 17 mm. What is the mean, in mm?
Answer: mm
3. A metric has a sample standard deviation of 2 across n = 16 independent trials. What is the standard error of the mean?
Answer:
4. A chart has error bars but no caption saying what they are. What can a reader conclude?
- They are SD
- They are SE
- Very little: SD and SE can differ by a factor of √n
5. Means are 80 and 76. The y-axis starts at 70. How many times taller does the first bar look than the second?
Answer: ×
Week 34: Report the difference, not two averages
1. A baseline path follower has a mean tracking error of 40 mm. The new method has 38 mm under the same conditions. What is the percentage improvement (lower error is better)?
Answer: %
2. Condition A has SE 0.3 and condition B has SE 0.4 (independent). What is the SE of the difference?
Answer:
3. Over 10 seeded trials each, the baseline controller's settling time averaged 24 s and the new controller's 19 s. Both conditions have a standard deviation of 5 s, so the pooled SD is 5 s. What is the effect size d = (difference in means) / pooled SD?
Answer:
4. Which sentence reports a comparison properly?
- The new method is 52 % better.
- On 10 shared seeds, IAE fell from 1.79 ± 0.13 to 0.86 ± 0.09 (mean ± SD), a 52 % reduction.
- The new method has an IAE of 0.86.
5. Why also report 'won on 9 of 10 seeds'?
- It sounds impressive
- It shows how consistent the advantage is across conditions, not just on average
- It replaces the mean
Week 35: Where does each sentence go?
1. 'Each controller ran on seeds 1–10 at 450 kg' belongs in…
- Introduction
- Method
- Discussion
2. Which sentence belongs in Results?
- PI is better because of its integral term.
- Mean error: P 8.1 ± 1.2 mm, PI 3.9 ± 0.8 mm (n = 10).
- Lifts must be accurate.
3. Which section is usually best written last?
- Method
- Results
- Abstract
4. Which is the best figure caption?
- Results.
- Figure 2: IAE per seed for tuned P (orange) and PI (blue); bars are means, n = 10 shared seeds.
- PI wins!
5. A baseline path follower has a mean tracking error of 50 mm. The new method has 40 mm under the same conditions. What is the percentage improvement (lower error is better)?
Answer: %
Week 35: Claims no wider than the evidence
1. 'PI was 52 % better.' What is wrong?
- Nothing
- Missing the metric, baseline, uncertainty and n
- 52 % is too precise
2. Which is an overclaim from a simulation-only study?
- In simulation, PI had lower IAE than tuned P
- PI will reduce wear on the real motor
- PI won on all 10 shared seeds
3. Which hedge adds real information?
- This may possibly suggest an improvement
- At 450 kg load in simulation
- Results might vary
4. A baseline path follower has a mean tracking error of 25 mm. The new method has 18.75 mm under the same conditions. What is the percentage improvement (lower error is better)?
Answer: %
5. Over 10 seeded trials each, the baseline controller's settling time averaged 40 s and the new controller's 36 s. Both conditions have a standard deviation of 2 s, so the pooled SD is 2 s. What is the effect size d = (difference in means) / pooled SD?
Answer:
Week 35: Could someone else get your numbers?
1. Which record most helps someone reproduce a seeded simulation?
- A screenshot of the final plot
- The seeds, parameters and code version
- A description of how long it took
2. Which is the most useful limitation?
- More research is needed
- Only one load (450 kg) was tested; at full load the integral term may wind up more
- The author is a student
3. Why save per-trial results, not just means?
- To fill space
- So others can recompute the statistics, see outliers and make paired comparisons
- Means are less accurate
4. Five trials of a robot's docking error gave 22, 23, 26, 19, 22 mm. What is the sample standard deviation (divide by n − 1), in mm?
Answer: mm
5. A metric has a sample standard deviation of 4.5 across n = 16 independent trials. What is the standard error of the mean?
Answer:
Week 36: Scope an integrated system you can evaluate
1. Which part of a line-following rover closes the feedback loop?
- The battery
- The controller comparing measured position with the line and correcting steering
- The chassis
2. Your trials take 40 minutes each. What should you change?
- Run fewer trials
- Simplify the system or simulation so trials take seconds
- Skip the baseline
3. Pilot runs suggest a trial-to-trial standard deviation of 4 cm. How many trials do you need so the standard error of the mean is at most 1.5 cm? (Give the smallest whole number.)
Answer: trials
4. A robot must react to an obstacle within 80 ms. Camera exposure and readout take 12 ms, vision processing 25 ms, planning 10 ms, the message over the bus 4 ms and the motor driver 5 ms. How much slack is left, in ms? (Negative means over budget.)
Answer: ms
5. When should the capstone's primary metric be fixed?
- After seeing which alternative wins
- Before any comparison runs
- While writing the report
Week 36: How will it fail?
1. Which failure is most dangerous?
- One that stops the robot and raises an alarm
- One that gives wrong data with no sign anything is wrong
- One that slows the robot slightly
2. Three-sensor majority voting tolerates…
- Any single sensor failure
- Any two failures
- Any number of failures
3. Why also test a mitigation when nothing has failed?
- To check it doesn't harm normal performance
- It isn't necessary
- To make the report longer
4. A baseline path follower has a mean tracking error of 25 mm. The new method has 18.75 mm under the same conditions. What is the percentage improvement (lower error is better)?
Answer: %
5. A delivery robot starts in IDLE (state 0) with its battery at 70 %. Rules: IDLE(0) + order → DRIVING(1) if battery ≥ 30 %, else → CHARGING(3). DRIVING(1) + arrived → DELIVERING(2). DRIVING(1) + bump → FAULT(4). DELIVERING(2) + done → IDLE(0) and the battery drops by 20 %. CHARGING(3) + charged → IDLE(0) with the battery at 100 %. FAULT(4) + reset → IDLE(0). Any other event in any state is ignored. Events arrive in this order: order, done, arrived, arrived, arrived. Which state number is it in at the end?
Answer: state number
Week 36: Present it, then defend it
1. Which answer to 'Is 10 trials enough?' is strongest?
- It felt like enough
- Pilot runs gave SD 0.13, so SE ≈ 0.04, small next to a 0.93 difference
- Everyone uses 10
2. Asked 'Would this work on a real motor?', the best answer is…
- Yes, definitely
- We tested only in simulation; friction and delay could reduce the advantage, and a hardware test with the same metric would check it
- That's not relevant
3. Which statement explains a trade-off well?
- PID is just better
- PID settled 40 % faster but its command was noisier; settling mattered more for this task
- We picked PID because it has more letters
4. Over 10 seeded trials each, the baseline controller's settling time averaged 24 s and the new controller's 18 s. Both conditions have a standard deviation of 8 s, so the pooled SD is 8 s. What is the effect size d = (difference in means) / pooled SD?
Answer:
5. A baseline path follower has a mean tracking error of 50 mm. The new method has 40 mm under the same conditions. What is the percentage improvement (lower error is better)?
Answer: %