software/final/alf_car/src/slam/SlamMap.cpp
void SlamMap::createTxtMapFile(std::string fileName, std::vector<int> mapData) {

    FILE* out = fopen(fileName.c_str(), "w");

    for(int s = 0; s < mapData.size(); s++) {
        fprintf(out, "%d ", mapData[s]);

        if (s && s%mapWidth_ == 0) {

            fprintf(out, "\n");

        }
    }
    fclose(out);
}
/**
 * creates a txt file containing the raw map data
 *
 * @param fileName: string file name for the txt file
 * @param mapData: std::vector<int> containing the map data
 */
creates a txt file containing the raw map data
@param fileName: string file name for the txt file
@param mapData: std::vector containing the map data
creates a txt file containing the raw map data @param fileName : string file name for the txt file @param mapData : std :: vector containing the map data
void SlamMap::createTxtMapFile(std::string fileName, std::vector<int> mapData) {
    FILE* out = fopen(fileName.c_str(), "w");
    for(int s = 0; s < mapData.size(); s++) {
        fprintf(out, "%d ", mapData[s]);
        if (s && s%mapWidth_ == 0) {
            fprintf(out, "\n");
        }
    }
    fclose(out);
}
void SlamMap :: createTxtMapFile ( std :: string fileName , std :: vector < int > mapData ) { FILE * out = fopen ( fileName . c_str ( ) , " " ) ; for ( int s = 0 ; s < mapData . size ( ) ; s ++ ) { fprintf ( out , " " , mapData [ s ] ) ; if ( s && s % mapWidth_ == 0 ) { fprintf ( out , " \n " ) ; } } fclose ( out ) ; }
creates a txt file containing the raw map data
 @param fileName: string file name for the txt file
 @param mapData: std::vector<int> containing the map data
creates a txt file containing the raw map data @param fileName : string file name for the txt file @param mapData : std :: vector<int > containing the map data