Teaching pack · UAT 308

A 15-week teaching plan, 5 worksheets, a scoring rubric and a map from the course description to the lessons, for instructors to evaluate and adapt before teaching.

Last updated: · 3(1-4-4) · Per week: lecture 1 h, lab 4 h, self-study 4 h; 75 contact hours per term

Coverage of the course description

The lessons fully teach 9 of 9 description topics. Each topic lists the modules and lesson sections that teach it, and incomplete topics say what is missing.

Description topicModulesWhere it is taughtStatus
Robot structures and componentsM1M2Module 1: parts of a mobile robot (the solar-farm UGV) · Module 2: the three-joint armCovered
Introductory kinematicsM1M2Module 1: review of vectors and rotation, homogeneous transforms and the frame tree, odometry · Module 2: the Jacobian and tool velocity, numerical IK with damped least squaresCovered
ActuatorsM1M2Module 1: the vehicle's two DC motors · Module 2: actuators: types, torque and motor selection (actuator types table, torque τ = JᵀF, gearheads, continuous against stall torque, Example 3 choosing actuators for the three-joint arm)Covered
SensorsM1M3Module 1: encoder, IMU, GNSS, LiDAR and cameras in their own frames, odometry and systematic error · Module 3: pairing data from several sensors by timeCovered
Control systemsM4Module 4: pure pursuit and the effect of steering delay · low-level control: wheel speed with PI (the control cascade, converting v and ω to wheel speeds, the ros2_control diff_drive_controller, PI with anti-windup, Example 3 wheel speed control on a slope)Covered
Motion planningM4M5Module 4: RRT compared with grid A* · Module 5: meeting a moving vehicleCovered
Industrial automationM1M2Module 1: robots in industrial automation: cells and PLC interfacing (applications after Groover, cells under ISO 10218-2:2025, robot controller, cell PLC and safety system, the handshake, OPC UA for Robotics, Example 3 sizing the I/O) · Module 2: arm safety under ISO 10218Covered
Robot–information-system integrationM3M5Module 3: parts of ROS 2 and QoS policies · Module 5: integration that tolerates communication loss · connecting robots to information systems (ISA-95 levels, MES and CMMS, VDA 5050 over MQTT, OPC UA for Robotics, message IDs and idempotent handling, broker security, Example 3 turning hotspot messages into work orders in a database)Covered
Integration of robotics with UASM1M5Module 5: task-allocation taxonomy, sequential auctions and drone–vehicle rendezvous · Module 1: the panel-hotspot-on-the-map exampleCovered

Weekly teaching plan

WeekTopicPre-classLectureLabEvidence
1 M1Parts of a mobile robot; review of vectors and rotationRead module 1 through the review section; run review examples A and BPerception, localisation, planning and control; vectors and 2D rotation matricesWorksheet 1 part A: measure LiDAR and camera mounting on the training vehicle; write transforms to base_linkSensor transform matrices
2 M1Homogeneous transforms and map, odom, base_linkRead the homogeneous transform and map/odom/base_link sections; run Example 1Chaining transforms and why map and odom are separateWorksheet 1 part B: measure known cones with LiDAR, transform to map coordinates and compare with a tapeComputed versus measured coordinates
3 M1Odometry and systematic errorRead the odometry section; run Example 2; take the module 1 quizHow wheel radius and track errors bend the pathWorksheet 1 part C: five 10 m straight runs, clockwise and anticlockwise square test, then calibrateCalibrated values, before-and-after results and quiz result
4 M2The Jacobian and tool velocityRead module 2 'The Jacobian'; run Example 1Forward kinematics, joint-to-tool velocity and poses near singularityWorksheet 2 part A: measure link lengths, write FK and the Jacobian, check against 5 measured posesComputed versus measured FK table
5 M2Numerical IK with damped least squaresRead the numerical IK section; run Example 2Iterating to a solution, the role of λ and unreachable targetsWorksheet 2 part B: compare joint speeds with the servos and command the arm to 5 mock battery slotsPosition error table
6 M2Arm safetyRead 'Arm safety'; take the module 2 quizWorkspace, speed, maximum force and ISO 10218Worksheet 2 part C: try several λ values; write the workspace limits and emergency-stop conditionsWorksheet 2 report and quiz result
7 M3Parts of ROS 2Read module 3 'Parts of ROS 2'Nodes, topics, services, actions and message timestampsWorksheet 3 part A: write a 30 Hz image publisher and a subscriber with 50 ms processing, with timestampsCode for the two nodes
8 M3QoS policiesRead 'QoS policies'; run Example 1History depth, reliability and their effect on latencyWorksheet 3 part B: measure latency at depth 1, 5 and 10 and try mismatched reliabilityLatency table against Example 1
9 M3Time synchronisation; midtermRead the time-pairing section; run Example 2; review modules 1–3; take the module 3 quizMidterm examination (modules 1–3)Worksheet 3 part C: pair camera and LiDAR bags at different slop values and summarise the QoS tableWorksheet 3 report and midterm score
10 M4RRTRead module 4 'RRT'; run Example 1Randomly growing the tree, inflating obstacles by vehicle width and comparing with A*Worksheet 4 part A: build the mock panel-row field; run RRT with ten seeds and compare with A*Path length and node count table
11 M4Pure pursuitRead 'Pure pursuit'; run Example 2Lookahead distance, curvature and steering delayWorksheet 4 part B: measure the real steering-command delayMeasured delay
12 M4Choosing lookahead from measurementsReview module 4 common mistakes; take the module 4 quizTrade-off between straight-line accuracy and joining curvesWorksheet 4 part C: track at three lookaheads, measure lateral error and choose the working valueWorksheet 4 report and quiz result
13 M5Task allocation and sequential auctionsRead module 5 taxonomy and auction sections; run Example 1Marginal cost and auctioning a new task mid-missionWorksheet 5 part A: two vehicles bid for 8 checkpoints; compare with manual split, then add a new taskTotal distance and re-routing record
14 M5Drone–vehicle rendezvous and communication lossRead the rendezvous and communication-loss sections; run Example 2; take the module 5 quizComputing the rendezvous point and behaviour when links dropWorksheet 5 part B: land a SITL drone on a slow-moving vehicle and cut one vehicle's linkSITL log, vehicle behaviour record and quiz result
15 M5Mini-project demo: joint UGV and drone missionPrepare the system architecture report and demoCourse wrap-up and project criteriaDemonstrate the whole joint mission; present problems found and improvementsMini-project demo and report, scored with the rubric

Worksheets and instructor guide

One worksheet per module. Students open it on the web, print it or download the .docx. The instructor guide under each worksheet gives the class timing, expected results, discussion questions and notes for students with different backgrounds.

1Worksheet 1 Coordinate frames and odometry calibration
Lab · About 12 h of class time · CLO1, CLO2

Objective: Write sensor frame transforms, check them against measurements and calibrate wheel radius and track of the training vehicle

Equipment

  • Training robot vehicle with LiDAR, camera and wheel encoders
  • Cones and tape measure
  • Computer with ROS 2 and Python
  • Example code at /downloads/uat-308/

Safety

  • Test in a fenced area with someone holding the emergency stop or kill remote at all times
  • Limit speed as set by the lecturer and never stand in the vehicle's path
  • Switch off before measuring or adjusting sensors on the vehicle

Steps

  1. Measure LiDAR and camera mounting and write transforms to base_link
  2. Place cones at known positions, measure them with LiDAR, transform to the map with Example 1 and compare with the tape
  3. Drive 10 m straight five times, measure lateral drift and estimate the wheel-radius difference with Example 2
  4. Run clockwise and anticlockwise square paths and record end position against start
  5. Adjust wheel radius and track, then repeat the test

Deliverables

  • Sensor transform matrices
  • Computed versus measured coordinates
  • Calibrated wheel radius and track with before-and-after results

Checklist

  • Table 1 lists both the LiDAR and the camera, every value has a unit (m or degrees), and the transform matrices written from them are attached (Correctness of kinematics and calculations)
  • The transform code multiplies in the order map, base_link, sensor and uses radians in the trigonometric functions (Correctness of kinematics and calculations)
  • Table 3 has all 5 straight runs and both square-path directions, before and after calibration (Experiments and measured evidence)
  • The calibrated wheel radius and track are given with units, with how much the before-and-after results improved (Experiments and measured evidence)
  • The name of the emergency-stop holder and the speed limit used are recorded for every driving test (Safety and communication)

Instructor guide

Class timing 720 min

  1. Objectives, safety, fencing the area and testing the emergency stop60 min
  2. Measure sensor mounting and write the transforms120 min
  3. Place cones, measure with LiDAR, transform and compare with the tape150 min
  4. Five 10 m straight runs and estimating the wheel-radius difference150 min
  5. Square-path tests, calibration and repeat tests180 min
  6. Wrap-up, questions and hand-in checklist60 min

Expected results

  1. Record: Table 1 Sensor mounting relative to base_linkTable 1: values depend on the real vehicle. Check that the axes follow REP 103 (x forward, y left), that a camera facing right has a yaw of -90 degrees, and that positions are measured to the centimetre. With the lesson's Example 1 values the camera is at (0.20, -0.25) m with yaw -90 degrees.
  2. Record: Table 2 Cone coordinates from LiDAR against the tapeTable 2: first check the code with Example 1 (vehicle at (12, 5) m heading 30 degrees, point (4.0, 0.5) m in the camera frame); it must give (14.73, 1.67) m, while the swapped order gives (7.63, -15.46) m. On the real vehicle, errors should be a few centimetres. If they exceed 10 cm or all point the same way, check the multiplication order, the angle units and the measured yaw.
  3. Record: Table 3 10 m straight runs and square paths, before and after calibrationTable 3: if the right wheel is 0.1% larger as in Example 2 (track 0.50 m, radius 0.100 m), a 10 m run drifts about 0.10 m to the left with a heading change of 1.15 degrees (0.020 rad). The five runs should drift the same way, scattered around the mean. After calibration the drift should shrink to the run-to-run scatter, with no clear common direction.
  4. Question 1: From the mean drift of your five 10 m straight runs in Table 3, estimate by what percentage and by how many millimetres the two wheel radii differ, and which wheel is larger. Show the formula you used.Use Δr/r ≈ 2by/L² (from Δθ = (d_R - d_L)/b and drift ≈ LΔθ/2). A mean drift of 0.10 m over 10 m with b = 0.50 m gives 0.10%, or 0.10 mm for a 0.100 m wheel (0.05 m gives 0.05 mm, 0.20 m gives 0.20 mm). Drifting left means the right wheel is larger. A strong answer notes that a fraction of a millimetre cannot be measured with a ruler, so calibration must come from real runs.
  5. Question 2: If the errors in Table 2 all point the same way and grow for cones further away, what is the likely cause? If the LiDAR yaw is off by 1 degree, how large is the sideways error for a cone 4 m away and one 10 m away?Most likely the sensor's mounting yaw is wrong, because an angle error grows with range: sideways error ≈ range × sin(angle). One degree gives 7.0 cm at 4 m and 17.5 cm at 10 m (two degrees give 14.0 cm and 34.9 cm). An error that stays constant with range points to wrong x, y mounting values instead.
  6. Question 3: Compare your clockwise and anticlockwise square-path results. Do they point mainly to unequal wheels or to an uncertain wheel separation, and why?Reasoning: unequal wheels bend every straight leg the same way whichever direction the square is driven, while a wrong wheel separation makes every turn over- or under-rotate by the same amount. The two causes therefore show differently in the clockwise and anticlockwise runs, which is why both are driven. A strong answer uses the actual end positions of both directions from Table 3, not one direction alone.
  7. Question 4: After calibration the vehicle still drifts slightly on every run. Why does real solar-farm work still need GNSS or map matching to correct position, and why should the map frame not be fed straight into the wheel controller?Odometry always accumulates error with distance, and some remains after calibration (Example 2 shows a 0.1 mm wheel difference drifting 2.5 m over a 50 m panel row), so a position source that does not drift is needed. The map frame can jump when corrected; fed straight into the wheel controller it would make the vehicle jerk, so short-term control uses the odom frame as in REP 105.

Discussion questions

  • If the camera were mounted 2 degrees off without anyone knowing, would the technician be sent to the wrong panel for a hotspot 4 m away, and for one 10 m away?
  • How often should odometry be recalibrated on a solar farm where wheels wear unevenly, and how would you know it is time?
  • Why does ROS tf store frame relationships as a tree rather than storing every pair of frames?

Adapting to student background

Upper secondary (M.6)
Have them work Example 1 by hand first (multiplying 3×3 matrices row by row) before running the code, and pair them with a hands-on peer for measuring sensor mounting on the vehicle.
Vocational certificate
Start with a top-view sketch of the vehicle with x forward and y left, and tape marks for the sensor positions; let them fill values into ready-made code instead of writing matrices, and use Δr/r = 2by/L² as a fill-in formula.
Diploma
Extension: put the calibrated values into the wheel controller's parameter file and publish the sensor transforms as static transforms in ROS 2, checking them by viewing the tf tree.

Common student mistakes: Common mistakes in the module 1 lesson

2Worksheet 2 The Jacobian and IK on a training arm
Lab · About 12 h of class time · CLO1

Objective: Write FK, the Jacobian and DLS IK for the training arm, check real accuracy and define a safe workspace

Equipment

  • Small servo-driven training arm
  • Ruler or tape measure
  • Mock battery slots
  • Python and the module 2 example code

Safety

  • Stay outside the arm's reach while it moves, with an emergency stop within reach
  • Test every new command at low speed first
  • Cut servo power before measuring or handling the arm

Steps

  1. Measure link lengths, write FK and the Jacobian and check against 5 real poses
  2. Compute required joint speeds in a working pose with Example 1 and compare with servo maximum speed
  3. Write DLS IK as in Example 2, command the arm to 5 mock battery slots and measure the error
  4. Try several λ values; record accuracy and smoothness
  5. Write the arm's workspace limits and emergency-stop conditions

Deliverables

  • FK, Jacobian and IK code
  • FK and IK error tables
  • λ results table
  • Workspace limits and emergency-stop conditions

Checklist

  • Table 1 has all 5 poses with computed and measured values and units, and the FK code was checked against the lesson (q = (0, 90, 0) degrees gives (0.400, 0.500) m with Example 2's link lengths) (Correctness of kinematics and calculations)
  • Table 2 covers all 5 target slots and at least 3 values of λ (including λ = 0) (Experiments and measured evidence)
  • Record 3 compares the required joint speeds with the servo maximum speed in degrees per second (Correctness of kinematics and calculations)
  • Workspace limits are written as numbers (reach, joint angles, speed) with at least 3 emergency-stop conditions (Safety and communication)
  • The IK code checks that the target is within reach before commanding the arm and warns when it is not (ROS 2 software and integration)

Instructor guide

Class timing 720 min

  1. Safety briefing, emergency-stop test and keep-out zone60 min
  2. Measure links, write FK and the Jacobian and check 5 poses150 min
  3. Compute joint speeds in the working pose90 min
  4. Write DLS IK and command the arm to 5 mock battery slots180 min
  5. Try several λ values and record the results120 min
  6. Write workspace limits, answer questions and hand-in checklist120 min

Expected results

  1. Record: Table 1 FK checked against 5 measured posesTable 1: check the code with Example 2's three-link arm (0.40, 0.30, 0.20 m): q = (0, 0, 0) gives (0.900, 0.000) m, (90, 0, 0) gives (0.000, 0.900) m, (0, 90, 0) gives (0.400, 0.500) m, (30, 30, 30) gives (0.496, 0.660) m, (45, -45, -45) gives (0.724, 0.141) m. The real training arm is shorter. Errors of a few millimetres against measurement are normal for a small servo arm; centimetres point to a wrong link length or zero position.
  2. Record: Table 2 DLS IK to the mock battery slots at several λTable 2 (with Example 2's arm and starting pose, target (0.50, 0.40) m, 200 iterations): λ = 0, 0.05, 0.1, 0.2 and 0.5 all reach the target (0.0 mm error), but the largest joint step falls to 76.2, 65.2, 46.1, 22.7 and 7.3 degrees. A large λ is slower: λ = 0.5 is 32.4 mm off after 10 iterations and 1.8 mm after 20, and λ = 1.0 is still 11.2 mm off after 50. On the real arm the final error also includes FK error and gear backlash.
  3. Record: Record 3 Joint speeds needed in the working pose, workspace limits and emergency-stop conditionsRecord 3: for the two-link arm (0.40 and 0.30 m) with the tool moving at 0.10 m/s, the fastest joint needs 19.1, 41.3, 63.0, 95.2, 191.2, 382.9 and 957.4 deg/s at θ2 = 90, 45, 30, 20, 10, 5 and 2 degrees. If the lab uses Example 3's geared motor (360 deg/s), poses with θ2 below about 5 degrees are impossible. Good limits forbid near-full stretch, limit joint speed, set software angle limits and stop at once when a person or a still-spinning propeller is in the area.
  4. Question 1: Which pose in Table 1 has the largest error, and is it more likely to come from link lengths, servo zero positions or the measurement? Reason from the pattern of the errors.A strong answer reads the pattern: errors that grow as the arm stretches and point the same way suggest a wrong link length; a constant angular offset in every pose suggests a servo zero position; small scattered errors with no pattern suggest measurement.
  5. Question 2: From Record 3, which working pose would need a joint to turn faster than the servo can? Use manipulability to explain why that pose needs high joint speed.Poses with the arm nearly straight (θ2 near 0), where manipulability w = l1 l2 |sin θ2| approaches zero, for example 0.0042 at 2 degrees against 0.1200 at 90 degrees. The tool can hardly move in some directions, so the joints must turn very fast to keep the same tool speed.
  6. Question 3: From Table 2, which λ did your group choose and why? What would you see in the table if λ were too large?Choose a λ whose joint steps are small enough for smooth motion while still reaching the target within the iterations used (in the example λ = 0.2 gives 22.7 degree steps and 0.0 mm error). If λ is too large, the table shows a final error that stays high even though the target is in reach, for example λ = 1.0 still 11.2 mm off after 50 iterations.
  7. Question 4: If the arm is commanded to a point out of reach, how do pseudoinverse IK and DLS behave differently, and what should a real system do before running IK?Pseudoinverse commands huge joint jumps (Example 2: up to 1480.9 degrees per iteration) and ends 0.80 m from the target; DLS stretches smoothly towards it and ends 0.30 m away, exactly the real shortfall (1.20 - 0.90 m). A real system must first check that the target is in the workspace and warn instead of trying on.

Discussion questions

  • For inserting drone batteries, would you choose an arm accurate to the millimetre that sometimes jerks, or a smooth arm that is 1 cm off? Why?
  • Why is choosing a motor by its stall torque dangerous when the arm must hold a battery stretched out for long periods?
  • Which emergency-stop conditions should be in hardware rather than in the IK code?

Adapting to student background

Upper secondary (M.6)
Have them differentiate the two-joint FK themselves to get the Jacobian before reading the code, and predict which poses are near a singularity before measuring; pair them with a hands-on peer for measuring and cutting servo power.
Vocational certificate
Start by measuring the real arm and sketching poses on graph paper; use the ready-made code changing only link lengths and λ, and read results as a comparison table rather than writing matrix equations.
Diploma
Extension: compute the joint torques when the training arm holds a mock battery stretched out, as in Example 3, and compare them with half the stall torque of the servos used.

Common student mistakes: Common mistakes in the module 2 lesson

3Worksheet 3 Setting QoS and measuring real latency
Lab · About 12 h of class time · CLO2

Objective: Measure how QoS settings affect latency and processed frames, and pair camera and LiDAR data by time

Equipment

  • Computer with ROS 2
  • Training camera and LiDAR, or bag files prepared by the lecturer
  • Python and the module 3 example code

Safety

  • Desk and lab work; no driving or flying

Steps

  1. Write a 30 Hz image publisher and a subscriber taking 50 ms per image, timestamping every message
  2. Measure processed frames and latency at depth 1, 5 and 10 and compare with Example 1
  3. Set mismatched reliability between publisher and subscriber, observe and check with ros2 topic info --verbose
  4. Record camera and LiDAR bags and pair them with ApproximateTimeSynchronizer at several slop values; count pairs against Example 2
  5. Summarise a QoS table for every UGV topic with reasons

Deliverables

  • Node code and latency table
  • Record of the reliability mismatch
  • Pair count by slop
  • UGV QoS table

Checklist

  • Table 1 has depths 1, 5 and 10, with latency taken from the send timestamp to the end of processing, in ms (Experiments and measured evidence)
  • The publisher and subscriber node code is attached, runs, and sets QoS explicitly in the code (ROS 2 software and integration)
  • The ros2 topic info --verbose output for the reliability mismatch is attached (ROS 2 software and integration)
  • Table 2 pairs by the measurement timestamp in the message, not receive time, with at least 3 slop values (Experiments and measured evidence)
  • Every row of Table 3 gives a reason based on the kind of data rather than using the default for every topic (ROS 2 software and integration)

Instructor guide

Class timing 720 min

  1. Objectives and a review of topics and QoS policies45 min
  2. Write the 30 Hz publisher and the 50 ms subscriber165 min
  3. Measure processed frames and latency at depth 1, 5 and 10150 min
  4. Reliability mismatch test and inspection with ros2 commands90 min
  5. Record bags and pair camera and LiDAR at several slops180 min
  6. Build the UGV QoS table, answer questions and hand-in checklist90 min

Expected results

  1. Record: Table 1 Processed frames and latency by depthTable 1 (Example 1's queue model, 3 s, 90 frames): depth 1 processes 61, drops 29, mean 66 ms, median 67 ms; depth 5 processes 65, drops 25, mean 191 ms, median 200 ms; depth 10 processes 70, drops 20, mean 334 ms, median 367 ms. Real measurements will be slightly higher because of network transfer and operating-system scheduling, but the trend must be the same.
  2. Record: Table 2 Camera and LiDAR pairs by slopTable 2 (Example 2's simulated data, camera 15 Hz, LiDAR 10 Hz, 2 s, 20 scans): slop 5 ms gives 3/20 pairs, largest gap 3.2 ms; 10 ms gives 9/20, 9.3 ms; 20 ms gives 10/20, 15.1 ms; 40 ms gives 20/20, 34.1 ms. Heading errors at 30 deg/s are 0.10, 0.28, 0.45 and 1.02 degrees. Results from a real bag depend on the rates and timing jitter of the sensors used.
  3. Record: Table 3 QoS table for the UGV topicsTable 3: camera images and LiDAR scans should use best effort, keep last with a small depth (the sensor-data profile uses depth 5), because the latest data matters most. Event logs, task commands and hotspot reports that must not be lost should use reliable delivery and a long queue. A strong answer separates continuous data where newer is better from data that must be complete.
  4. Question 1: From Table 1, why does a larger depth process more frames but also raise latency? Are your measurements close to Example 1? If not, give possible reasons.The subscriber can only process 20 frames per second (1/0.05 s), slower than the 30 Hz publisher, so frames must be dropped. A longer queue holds more frames, so more get processed, but each processed frame is an old one that waited about depth/30 s (about 0.17 s for depth 5, 0.33 s for depth 10) plus processing time. If results differ a lot from the model, check that the subscriber really delays 50 ms, that timestamps are taken at the right points, and that other work is not competing for the CPU.
  5. Question 2: When you set mismatched reliability between publisher and subscriber, what did you see, and what did ros2 topic info --verbose show? Why is this problem often mistaken for broken code?The subscriber receives nothing although both nodes run (per the ROS 2 documentation, a best-effort publisher with a reliable subscriber is incompatible, while a reliable publisher with a best-effort subscriber is compatible). ros2 topic info --verbose shows each endpoint's QoS profile, revealing the different reliability. It looks like broken code because nothing in the code reports an error; data simply does not arrive.
  6. Question 3: From Table 2, which slop would your group choose for hotspot detection while the vehicle turns? Justify it with the pair count and heading error. What fix is better than widening the slop?A strong answer weighs pair count against timing accuracy: for example 20 ms pairs half the scans with heading error up to about 0.45 degrees, while 40 ms pairs every scan but some are 34 ms apart, about 1 degree. A better fix is to trigger the sensors together or choose rates that divide evenly.
  7. Question 4: At 1 m/s, how far off would the hotspot position be because of the latency difference between depth 1 and depth 10? Which topics in Table 3 should use a long queue and reliable delivery, and why?The difference is about 334 - 66 = 268 ms, so at 1 m/s the position is about 27 cm off (the lesson rounds this to about 30 cm). Topics that must arrive complete, such as event logs, hotspot reports that become work orders and mission status, should use reliable delivery and a long queue, because losing one message matters more than delay.

Discussion questions

  • If the hotspot detector is always slower than the camera, should you lower the camera rate, drop frames or speed up the detector? What does each option cost?
  • Why does pairing by receive time give wrong results when the vehicle sends data over a wireless network?
  • Which data on the UGV must never be lost, even once, and how would you design for that?

Adapting to student background

Upper secondary (M.6)
Have them compute by hand how long the oldest frame in a full depth-10 queue has waited (10/30 s) and predict the results before running; ask them to explain Example 1's queue model in their own words.
Vocational certificate
Give ready-made node code where only depth and reliability change, use a results table with every cell laid out, and compare the queue to a food queue where whoever arrived first waits longest.
Diploma
Extension: make the camera and LiDAR measure together, or change the rates to divide evenly (for example 10 and 20 Hz), and compare the pair count at the same slop with the original.

Common student mistakes: Common mistakes in the module 3 lesson

4Worksheet 4 Planning and tracking in a mock field
Lab · About 12 h of class time · CLO1, CLO2

Objective: Plan with RRT against A*, measure steering delay and choose the pure pursuit lookahead from measurements

Equipment

  • Training robot vehicle
  • Cones or boards for mock panel rows
  • LiDAR or RTK GNSS for position
  • Python and the module 4 example code

Safety

  • Test in a fenced area with someone holding the emergency stop at all times
  • Limit speed and keep out of the field while the vehicle drives autonomously

Steps

  1. Map the mock panel-row field and inflate obstacles by vehicle width
  2. Run RRT as in Example 1 with ten seeds; record length and nodes and compare with grid A*
  3. Measure the real steering delay from command to wheel motion
  4. Track the path with pure pursuit at three lookaheads, measure lateral error and compare with Example 2
  5. Choose the working lookahead with reasons based on measurements

Deliverables

  • Field map and RRT versus A* table
  • Measured steering delay
  • Lateral error by lookahead
  • Chosen lookahead with reasons

Checklist

  • Table 1 has all 10 seeds and an A* row, with the grid resolution and obstacle inflation used (Experiments and measured evidence)
  • Table 2 measures the delay at least 3 times and gives the mean in seconds (Experiments and measured evidence)
  • Table 3 covers all 3 lookaheads, with lateral error measured by LiDAR or RTK GNSS rather than by eye (Experiments and measured evidence)
  • The chosen lookahead is justified with numbers from Tables 2 and 3 (Correctness of kinematics and calculations)
  • The speed limit and the emergency-stop holder are recorded, and nobody was in the field while the vehicle drove autonomously (Safety and communication)

Instructor guide

Class timing 720 min

  1. Safety briefing, fencing and building the mock panel-row field120 min
  2. Map the field, inflate obstacles and run RRT with ten seeds against A*150 min
  3. Measure the steering command delay90 min
  4. Track the path with pure pursuit at three lookaheads240 min
  5. Choose the lookahead, answer questions and hand-in checklist120 min

Expected results

  1. Record: Table 1 RRT over ten seeds against A*Table 1 (if the lab reproduces Example 1's 20 × 20 m map with three panel rows and no inflation): seeds 0 to 9 use 287 to 515 nodes, RRT length 55.8 to 70.7 m (mean 60.3 m), after shortcutting 47.7 to 52.6 m (mean 50.1 m) with 7 to 9 points. The lesson's seed 7 gives 389 nodes, 70.7 m and 52.6 m. Eight-connected A* on a 0.5 m grid gives 51.0 m, and 54.7 m with 0.5 m inflation. The straight line is 25.5 m but blocked by panels. A real field gives different numbers depending on its size.
  2. Record: Table 2 Steering command delayTable 2: values depend on the training vehicle; Example 2 assumes 0.3 s. Repeated measurements should be close; if they scatter widely, check the method (for example high-speed video, or the encoder log against the command time). At 1 m/s a 0.3 s delay means the vehicle travels 0.30 m before it starts turning.
  3. Record: Table 3 Lateral error by lookaheadTable 3 (Example 2's model, starting 1.0 m from the line at 1 m/s): with a 0.3 s delay, a 0.5 m lookahead oscillates and does not settle in 15 s (24.9 cm overshoot), 1.0 m reaches ±5 cm in 2.3 s, 1.5 m in 3.2 s and 3.0 m in 6.1 s. With a 0.1 s delay, 0.5 m is fastest at 1.8 s. With a 0.5 s delay, 1.0 m oscillates for almost 15 s (14.7 s, 19.1 cm overshoot) and 1.5 m is best (3.9 s). The real vehicle is somewhat slower and oscillates more than the model.
  4. Question 1: From Table 1, how much does RRT path length vary between seeds, and how do the shortcut paths compare with A*? What does this say about trusting a single RRT run?On the lesson's map, raw RRT lengths differ by about 15 m between seeds (55.8 to 70.7 m), while shortcut paths fall to 47.7 to 52.6 m, close to A* (51.0 m). RRT results depend on sampling, so it must be run several times and always shortcut. A strong answer quotes the minimum, maximum and mean from the group's own table.
  5. Question 2: Why must obstacles be inflated by the vehicle width before planning? Does inflation make the path longer or shorter, and what happens without it?The planner treats the vehicle as a point; without inflation the path hugs the panel edges and the vehicle body scrapes them. Inflation narrows the gaps and lengthens the path (A* on the lesson's map goes from 51.0 m to 54.7 m with 0.5 m inflation). Inflate by at least half the vehicle width plus a margin.
  6. Question 3: From Tables 2 and 3, which lookahead did your group choose? Justify it with the measured delay, and explain why a short lookahead oscillates when there is delay.Choose the lookahead that does not oscillate at the measured delay and settles fastest; for example with about 0.3 s, 1.0 m is best in the model. A short lookahead steers hard and fast, but commands reach the wheels late, so the vehicle overshoots and corrects back and forth. A strong answer quotes the measured delay and settling times from the group's tables.
  7. Question 4: If the vehicle's speed doubles, is the chosen lookahead still suitable? And if the vehicle tracks poorly even with a good lookahead, which control loop should you check first?Not necessarily. At higher speed the vehicle travels further during the delay (0.3 s at 2 m/s is 0.60 m), so a longer lookahead is needed; many systems scale lookahead with speed. If tracking is poor with a good lookahead, check the wheel speed loop first: with P control alone the wheels never reach their target (Example 3: the right wheel settles at 7.33 rad/s instead of 11.0 rad/s), so the inner PI loop must be tuned before the lookahead.

Discussion questions

  • If a new cone is placed across a row while the vehicle is driving, should the planner or the tracker deal with it, and why?
  • On a solar farm with straight, regular rows, would you use RRT or grid A*, and when does RRT have the advantage?
  • How should speed be limited in tight turns, and how would you know the limit is enough?

Adapting to student background

Upper secondary (M.6)
Have them compute the curvature γ = 2x/L² by hand for several goal points first and predict which lookahead will oscillate; give them the LiDAR data-logging role while hands-on peers set up the field.
Vocational certificate
Let them lead the field setup and the video-based delay measurement; use ready-made RRT and pure pursuit code changing only the seed and lookahead, and explain lookahead by comparing it to looking down the road while riding.
Diploma
Extension: make the lookahead scale with speed (for example a fixed lookahead time), test at two speeds and compare the time to ±5 cm with a fixed lookahead.

Common student mistakes: Common mistakes in the module 4 lesson

5Worksheet 5 A joint UGV and drone mission
Lab · About 12 h of class time · CLO3, CLO2

Objective: Allocate tasks to several vehicles by auction, compute drone–vehicle rendezvous and test behaviour when communication drops

Equipment

  • Two training robot vehicles
  • ArduPilot SITL and a mission planner
  • Cones for 8 checkpoints
  • ROS 2 and the module 5 example code

Safety

  • The drone part runs in SITL only; no real flights
  • Vehicles run in a fenced area with an emergency stop for each
  • Set the link-loss behaviour to stop or return to the rally point before cutting the link

Steps

  1. Set 8 checkpoints; two vehicles bid as in Example 1; compare total distance with a manual split
  2. Add a new task mid-mission and auction only that task; record re-routing
  3. In SITL, return the drone to land on a target on a slow-moving vehicle; compute the rendezvous with Example 2
  4. Cut one vehicle's link mid-mission and check it continues or returns to the rally point as designed
  5. Write a report on system architecture, problems found and improvements

Deliverables

  • Auction versus manual split table
  • SITL log and rendezvous calculation
  • Communication-loss test record
  • System architecture report

Checklist

  • Table 1 gives both vehicles' distances and the totals for the auction and the manual split, in m (Correctness of kinematics and calculations)
  • Table 2 has the rendezvous time, rendezvous position and remaining flight time, both calculated and from the log, with units (Correctness of kinematics and calculations)
  • Table 3 states the link-loss behaviour set before cutting the link and the actual result for every event (Safety and communication)
  • The integrated system works end to end: both vehicles receive auctioned tasks and the SITL drone lands on the vehicle's target (ROS 2 software and integration)
  • The architecture report has a node and topic diagram, the problems found, and clearly separates measurements from assumptions (Safety and communication)

Instructor guide

Class timing 720 min

  1. Safety briefing, setting link-loss behaviour and placing checkpoint cones60 min
  2. Auction the 8 checkpoints and compare with a manual split150 min
  3. Add a task mid-mission and record re-routing90 min
  4. Simulate the drone landing on the vehicle in SITL and compute the rendezvous180 min
  5. Cut one vehicle's link and test150 min
  6. Write the architecture report, answer questions and hand-in checklist90 min

Expected results

  1. Record: Table 1 Auction against a manual splitTable 1: results depend on where the 8 checkpoints are in the real field. Check the code with Example 1 (5 points) first: the auction gives UGV-1 A (41.2 m) and UGV-2 C, D, E, B (172.5 m), 213.8 m in total; the optimum is 200.2 m (UGV-1 A, B, E, D; UGV-2 C), so the auction is 6.8% worse. A left-right manual split (UGV-1 A, B, E; UGV-2 C, D) gives 217.3 m, worse than the auction; the auction need not beat a manual split every time.
  2. Record: Table 2 Drone and vehicle rendezvous in SITLTable 2: check the calculation with Example 2 (vehicle 5 m/s, drone 10 m/s at (300, 400) m, 120 s of flight left): rendezvous at t = 41.1 s, x = 205.5 m, pursuit takes 46.6 s, 79 s of battery left. If SITL uses a slow vehicle at 1 m/s and a drone at 5 m/s starting at (30, 40) m (assumed values), the rendezvous is at t = 9.0 s, x = 9.0 m and pursuit takes about 9.1 s. Differences from the SITL log of a few seconds and a few metres are acceptable, because the drone must accelerate, slow down and descend, which the formula ignores.
  3. Record: Table 3 Communication-loss testTable 3: the vehicle whose link is cut must do what was set before the test, stop or return to the rally point, or finish its assigned work and then return, within the set time. The control centre must show the latest status with the age of the data, and the other vehicle carries on. If the vehicle keeps driving with no limit, the test fails and it must be stopped with the emergency stop.
  4. Question 1: From Table 1, by what percentage is the auction better or worse than your group's manual split? Why does a sequential single-item auction not guarantee the best answer?The answer depends on the group's table: (auction distance / manual distance - 1) × 100%. In Example 1 the auction is 6.8% worse than the optimum but better than the 217.3 m left-right split. Auctions do not guarantee the best answer because each round takes the cheapest task at that moment without looking at the rest; with hundreds of real points this is accepted in exchange for speed and flexibility.
  5. Question 2: When a new task was added mid-mission, which vehicle won it, and what was the bid based on? Why auction only the new task instead of recomputing everything?The bid is the extra distance when the task is inserted at the best position in the existing route, b = c(route with new task) - c(existing route). With Example 1's routes and a new point F at (70, 40) m (assumed), UGV-1 bids 60.0 m and UGV-2 only 0.1 m (inserted between C and D), so UGV-2 wins. Auctioning only the new task needs little computation and communication, and vehicles do not have to change their existing work mid-way.
  6. Question 3: From Table 2, how much time does flying to the rendezvous point save compared with chasing the vehicle's current position? What happens if the vehicle changes speed on the way, and what backup is needed?In Example 2, flying to the rendezvous is 46.6 - 41.1 = 5.5 s faster than pursuit (in the slow 1 m/s case only about 0.1 s, because the vehicle barely moves). If the vehicle changes speed, the computed meeting point is wrong, so the vehicle's speed plan must keep being sent to the drone, with a backup meeting point where the vehicle stops and waits; for example if the vehicle stopped at its start, Example 2's drone would fly straight there in 50.0 s with about 70 s of battery left.
  7. Question 4: From Table 3, did the vehicle follow its designed behaviour when the link dropped? What should the control centre show with that vehicle's latest data, and how must resent messages be handled when the link returns?A strong answer compares designed and observed behaviour event by event. The control centre must show the latest data with its age (how many seconds ago), not as if it were live. When the link returns, messages sent at MQTT QoS 1 may arrive twice, so the receiver must check message IDs and be idempotent so that no duplicate work order is created.

Discussion questions

  • If the drone has less battery than it needs to reach the rendezvous, how should the system decide, and who should decide: the vehicle, the drone or the control centre?
  • In an area where the link drops often, should vehicles decide more on their own or wait for the control centre? What is gained and what is lost?
  • If an attacker could publish to a vehicle's order topic, what could happen, and how should it be prevented?

Adapting to student background

Upper secondary (M.6)
Have them solve the rendezvous quadratic by hand with Example 2's values before running the code, and compute the first-round bids for points A to E by hand; give them the SITL log role.
Vocational certificate
Let them lead cone placement, vehicle preparation and the link-cut test; use ready-made auction and rendezvous code changing only coordinates and speeds, with an event table whose cells are all laid out.
Diploma
Extension: make the hotspot-message receiver idempotent as in Example 3, then test it by resending the same message after cutting and restoring the link.

Common student mistakes: Common mistakes in the module 5 lesson

Scoring rubric

For worksheets and the mini-project. Each criterion scores level (1–4) ÷ 4 × weight.

CriterionWeightExcellent (4)Good (3)Fair (2)Needs work (1)
Correctness of kinematics and calculations25%Transforms, FK, Jacobian, IK and rendezvous all correct, checked against measurements, errors explainedNearly all correctSome errors or not checked against measurementsMany errors or no method
ROS 2 software and integration30%All nodes work, QoS justified, system tolerates link loss as designedNearly all works with minor faultsPartly works; manual fixes during demoSystem does not work
Experiments and measured evidence20%Repeated, well-designed tests with full tables and graphs; decisions from dataData nearly completeSingle trials or missing dataNo measured evidence
Safety and communication25%Limits, emergency stops and failure behaviour complete; clear report separating measurements from assumptionsNearly complete, clear reportKey controls missing or report hard to followSafety ignored or no report

Assessment map: CLOs and how they are assessed Draft

The CLOs are a web-team draft; the course owner sets the final ones (curriculum book, part 4). This table is built from the worksheet and module-quiz data, so it follows any change to the CLOs.

CLOWorksheetsModule quizzes
CLO1 Explain robot kinematics and motion planningW 1W 2W 4M1M2M4
CLO2 Develop robotic systems with ROS 2W 1W 3W 4W 5M1M3M4M5
CLO3 Integrate ground robots with UASW 5M5