Implement a controller called ‘Lab1_Task1.py’.
Implement a controller called ‘Lab1_Task1.py’. The robot should move in a straight line for “X”
inches at constant velocity. The robot should use the kinematics formulas to move for “X” inches
in “Y” secs and stop based on time, not on readings from position sensors. If the robot cannot
complete the movement in the given amount of time, instead of moving forward, the program
should display an appropriate message. Provide a plot, showing “Distance” vs. “Time”. Distance
should be computed from PositionSensor readings. You can write this data into a file from your
Python console as the simulation runs. During evaluation, the TA will test different values for
“X” and “Y”.
