Neural network for robotic control