An Internal Model Principle For Robots