Here is a self modeling robot that can create a self-model to plan motion, reach goals, and avoid obstacles. The…