I've seen that , but it seems a bit complex for someone that hasn't programmed using arduino before.
But, that is what is needed to determine the path that an open loop kinematic system needs to follow to reach point A (which is presumably where the object to be picked up is) or point B (where to put it).