UAT 308 Automation and Robotics Technology

Worksheet 1 Coordinate frames and odometry calibration

Lab 12 hAssesses CLO1, CLO2

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

  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

Record of results

Table 1 Sensor mounting relative to base_link
Sensorx (m)y (m)Yaw (deg)How measured and by whom
Table 2 Cone coordinates from LiDAR against the tape
ConeLiDAR reading in sensor frame x, y (m)Computed map x, y (m)Tape x, y (m)Error (cm)
Table 3 10 m straight runs and square paths, before and after calibration
TestDrift or end offset from start, before (m)Drift direction (left/right)After (m)Notes

Questions

  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.

  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?

  3. Compare your clockwise and anticlockwise square-path results. Do they point mainly to unequal wheels or to an uncertain wheel separation, and why?

  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?

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

CLO1 Explain robot kinematics and motion planning. CLO2 Develop robotic systems with ROS 2. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack