CARLA
 
载入中...
搜索中...
未找到
RoadInfoLaneHeight.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
11
12namespace carla {
13namespace road {
14namespace element {
15
16 /// The surface of a lane may be offset from the plane defined by the
17 /// reference line and the corresponding elevation and crossfall entries (e.g.
18 /// pedestrian walkways are typically a few centimeters above road level). The
19 /// height record provides a simplified method to describe this offset by
20 /// setting an inner and outer offset from road level at discrete positions
21 /// along the lane profile.
22 class RoadInfoLaneHeight final : public RoadInfo {
23 public:
24
26 double s, // start position relative to the position of the preceding
27 // lane section
28 double inner,
29 double outer)
30 : RoadInfo(s),
31 _inner(inner),
32 _outer(outer) {}
33
35 v.Visit(*this);
36 }
37
38 /// Inner offset from road level.
39 double GetInner() const {
40 return _inner;
41 }
42
43 /// Outer offset from road level.
44 double GetOuter() const {
45 return _outer;
46 }
47
48 private:
49
50 const double _inner;
51
52 const double _outer;
53 };
54
55} // namespace element
56} // namespace road
57} // namespace carla
The surface of a lane may be offset from the plane defined by the reference line and the correspondin...
double GetInner() const
Inner offset from road level.
RoadInfoLaneHeight(double s, double inner, double outer)
double GetOuter() const
Outer offset from road level.
void AcceptVisitor(RoadInfoVisitor &v) final
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133