An underactuated gripper mechanism for picking objects from a tabletop