maliput_multilane
LaneLayout Class Reference

Detailed Description

Wraps all the lane-related specifications in a Connection.

#include <include/maliput_multilane/builder.h>

Public Member Functions

 LaneLayout (double left_shoulder, double right_shoulder, int num_lanes, int ref_lane, double ref_r0)
 Constructs a the lane layout of a connection. More...
 
double left_shoulder () const
 
double right_shoulder () const
 
int num_lanes () const
 
int ref_lane () const
 
double ref_r0 () const
 

Constructor & Destructor Documentation

◆ LaneLayout()

LaneLayout ( double  left_shoulder,
double  right_shoulder,
int  num_lanes,
int  ref_lane,
double  ref_r0 
)

Constructs a the lane layout of a connection.

Lane reference paths (which are offsets of parent Segment reference curve) are centered within the Lane. Lane spacing will be road geometry fixed lane's width. Segment extents will be derived from the composition of left_shoulder and right_shoulder shoulders, number of lanes and lane spacing. ref_lane lane's centerline will be placed at ref_r0 distance from connection's reference curve.

left_shoulder and right_shoulder must be nonnegative. num_lanes must be positive and ref_lane must be nonnegative and smaller than num_lanes.

Member Function Documentation

◆ left_shoulder()

double left_shoulder ( ) const

◆ num_lanes()

int num_lanes ( ) const

◆ ref_lane()

int ref_lane ( ) const

◆ ref_r0()

double ref_r0 ( ) const

◆ right_shoulder()

double right_shoulder ( ) const

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