First, you take a lot of photos without moving the camera/drone/arm.
Then stitch them with a pano program, there's two main programs that can be helpful, Microsoft ICE (Image Composite Editor), which is free and very easy to use, provided you make sure you take the same number of shots per row...