Safe Data Gathering in Physical Spaces