I am trying to understand how to draw coordinate system for forward kinematics. Figure is
Could someone please explain how is the coordinate system drawn as per DH parameter? Basically when do we have to shift the origin of a frame and when not?
P.S: I mainly do not get how they drew frame 2. Why was it not shifted to frame 1's position?