A tutorial on graph-based SLAM