File size: 514 Bytes
9897e20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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