CARLA
 
载入中...
搜索中...
未找到
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
10#include <string>
11
12namespace carla {
13namespace road {
14namespace element {
15
16 class RoadInfoMarkTypeLine final : public RoadInfo {
17 public:
18
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
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
RoadInfoMarkTypeLine(double s, int road_mark_id, double length, double space, double tOffset, std::string rule, double width)
void AcceptVisitor(RoadInfoVisitor &v) final
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133