Scientists teach robots how to respect human space