FromSim2Real / gpudrive-main /src /MapReader.hpp
lzhts1's picture
Upload 385 files
9897e20 verified
Raw
History Blame Contribute Delete
514 Bytes
#pragma once
#include <fstream>
#include <madrona/exec_mode.hpp>
#include "init.hpp"
namespace madrona_gpudrive {
struct AgentInit;
class MapReader {
public:
static madrona_gpudrive::Map* parseAndWriteOut(const std::string &path, madrona::ExecMode executionMode, float polylineReductionThreshold);
private:
MapReader(const std::string &pathToFile);
~MapReader();
void doParse(float polylineReductionThreshold);
std::ifstream in_;
madrona_gpudrive::Map *map_;
};
} // namespace madrona_gpudrive