UAT 308 Automation and Robotics Technology
Worksheet 1 Coordinate frames and odometry calibration
Objective
Write sensor frame transforms, check them against measurements and calibrate wheel radius and track of the training vehicle
Equipment and materials
- 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
Record of results
| Sensor | x (m) | y (m) | Yaw (deg) | How measured and by whom |
|---|---|---|---|---|
| Cone | LiDAR reading in sensor frame x, y (m) | Computed map x, y (m) | Tape x, y (m) | Error (cm) |
|---|---|---|---|---|
| Test | Drift or end offset from start, before (m) | Drift direction (left/right) | After (m) | Notes |
|---|---|---|---|---|
Questions
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.
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?
Compare your clockwise and anticlockwise square-path results. Do they point mainly to unequal wheels or to an uncertain wheel separation, and why?
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?
Check before you hand in
What to hand in
- Sensor transform matrices
- Computed versus measured coordinates
- Calibrated wheel radius and track with before-and-after results