The function sets the orientation of the robot to align the left and right movement of the robot in horizontal robot position and vertical robot position.
![](https://ql.reallyai.net/wp-content/uploads/2022/03/Robo-Pet-2.gif)
The example demonstrates how to make a vertical robot pet that senses the hand on the IR sensor and acts accordingly in the Python Coding Environment.