Algorithm 1: Modified Gap Navigation Tree Input: sensory data (discontinuity in the environment from the depth sensor) Output: complete T |
1. T = f 2. T = {G0} 3. Let Gi = G0 4. Update gridmap 5. While (Gi is not cleared) 6. j where j 7. If (any Gi is redundant) 8. then delete Gi 9. If (Gi is not visited) 10. then CHASE(Gi) 11. else 12. if (CGi is not cleared) 13. then Gi = next in order of unvisited children nodes 14. else 15. mark Gi cleared 16. make Gi a parent node. 17. end 18. report T |