Integrating neural networks with robots