Sensor Fusion

What you will learn

  • How to “fuse” data from multiple sources

Terminology

sensor fusion
The process of combining data from multiple sources to improve an estimation

Lecture

Links

Sensor fusion

Interactive

Exponential Moving Average (EMA)

Sensor Fusion

Exercise

Today you will implement sensor fusion.

You will submit your responses on gradescope. Only one partner should submit. The submitter will add the other partner through the gradescope interface.

Additional details for using gradescope can be found here:

You should open the gradescope assignment now so that you know what to work complete.

Grading

I will grade all exercises using a scale of “Nailed It” / “Not Yet”. See the course grading policy for more information, and check gradescope for deadlines.

Overview

This part ot the exercise has two components:

  1. Use the interactive widget to gain a better understanding of sensor fusion.
  2. Implement sensor fusion on your robot.

Using the Widget

For each scenario below, please make sure you click the “Restart Simulation” button several times.

  1. Set the compass weight to 0 and set the left and right wheel noise levels to non-zero values. Report on the effect of the noise on the robot’s trajectory.
  2. Set the compass weight to 1, set the wheel noise values to 0, and set the compass noise to 20. Report on the effect of the compass noise on the robot’s trajectory.
  3. Set the compass noise to 8, set the wheel noise values to 5, and adjust the compass weight values up and down. Report on the effect of the compass weight on the robot’s trajectory.
  4. Set the compass noise to 8, set the wheel noise values to 5, and adjust the compass smoothing values up and down. Report on the effect of the compass smoothing on the robot’s trajectory.

Implementing Sensor Fusion

Finally, you will use your simulation from the previous chapter (and the widget above) to implement sensor fusion on your robot. Specifically, you should use the simulation to guess at good values for the compass weight and the compass smoothing factor (alpha).

Wrap-Up

Moving forward, we’ll add vision to our robot to improve its ability to react to its environment.

Resources