Pose Graph Optimization Vs Bundle Adjustment