Image-Based Visual Servoing (IBVS) and Position-Based Visual Servoing (PBVS) are both applied to a 2DOF planar arm in this video.
MATLAB codes can be downloaded from the following links:
https://drive.google.com/file/d/1Hw6QYpw3eGdUhK0S2hs8sNNqBorEVHv3/view?usp=sharing
https://drive.google.com/file/d/1feCKrCMld28wTabN4ASl76wDt7wgkWfx/view?usp=sharing