Indoor environment-adaptive mapping with beamsteering massive arrays