Absolute distance is added as a condition to verify Nest contain; Some bugs of check_map to be fixed.