I have these problems to solve and they are over due! Hence, I sincerely need help to solve the problems; this will also serve as a learning opportunity for me.
The assignment is as follows:
1.Consider a walking robot that has two legs and two arms. The robot walks towards a screen that has three buttons (red, yellow, and green). On the path towards the screen, there is a chair that blocks the robot. The robot observes the chair and make a left turn of 80 degree, walk 20 cm and make right turn of 100 degree walk forward (to the screen). To reach the correct position, after 40 cm, additional adjustment of 100 degree to the right is needed. After 15 cm, robot makes left turn of 160 degree towards the screen and finally reaches it. The robot lifts left arm and uses color sensor to detect the color on the screen, put down the left arm and lift right arm to press button based on the detected color of the button. Prepare a state diagram of the above scenario using correct UML notations.
2. Consider a gas station.
a.List and define necessary states for the system.
b.Prepare a state diagram using correct UML notation.
Please kindly help time is not on my side for this assignment. I messed up in my trials.