Implement a controller called ‘Lab1_Task3.py’.
Implement a controller called ‘Lab1_Task3.py’. The program should make the robot follow the
path shown in Figure 4 in a clockwise direction. The trapezoid has length “H”, top width “W”,
and internal angles “a” and “b”. Robot should start at (0, H/2) moving counterclockwise. After
completing the trapezoid, the robot should stop. The full motion must be completed in a
maximum of “Y” seconds, moving at the same constant speed “X” inch per sec, except when
turning at the corners. Note that the robot may stop based on time or encoder readings. If the
motion cannot be completed for any given reason, the robot should display an appropriate
message. The TA will test for different values for “H”, “W”, “a”, “b”, “X” and “Y”.
Figure 4. Trapezoid shaped path to be followed by the robot.
