An Interactive Robot Arm
Using OpenGL in C/C++ or Java, you are to create an interactive robot arm as shown.
Claw open / close
Wrist rotation
Elbow angle
Base angle
Robot arm, side view
The user should be presented with an "arm" consisting of a series of joints and links (rendered as boxes or cylinders is fine). Interaction will consist of manipulating the joint angles with the keyboard.
The interaction you should implement (using keys of your choice) is: With the key events, increment or decrement the various joint angles in the arm. For example, 'a' increments the base angle, while 'z' decrements it. 's' and 'x' modify the elbow. 'd' and 'c' rotate the wrist, and 'f' and 'v' open and close the claw. 'q' or 'esc' should quit the application.
If you wish, you may use mouse events as well.