| Algorithm 4. MCL Algorithm |
| Input: |
| Output: |
| 1: Initialization, |
| 2: For to M do |
| 3: sample_motion_model |
| 4: measurement_model |
| 5: |
| 6: End for |
| 7: For to M do |
| 8: Draw i with probability |
| 9: Add to |
| 10: End for |
| 11: Return |
| Algorithm 4. MCL Algorithm |
| Input: |
| Output: |
| 1: Initialization, |
| 2: For to M do |
| 3: sample_motion_model |
| 4: measurement_model |
| 5: |
| 6: End for |
| 7: For to M do |
| 8: Draw i with probability |
| 9: Add to |
| 10: End for |
| 11: Return |