Odometry

If you are looking for a place to get started then, probably, this topic is best for that:

Once you get it to work with your robot, you could explore more complex methods and discussions linked from and to that thread.