Engineers use psychology, physics, and geometry to make robots more intelligent