ad_rss
Public Types | Public Member Functions | Public Attributes | List of all members
ad::rss::world::RoadSegment Struct Reference

DataType RoadSegment. More...

#include <ad/rss/world/RoadSegment.hpp>

Collaboration diagram for ad::rss::world::RoadSegment:
Collaboration graph
[legend]

Public Types

typedef std::shared_ptr< RoadSegmentPtr
 Smart pointer on RoadSegment.
 
typedef std::shared_ptr< RoadSegment const > ConstPtr
 Smart pointer on constant RoadSegment.
 

Public Member Functions

 RoadSegment ()=default
 standard constructor
 
 ~RoadSegment ()=default
 standard destructor
 
 RoadSegment (const RoadSegment &other)=default
 standard copy constructor
 
 RoadSegment (RoadSegment &&other)=default
 standard move constructor
 
RoadSegmentoperator= (const RoadSegment &other)=default
 standard assignment operator More...
 
RoadSegmentoperator= (RoadSegment &&other)=default
 standard move operator More...
 
bool operator== (const RoadSegment &other) const
 standard comparison operator More...
 
bool operator!= (const RoadSegment &other) const
 standard comparison operator More...
 

Public Attributes

::ad::rss::world::RoadSegmentType type {::ad::rss::world::RoadSegmentType::Normal}
 
::ad::rss::world::LaneSegmentVector lane_segments
 
::ad::physics::Distance minimum_length_after_intersecting_area {0.0}
 
::ad::physics::Distance minimum_length_before_intersecting_area {0.0}
 

Detailed Description

DataType RoadSegment.

A RoadSegment is defined by lateral neighboring lane segments, a type and some intersection correction metrics. The lane segments within a road segment have to be ordered from left to right in respect to the driving direction defined by the road area.

Member Function Documentation

◆ operator!=()

bool ad::rss::world::RoadSegment::operator!= ( const RoadSegment other) const
inline

standard comparison operator

Parameters
[in]otherOther RoadSegment.
Returns
true if both RoadSegment are different

◆ operator=() [1/2]

RoadSegment& ad::rss::world::RoadSegment::operator= ( const RoadSegment other)
default

standard assignment operator

Parameters
[in]otherOther RoadSegment
Returns
Reference to this RoadSegment.

◆ operator=() [2/2]

RoadSegment& ad::rss::world::RoadSegment::operator= ( RoadSegment &&  other)
default

standard move operator

Parameters
[in]otherOther RoadSegment
Returns
Reference to this RoadSegment.

◆ operator==()

bool ad::rss::world::RoadSegment::operator== ( const RoadSegment other) const
inline

standard comparison operator

Parameters
[in]otherOther RoadSegment
Returns
true if both RoadSegment are equal

Member Data Documentation

◆ minimum_length_after_intersecting_area

::ad::physics::Distance ad::rss::world::RoadSegment::minimum_length_after_intersecting_area {0.0}

The mimum length after the actual intersecting area of an intersection type road segment. If > 0 the actual area intersecting with the other vehicles route within an intersection segment ends that distance before this road segment ends.

◆ minimum_length_before_intersecting_area

::ad::physics::Distance ad::rss::world::RoadSegment::minimum_length_before_intersecting_area {0.0}

The mimum length before the actual intersecting area of an intersection type road segment. If > 0 the actual area intersecting with the other vehicles route within an intersection segment starts that distance after this road segment starts.

◆ type

The type of this road segment in context of the RssArea it belongs to.


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