Comparison of Graph Fitting and Sparse Deep Learning Model for Robot Pose Estimation