I did this for a blog post many many years ago. It was surprising how accurate reproductions would be with just simple dead reckoning. No adjustments were necessary and just by having everything in the same positions it would pretty faithfully recreate the original GCODE.
https://www.instapainting.com/blog/research/2015/09/10/robot...