Creating a map using SLAM