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
Not required!
The key idea embedded in the MC approach is to represent the required distribution as a set of random samples rather than a specific analytic function (e.g., Gaussian).
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.1.1 non-Gaussian Observation Model
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.): where:
is some positive constant to make positive.
: Actual sensor reading (3.0 meters).
: Predicted sensor reading for the particle.
: The covariance of the observation noise.
3.1.2 Weights
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
3.1.3 Find Pairs
After finding weights in Section 3.1.2, we computed the set of particles for the time step :
4. Resample
4.1 Check the Conditions for Resample
This is a resampling step that is performed only if the condition given below is satisfied. Calculate the constant :
If , then generate a new set of particles from the computed set of particles:
If , the result is accepted. Resample particles based on their weights:
High-weight particles are likely to be duplicated.
Low-weight particles are likely to be discarded.
4.2 Resample
Resampling is done based on the normalized weights .
Particles with higher weights are more likely to be selected multiple times, while particles with very low weights are likely to be discarded.
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
Not required!
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