maliput_malidrive
RoadGeometryConfiguration::BuildTolerance Struct Reference

Detailed Description

Holds linear and angular tolerance to be used by the builder.

A range could be selected for linear tolerance, allowing the builder to try different values of linear tolerances within that range searching for a value that works.

#include <src/maliput_malidrive/builder/road_geometry_configuration.h>

Public Member Functions

 BuildTolerance (double angular_tolerance_in)
 Sets angular tolerance. More...
 
 BuildTolerance (double linear_tolerance_in, double angular_tolerance_in)
 Sets linear and angular tolerance. More...
 
 BuildTolerance (double min_linear_tolerance_in, double max_linear_tolerance_in, double angular_tolerance_in)
 Sets linear tolerance range and angular tolerance. More...
 

Public Attributes

std::optional< double > linear_tolerance {std::nullopt}
 Nominal linear_tolerance to be used in the RoadGeometry. More...
 
std::optional< double > max_linear_tolerance {std::nullopt}
 Maximum range of linear tolerances. More...
 
double angular_tolerance {constants::kAngularTolerance}
 Angular tolerance to be used in the RoadGeometry. More...
 

Constructor & Destructor Documentation

◆ BuildTolerance() [1/3]

BuildTolerance ( double  angular_tolerance_in)
explicit

Sets angular tolerance.

Parameters
angular_tolerance_inangular tolerance.

◆ BuildTolerance() [2/3]

BuildTolerance ( double  linear_tolerance_in,
double  angular_tolerance_in 
)
explicit

Sets linear and angular tolerance.

Parameters
linear_tolerance_inlinear tolerance.
angular_tolerance_inangular tolerance.

◆ BuildTolerance() [3/3]

BuildTolerance ( double  min_linear_tolerance_in,
double  max_linear_tolerance_in,
double  angular_tolerance_in 
)
explicit

Sets linear tolerance range and angular tolerance.

Parameters
min_linear_tolerance_inminimum linear tolerance to be used.
max_linear_tolerance_inmaximum linear tolerance to be used.
angular_tolerance_inangular tolerance.

Member Data Documentation

◆ angular_tolerance

double angular_tolerance {constants::kAngularTolerance}

Angular tolerance to be used in the RoadGeometry.

◆ linear_tolerance

std::optional<double> linear_tolerance {std::nullopt}

Nominal linear_tolerance to be used in the RoadGeometry.

Corresponds to the minimumm range of linear tolerances when max_linear_tolerance.has_value is true.

◆ max_linear_tolerance

std::optional<double> max_linear_tolerance {std::nullopt}

Maximum range of linear tolerances.


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