Skip to content

Instantly share code, notes, and snippets.

@eeddaann
Last active November 13, 2017 22:13
Show Gist options
  • Save eeddaann/9f9ac797588f50b42023c65b7794eb89 to your computer and use it in GitHub Desktop.
Save eeddaann/9f9ac797588f50b42023c65b7794eb89 to your computer and use it in GitHub Desktop.
Odometry - estimate errors

Odometry - estimate errors

  • N - Encoder resolution
  • r - Wheel radius
  • b - distance between wheels

The following equations are applied:

$$teta = 2*u/b u = 2*pi*r/n$$

python implementation

Given distance d, distance between wheels b and initial bias u. The distance between the actual robot position to it's target position after d distance units can be computed like this:

import math

def calc_bias(d,b,u):
  teta = 2 * u / b
  return d * math.tan(teta)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment