CARLA
Loading...
Searching...
No Matches
carla::road::element::RoadInfoLaneHeight Class Referencefinal

The surface of a lane may be offset from the plane defined by the reference line and the corresponding elevation and crossfall entries (e.g. More...

#include <RoadInfoLaneHeight.h>

Inheritance diagram for carla::road::element::RoadInfoLaneHeight:

Public Member Functions

void AcceptVisitor (RoadInfoVisitor &v) final
double GetInner () const
 Inner offset from road level.
double GetOuter () const
 Outer offset from road level.
 RoadInfoLaneHeight (double s, double inner, double outer)
Public Member Functions inherited from carla::road::element::RoadInfo
double GetDistance () const
 Distance from road's start location.
virtual ~RoadInfo ()=default

Private Attributes

const double _inner
const double _outer

Additional Inherited Members

Protected Member Functions inherited from carla::road::element::RoadInfo
 RoadInfo (double distance=0.0)

Detailed Description

The surface of a lane may be offset from the plane defined by the reference line and the corresponding elevation and crossfall entries (e.g.

pedestrian walkways are typically a few centimeters above road level). The height record provides a simplified method to describe this offset by setting an inner and outer offset from road level at discrete positions along the lane profile.

Definition at line 22 of file RoadInfoLaneHeight.h.

Constructor & Destructor Documentation

◆ RoadInfoLaneHeight()

carla::road::element::RoadInfoLaneHeight::RoadInfoLaneHeight ( double s,
double inner,
double outer )
inline

Definition at line 25 of file RoadInfoLaneHeight.h.

References _inner, _outer, and carla::road::element::RoadInfo::RoadInfo().

Member Function Documentation

◆ AcceptVisitor()

void carla::road::element::RoadInfoLaneHeight::AcceptVisitor ( RoadInfoVisitor & v)
inlinefinalvirtual

Implements carla::road::element::RoadInfo.

Definition at line 34 of file RoadInfoLaneHeight.h.

◆ GetInner()

double carla::road::element::RoadInfoLaneHeight::GetInner ( ) const
inline

Inner offset from road level.

Definition at line 39 of file RoadInfoLaneHeight.h.

References _inner.

◆ GetOuter()

double carla::road::element::RoadInfoLaneHeight::GetOuter ( ) const
inline

Outer offset from road level.

Definition at line 44 of file RoadInfoLaneHeight.h.

References _outer.

Member Data Documentation

◆ _inner

const double carla::road::element::RoadInfoLaneHeight::_inner
private

Definition at line 50 of file RoadInfoLaneHeight.h.

Referenced by GetInner(), and RoadInfoLaneHeight().

◆ _outer

const double carla::road::element::RoadInfoLaneHeight::_outer
private

Definition at line 52 of file RoadInfoLaneHeight.h.

Referenced by GetOuter(), and RoadInfoLaneHeight().


The documentation for this class was generated from the following file: