| Algorithm 1 AGM-AMCL |
|
Input:
|
|
Output:
|
| 1: // Initialization |
| 2: //For storing RAYCAST result |
| 3: for do //Initialize
|
| 4:
|
| 5: end for |
| 6: do |
| 7: //Resampling according to particle weight |
| 8:
|
| 9: if then |
| 10:
|
| 11:
|
| 12: else |
| 13:
|
| 14: end if |
| 15:
|
| 16: sample according to Bernoulli_Distribution(
) |
| 17: if
|
| 18:
|
| 19: Create according to
|
| 20: Sample according to
|
| 21: else |
| 22: Sample according to
|
| 23: end if |
| 24:
|
| 25: //Compute weight according to observation |
| 26:
|
| 27:
|
| 28:
|
| 29:
|
| 30: while and
|
| 31: for do //Normalize particle weight |
| 32:
|
| 33: end for |
| 34: return
|