forked from pageldev/libOpenDRIVE
-
Notifications
You must be signed in to change notification settings - Fork 1
/
RoadMark.h
60 lines (46 loc) · 1020 Bytes
/
RoadMark.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
48
49
50
51
52
53
54
55
56
57
58
59
60
#pragma once
#include "Math.hpp"
#include "Utils.hpp"
#include "XmlNode.h"
#include <map>
#include <memory>
#include <string>
#include <vector>
namespace odr
{
const double ROADMARK_WEIGHT_STANDARD_WIDTH = 0.12;
const double ROADMARK_WEIGHT_BOLD_WIDTH = 0.25;
struct RoadMarksLine : public XmlNode
{
RoadMarksLine() = default;
double width = -1;
double length = 0;
double space = 0;
double t_offset = 0;
double s_offset = 0;
std::string name;
std::string rule;
};
struct RoadMarkGroup : public XmlNode
{
RoadMarkGroup() = default;
double width = -1;
double height = 0;
double s_offset = 0;
std::string type;
std::string weight;
std::string color;
std::string material;
std::string laneChange;
std::map<double, RoadMarksLine> s_to_roadmarks_line;
};
struct RoadMark
{
RoadMark() = default;
double s_start = 0;
double s_end = 0;
double t_offset = 0;
double width = 0;
std::string type = "";
};
} // namespace odr