This is the processing IDE side of the code

This uses the controlP5 to create the GUI, and leap library to interact with leap motion. 
To control the grabber servo(the 5th one), I have used gesture control, a circular motion to activate the grabber on the robotic arm.