Particles: Each particle represents a possible robot pose, , , .
Map: The map provides the positions of walls.
Sensor Model: The laser sensor provides distance measurements to the nearest obstacle.
2. Prediction (State Transition Probability)
Below are two commonly used state transition models:
2.1 General Form of a Linear Motion Model
The linear state transition model can be expressed as: where:
: The state vector at the previous time step.
: The state vector at the current time step.
: The state transition matrix, which defines how the state evolves over time.
: The control input matrix, which defines how the control input affects the state.
: The control input at the previous time step.
: Process noise, typically modeled as Gaussian noise: ), where is the process noise covariance matrix.
2.2 2D Constant Velocity Model
For a 2D motion system with position and velocity : The updated state becomes: where the state transition matrix and control input matrix are defined as
3. Update
Now assume that the robot's laser rangefinder reports a distance of 3 meters to the nearest wall.
3.1 Compute Weights
3.2 Compute Gaussian Likelihood
Use a Gaussian likelihood function to compare the predicted sensor reading with the actual reading (=3 from Step 3.) and the state (i.e., from the state transition in Step 2.): or where:
: Actual sensor reading (3.0 meters).
: Predicted sensor reading for the particle.
: Sensor noise standard deviation (e.g., 0.2 meters).
By using the observed output , and the weight computed at the previous time step , calculate the intermediate weight update, denoted by , by using the density function of the measurement probability. where denotes the particles, and computing the Gaussian likelihood can be found in Section 3.1.1. After all the intermediate weights are computed, compute the normalized weights as follows: where
Replace the old set of particles with the new set drawn during resampling.
Assign equal weights to all particles in the new set (e.g., ).
5. Results
After the sensor update, the particle filter is more confident about the robot’s pose, as particles now concentrate around states consistent with the sensor measurement.
Given a set of particles , where the position of each particle represents a possible robot pose =(, ,, ), where the state is defined as and the weight are equal, .
2. Prediction
By using the dynamics model, the predicted (a priori) state estimation becomes: where the state transition matrix and control input matrix are defined as where is the control input (i.e., acceleration) at the previous time step , and ), where is the process noise covariance matrix.
3. Update
3.1 Measurement Model
linear model Defined the measurement model (linear model), where
3.2 Intermediate Weights
By using the following relation between the predicted measurement in 3.1 Measurement Model and the observed output , and the weight computed at the previous time step , the intermediate weight update is calculated. the likelihood can be computed, so that the intermediate weight can be calculated as follows:
3.3 Normalization
After all the intermediate weights are computed, compute the normalized weights as follows: where