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.
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 topic | Modules | Where it is taught | Status |
|---|---|---|---|
| Robot structures and components | M1M2 | Module 1: parts of a mobile robot (the solar-farm UGV) · Module 2: the three-joint arm | Covered |
| Introductory kinematics | M1M2 | Module 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 squares | Covered |
| Actuators | M1M2 | Module 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 |
| Sensors | M1M3 | Module 1: encoder, IMU, GNSS, LiDAR and cameras in their own frames, odometry and systematic error · Module 3: pairing data from several sensors by time | Covered |
| Control systems | M4 | Module 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 planning | M4M5 | Module 4: RRT compared with grid A* · Module 5: meeting a moving vehicle | Covered |
| Industrial automation | M1M2 | Module 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 10218 | Covered |
| Robot–information-system integration | M3M5 | Module 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 UAS | M1M5 | Module 5: task-allocation taxonomy, sequential auctions and drone–vehicle rendezvous · Module 1: the panel-hotspot-on-the-map example | Covered |
Weekly teaching plan
| Week | Topic | Pre-class | Lecture | Lab | Evidence |
|---|---|---|---|---|---|
| 1 M1 | Parts of a mobile robot; review of vectors and rotation | Read module 1 through the review section; run review examples A and B | Perception, localisation, planning and control; vectors and 2D rotation matrices | Worksheet 1 part A: measure LiDAR and camera mounting on the training vehicle; write transforms to base_link | Sensor transform matrices |
| 2 M1 | Homogeneous transforms and map, odom, base_link | Read the homogeneous transform and map/odom/base_link sections; run Example 1 | Chaining transforms and why map and odom are separate | Worksheet 1 part B: measure known cones with LiDAR, transform to map coordinates and compare with a tape | Computed versus measured coordinates |
| 3 M1 | Odometry and systematic error | Read the odometry section; run Example 2; take the module 1 quiz | How wheel radius and track errors bend the path | Worksheet 1 part C: five 10 m straight runs, clockwise and anticlockwise square test, then calibrate | Calibrated values, before-and-after results and quiz result |
| 4 M2 | The Jacobian and tool velocity | Read module 2 'The Jacobian'; run Example 1 | Forward kinematics, joint-to-tool velocity and poses near singularity | Worksheet 2 part A: measure link lengths, write FK and the Jacobian, check against 5 measured poses | Computed versus measured FK table |
| 5 M2 | Numerical IK with damped least squares | Read the numerical IK section; run Example 2 | Iterating to a solution, the role of λ and unreachable targets | Worksheet 2 part B: compare joint speeds with the servos and command the arm to 5 mock battery slots | Position error table |
| 6 M2 | Arm safety | Read 'Arm safety'; take the module 2 quiz | Workspace, speed, maximum force and ISO 10218 | Worksheet 2 part C: try several λ values; write the workspace limits and emergency-stop conditions | Worksheet 2 report and quiz result |
| 7 M3 | Parts of ROS 2 | Read module 3 'Parts of ROS 2' | Nodes, topics, services, actions and message timestamps | Worksheet 3 part A: write a 30 Hz image publisher and a subscriber with 50 ms processing, with timestamps | Code for the two nodes |
| 8 M3 | QoS policies | Read 'QoS policies'; run Example 1 | History depth, reliability and their effect on latency | Worksheet 3 part B: measure latency at depth 1, 5 and 10 and try mismatched reliability | Latency table against Example 1 |
| 9 M3 | Time synchronisation; midterm | Read the time-pairing section; run Example 2; review modules 1–3; take the module 3 quiz | Midterm examination (modules 1–3) | Worksheet 3 part C: pair camera and LiDAR bags at different slop values and summarise the QoS table | Worksheet 3 report and midterm score |
| 10 M4 | RRT | Read module 4 'RRT'; run Example 1 | Randomly 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 M4 | Pure pursuit | Read 'Pure pursuit'; run Example 2 | Lookahead distance, curvature and steering delay | Worksheet 4 part B: measure the real steering-command delay | Measured delay |
| 12 M4 | Choosing lookahead from measurements | Review module 4 common mistakes; take the module 4 quiz | Trade-off between straight-line accuracy and joining curves | Worksheet 4 part C: track at three lookaheads, measure lateral error and choose the working value | Worksheet 4 report and quiz result |
| 13 M5 | Task allocation and sequential auctions | Read module 5 taxonomy and auction sections; run Example 1 | Marginal cost and auctioning a new task mid-mission | Worksheet 5 part A: two vehicles bid for 8 checkpoints; compare with manual split, then add a new task | Total distance and re-routing record |
| 14 M5 | Drone–vehicle rendezvous and communication loss | Read the rendezvous and communication-loss sections; run Example 2; take the module 5 quiz | Computing the rendezvous point and behaviour when links drop | Worksheet 5 part B: land a SITL drone on a slow-moving vehicle and cut one vehicle's link | SITL log, vehicle behaviour record and quiz result |
| 15 M5 | Mini-project demo: joint UGV and drone mission | Prepare the system architecture report and demo | Course wrap-up and project criteria | Demonstrate the whole joint mission; present problems found and improvements | Mini-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
- Measure LiDAR and camera mounting and write transforms to base_link
- Place cones at known positions, measure them with LiDAR, transform to the map with Example 1 and compare with the tape
- Drive 10 m straight five times, measure lateral drift and estimate the wheel-radius difference with Example 2
- Run clockwise and anticlockwise square paths and record end position against start
- 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
- The transform code multiplies in the order map, base_link, sensor and uses radians in the trigonometric functions
- Table 3 has all 5 straight runs and both square-path directions, before and after calibration
- The calibrated wheel radius and track are given with units, with how much the before-and-after results improved
- The name of the emergency-stop holder and the speed limit used are recorded for every driving test
Instructor guide
Class timing
- Objectives, safety, fencing the area and testing the emergency stop60 min
- Measure sensor mounting and write the transforms120 min
- Place cones, measure with LiDAR, transform and compare with the tape150 min
- Five 10 m straight runs and estimating the wheel-radius difference150 min
- Square-path tests, calibration and repeat tests180 min
- Wrap-up, questions and hand-in checklist60 min
Expected results
- Table 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.
- Table 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.
- Table 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.
- 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.
- 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.
- 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.
- 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.
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
- Measure link lengths, write FK and the Jacobian and check against 5 real poses
- Compute required joint speeds in a working pose with Example 1 and compare with servo maximum speed
- Write DLS IK as in Example 2, command the arm to 5 mock battery slots and measure the error
- Try several λ values; record accuracy and smoothness
- 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)
- Table 2 covers all 5 target slots and at least 3 values of λ (including λ = 0)
- Record 3 compares the required joint speeds with the servo maximum speed in degrees per second
- Workspace limits are written as numbers (reach, joint angles, speed) with at least 3 emergency-stop conditions
- The IK code checks that the target is within reach before commanding the arm and warns when it is not
Instructor guide
Class timing
- Safety briefing, emergency-stop test and keep-out zone60 min
- Measure links, write FK and the Jacobian and check 5 poses150 min
- Compute joint speeds in the working pose90 min
- Write DLS IK and command the arm to 5 mock battery slots180 min
- Try several λ values and record the results120 min
- Write workspace limits, answer questions and hand-in checklist120 min
Expected results
- Table 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.
- 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.
- Record 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.
- 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.
- 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.
- 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.
- 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.
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
- Write a 30 Hz image publisher and a subscriber taking 50 ms per image, timestamping every message
- Measure processed frames and latency at depth 1, 5 and 10 and compare with Example 1
- Set mismatched reliability between publisher and subscriber, observe and check with ros2 topic info --verbose
- Record camera and LiDAR bags and pair them with ApproximateTimeSynchronizer at several slop values; count pairs against Example 2
- 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
- The publisher and subscriber node code is attached, runs, and sets QoS explicitly in the code
- The ros2 topic info --verbose output for the reliability mismatch is attached
- Table 2 pairs by the measurement timestamp in the message, not receive time, with at least 3 slop values
- Every row of Table 3 gives a reason based on the kind of data rather than using the default for every topic
Instructor guide
Class timing
- Objectives and a review of topics and QoS policies45 min
- Write the 30 Hz publisher and the 50 ms subscriber165 min
- Measure processed frames and latency at depth 1, 5 and 10150 min
- Reliability mismatch test and inspection with ros2 commands90 min
- Record bags and pair camera and LiDAR at several slops180 min
- Build the UGV QoS table, answer questions and hand-in checklist90 min
Expected results
- Table 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.
- Table 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.
- Table 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.
- 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.
- 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.
- 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.
- 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.
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
- Map the mock panel-row field and inflate obstacles by vehicle width
- Run RRT as in Example 1 with ten seeds; record length and nodes and compare with grid A*
- Measure the real steering delay from command to wheel motion
- Track the path with pure pursuit at three lookaheads, measure lateral error and compare with Example 2
- 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
- Table 2 measures the delay at least 3 times and gives the mean in seconds
- Table 3 covers all 3 lookaheads, with lateral error measured by LiDAR or RTK GNSS rather than by eye
- The chosen lookahead is justified with numbers from Tables 2 and 3
- The speed limit and the emergency-stop holder are recorded, and nobody was in the field while the vehicle drove autonomously
Instructor guide
Class timing
- Safety briefing, fencing and building the mock panel-row field120 min
- Map the field, inflate obstacles and run RRT with ten seeds against A*150 min
- Measure the steering command delay90 min
- Track the path with pure pursuit at three lookaheads240 min
- Choose the lookahead, answer questions and hand-in checklist120 min
Expected results
- 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.
- Table 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.
- Table 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.
- 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.
- 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.
- 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.
- 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.
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
- Set 8 checkpoints; two vehicles bid as in Example 1; compare total distance with a manual split
- Add a new task mid-mission and auction only that task; record re-routing
- In SITL, return the drone to land on a target on a slow-moving vehicle; compute the rendezvous with Example 2
- Cut one vehicle's link mid-mission and check it continues or returns to the rally point as designed
- 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
- Table 2 has the rendezvous time, rendezvous position and remaining flight time, both calculated and from the log, with units
- Table 3 states the link-loss behaviour set before cutting the link and the actual result for every event
- The integrated system works end to end: both vehicles receive auctioned tasks and the SITL drone lands on the vehicle's target
- The architecture report has a node and topic diagram, the problems found, and clearly separates measurements from assumptions
Instructor guide
Class timing
- Safety briefing, setting link-loss behaviour and placing checkpoint cones60 min
- Auction the 8 checkpoints and compare with a manual split150 min
- Add a task mid-mission and record re-routing90 min
- Simulate the drone landing on the vehicle in SITL and compute the rendezvous180 min
- Cut one vehicle's link and test150 min
- Write the architecture report, answer questions and hand-in checklist90 min
Expected results
- Table 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.
- Table 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.
- Table 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.
- 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.
- 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.
- 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.
- 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.
Scoring rubric
For worksheets and the mini-project. Each criterion scores level (1–4) ÷ 4 × weight.
| Criterion | Weight | Excellent (4) | Good (3) | Fair (2) | Needs work (1) |
|---|---|---|---|---|---|
| Correctness of kinematics and calculations | 25% | Transforms, FK, Jacobian, IK and rendezvous all correct, checked against measurements, errors explained | Nearly all correct | Some errors or not checked against measurements | Many errors or no method |
| ROS 2 software and integration | 30% | All nodes work, QoS justified, system tolerates link loss as designed | Nearly all works with minor faults | Partly works; manual fixes during demo | System does not work |
| Experiments and measured evidence | 20% | Repeated, well-designed tests with full tables and graphs; decisions from data | Data nearly complete | Single trials or missing data | No measured evidence |
| Safety and communication | 25% | Limits, emergency stops and failure behaviour complete; clear report separating measurements from assumptions | Nearly complete, clear report | Key controls missing or report hard to follow | Safety 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.