Reference code for the Robot Arm GUI.
You can look at this GUIDE GUI by opening the .fig file in GUIDE.
Or you can just type
> guide DhArm
and that'll open GUIDE for this GUI.
Your task is to get your in-class GUI up to this level then add serial communication.
You need to make sure to use the com port box and open a serial connection. Then move the joints
and gripper as they move. Really that's just three things you need to add.
- Open a serial connection to the robot.
- If connected send gripper commands.
- If connected send position commands.
_Note that your program shouldn't crash if you click a movement control and you aren't connected. It should just display a message to the console instead of crashing._