CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
road
element
RoadInfoMarkTypeLine.h
浏览该文件的文档.
1
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#pragma once
8
9
#include "
carla/road/element/RoadInfo.h
"
10
#include <string>
11
12
namespace
carla
{
13
namespace
road {
14
namespace
element {
15
16
class
RoadInfoMarkTypeLine
final :
public
RoadInfo
{
17
public
:
18
19
RoadInfoMarkTypeLine
(
20
double
s,
21
int
road_mark_id,
22
double
length,
23
double
space,
24
double
tOffset,
25
std::string rule,
26
double
width)
27
:
RoadInfo
(s),
28
_road_mark_id
(road_mark_id),
29
_length
(length),
30
_space
(space),
31
_tOffset
(tOffset),
32
_rule
(rule),
33
_width
(width) {}
34
35
void
AcceptVisitor
(
RoadInfoVisitor
&v)
final
{
36
v.Visit(*
this
);
37
}
38
39
int
GetRoadMarkId
()
const
{
40
return
_road_mark_id
;
41
}
42
43
double
GetLength
()
const
{
44
return
_length
;
45
}
46
47
double
GetSpace
()
const
{
48
return
_space
;
49
}
50
51
double
GetTOffset
()
const
{
52
return
_tOffset
;
53
}
54
55
const
std::string &
GetRule
()
const
{
56
return
_rule
;
57
}
58
59
double
GetWidth
()
const
{
60
return
_width
;
61
}
62
63
private
:
64
65
const
int
_road_mark_id
;
66
67
const
double
_length
;
68
69
const
double
_space
;
70
71
const
double
_tOffset
;
72
73
const
std::string
_rule
;
74
75
const
double
_width
;
76
};
77
78
}
// namespace element
79
}
// namespace road
80
}
// namespace carla
RoadInfo.h
carla::road::element::RoadInfoMarkTypeLine
Definition
RoadInfoMarkTypeLine.h:16
carla::road::element::RoadInfoMarkTypeLine::_tOffset
const double _tOffset
Definition
RoadInfoMarkTypeLine.h:71
carla::road::element::RoadInfoMarkTypeLine::GetLength
double GetLength() const
Definition
RoadInfoMarkTypeLine.h:43
carla::road::element::RoadInfoMarkTypeLine::GetRule
const std::string & GetRule() const
Definition
RoadInfoMarkTypeLine.h:55
carla::road::element::RoadInfoMarkTypeLine::RoadInfoMarkTypeLine
RoadInfoMarkTypeLine(double s, int road_mark_id, double length, double space, double tOffset, std::string rule, double width)
Definition
RoadInfoMarkTypeLine.h:19
carla::road::element::RoadInfoMarkTypeLine::GetRoadMarkId
int GetRoadMarkId() const
Definition
RoadInfoMarkTypeLine.h:39
carla::road::element::RoadInfoMarkTypeLine::_length
const double _length
Definition
RoadInfoMarkTypeLine.h:67
carla::road::element::RoadInfoMarkTypeLine::_space
const double _space
Definition
RoadInfoMarkTypeLine.h:69
carla::road::element::RoadInfoMarkTypeLine::GetTOffset
double GetTOffset() const
Definition
RoadInfoMarkTypeLine.h:51
carla::road::element::RoadInfoMarkTypeLine::GetSpace
double GetSpace() const
Definition
RoadInfoMarkTypeLine.h:47
carla::road::element::RoadInfoMarkTypeLine::_rule
const std::string _rule
Definition
RoadInfoMarkTypeLine.h:73
carla::road::element::RoadInfoMarkTypeLine::_road_mark_id
const int _road_mark_id
Definition
RoadInfoMarkTypeLine.h:65
carla::road::element::RoadInfoMarkTypeLine::GetWidth
double GetWidth() const
Definition
RoadInfoMarkTypeLine.h:59
carla::road::element::RoadInfoMarkTypeLine::_width
const double _width
Definition
RoadInfoMarkTypeLine.h:75
carla::road::element::RoadInfoMarkTypeLine::AcceptVisitor
void AcceptVisitor(RoadInfoVisitor &v) final
Definition
RoadInfoMarkTypeLine.h:35
carla::road::element::RoadInfoVisitor
Definition
RoadInfoVisitor.h:31
carla::road::element::RoadInfo
Definition
RoadInfo.h:20
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
制作者
1.10.0