CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
LibCarla
source
carla
road
element
RoadInfoLaneHeight.h
Go to the documentation of this file.
1
// Copyright (c) 2026 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 "
carla/geom/CubicPolynomial.h
"
11
12
namespace
carla
{
13
namespace
road
{
14
namespace
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
25
RoadInfoLaneHeight
(
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
34
void
AcceptVisitor
(
RoadInfoVisitor
&v)
final
{
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
CubicPolynomial.h
RoadInfo.h
carla::road::element::RoadInfoLaneHeight::_inner
const double _inner
Definition
RoadInfoLaneHeight.h:50
carla::road::element::RoadInfoLaneHeight::GetInner
double GetInner() const
Inner offset from road level.
Definition
RoadInfoLaneHeight.h:39
carla::road::element::RoadInfoLaneHeight::RoadInfoLaneHeight
RoadInfoLaneHeight(double s, double inner, double outer)
Definition
RoadInfoLaneHeight.h:25
carla::road::element::RoadInfoLaneHeight::GetOuter
double GetOuter() const
Outer offset from road level.
Definition
RoadInfoLaneHeight.h:44
carla::road::element::RoadInfoLaneHeight::AcceptVisitor
void AcceptVisitor(RoadInfoVisitor &v) final
Definition
RoadInfoLaneHeight.h:34
carla::road::element::RoadInfoLaneHeight::_outer
const double _outer
Definition
RoadInfoLaneHeight.h:52
carla::road::element::RoadInfoVisitor
Definition
RoadInfoVisitor.h:33
carla::road::element::RoadInfo::RoadInfo
RoadInfo(double distance=0.0)
Definition
RoadInfo.h:34
carla::road::element
Definition
SignComponent.h:26
carla::road
Definition
SignComponent.h:23
carla
This file contains definitions of common data structures used in traffic manager.
Definition
SignComponent.h:21
Generated by
1.18.0