Optimization of 3D SLAM and Localization for Quadruped Robot Dogs Using Autoencoder-based Techniques