forked from pageldev/libOpenDRIVE
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOpenDriveMap.h
47 lines (34 loc) · 927 Bytes
/
OpenDriveMap.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#include "Mesh.h"
#include "Road.h"
#include "RoadNetworkMesh.h"
#include "pugixml/pugixml.hpp"
#include <map>
#include <memory>
#include <string>
namespace odr
{
struct OpenDriveMapConfig
{
bool with_lateralProfile = true;
bool with_laneHeight = true;
bool with_road_objects = true;
bool center_map = true;
bool abs_z_for_for_local_road_obj_outline = true;
};
class OpenDriveMap
{
public:
OpenDriveMap(const std::string& xodr_file, const OpenDriveMapConfig& config = OpenDriveMapConfig{});
ConstRoadSet get_roads() const;
RoadSet get_roads();
Mesh3D get_refline_lines(double eps) const;
RoadNetworkMesh get_mesh(double eps) const;
std::string xodr_file = "";
std::string proj4 = "";
pugi::xml_document xml_doc;
double x_offs = 0;
double y_offs = 0;
std::map<std::string, std::shared_ptr<Road>> roads;
};
} // namespace odr