‘The weight value (wt) is defined as the absolute difference between the actual pose of the robot and the predicted pose by that specific particle.’
It is unlike to be true because the actual pose is unknown in a localization problem. As far as I know about the particle filter, the weight is calculated from the difference between the real measurement and the measurement that a particle supposes to get. But, I know nothing about the advanced AMCL. I cannot be sure.
Another thing I am worried about is the robot’s real pose. In reality, the real pose is a mystery, and we will never know. However, we are performing the simulation. Is it possible that we can receive the simulated real robot pose from Gazebo? We can compare this pose with the output of the AMCL. Then, the performance of the AMCL can be estimated.