ad_map_access
Public Member Functions | Public Attributes | List of all members
ad::map::route::FindLaneChangeResult Struct Reference

struct defining the result type of findFirstLaneChange() More...

#include <ad/map/route/RouteOperation.hpp>

Collaboration diagram for ad::map::route::FindLaneChangeResult:
Collaboration graph
[legend]

Public Member Functions

 FindLaneChangeResult (FullRoute const &route)
 constructor More...
 
bool isValid () const
 returns true, if the routeIteratorLaneChangeStart and the routeIteratorLaneChangeEnd, as well as the lane change direction are set
 
physics::Distance calcZoneLength () const
 calculate the length of the zone of the lane change More...
 

Public Attributes

const FullRoutequeryRoute
 reference to the route
 
RoadSegmentList::const_iterator laneChangeStartRouteIterator
 iterator referencing to route index where the lane change can start at the earliest
 
LaneSegmentList::const_iterator laneChangeStartLaneSegmentIterator
 iterator referencing an element of the laneChangeStartRouteIterator content; only valid if laneChangeStartRouteIterator != queryRoute.routeSegments.end()
 
RoadSegmentList::const_iterator laneChangeEndRouteIterator
 iterator referencing to route index where the lane change needs to be ended at the latest
 
LaneSegmentList::const_iterator laneChangeEndLaneSegmentIterator
 iterator referencing an element of the laneChangeEndRouteIterator content; only valid if laneChangeEndRouteIterator != queryRoute.routeSegments.end()
 
LaneChangeDirection laneChangeDirection
 the lane change direction
 
uint32_t numberOfConnectedLaneChanges {0u}
 the number of connected lane changes to reach the desired target lane from the current position
 

Detailed Description

struct defining the result type of findFirstLaneChange()

Constructor & Destructor Documentation

◆ FindLaneChangeResult()

ad::map::route::FindLaneChangeResult::FindLaneChangeResult ( FullRoute const &  route)
explicit

constructor

constructs a result that is invalid

Member Function Documentation

◆ calcZoneLength()

physics::Distance ad::map::route::FindLaneChangeResult::calcZoneLength ( ) const

calculate the length of the zone of the lane change

Returns
the length of the lane change zone on the route including start and end lane change segment

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