How to make a simple robot gripper?

IK must be a real time solver, not dependant on Blender.