From Sean's instructions written on the whiteboard (also posted in discord):
Step 1: Joystick will determine if the cone is on its side or straight up ("Pickup Position").
Step 2: Based on the chosen "Pickup Position":
2a) If "cone on side": set flipped in InverseKinematicsUtil to true, so that the arm will make an upside-down U shape (no code needed for the actual movement), and the claw will approach the cone from the top.
2b) If "cone upright" (THIS OPTION ALSO FOR CUBE): set flipped in InverseKinematicsUtil to false, so that the arm will approach the game piece (cone OR cube) from the side.
Step 3: Use the Limelight to precisely position the arm for piece grabbing.
From Sean's instructions written on the whiteboard (also posted in discord):
Step 1: Joystick will determine if the cone is on its side or straight up ("Pickup Position").
Step 2: Based on the chosen "Pickup Position": 2a) If "cone on side": set
flipped
inInverseKinematicsUtil
totrue
, so that the arm will make an upside-down U shape (no code needed for the actual movement), and the claw will approach the cone from the top. 2b) If "cone upright" (THIS OPTION ALSO FOR CUBE): setflipped
inInverseKinematicsUtil
tofalse
, so that the arm will approach the game piece (cone OR cube) from the side.Step 3: Use the Limelight to precisely position the arm for piece grabbing.