The tutorial on the particle filter