2. Robot Preparing for Competition
In this project, your goal is to create a motion controller for a robot (Ranger from Scifi).
You will create specific methods that allow the robot to perform warm-up actions for its
Create the following methods to help the robot warm up for it’s competition:
armSwing: the robot swings it’s arms back and forth across the front of it’s body
headShake: the robot’s visor flips back so it’s head is showing. Then it rocks it’s
head right, left, back, forth. Then rotates its head left and right.
jumpUpAndDown: the robot jumps up and down
Your own method: Think of one other action for the robot and make a method
Create the following keyboard controls:
When the “A” key is pressed, the robot swings its arms.
When the “H” key is pressed, the robot shakes its head.
When the “J” key is pressed, the robot jumps up and down.Attachments