DEFINE_double(max_linear_tolerance, -1., "Maximum linear tolerance used to load the map."); \
DEFINE_string(build_policy, "sequential", "Build policy, it could be `sequential` or `parallel`."); \
DEFINE_int32(num_threads, 0, "Number of threads to create the Road Geometry."); \
DEFINE_string(simplification_policy, "none", "Geometries simplification policy, it could be `none` or `simplify`."); \
DEFINE_string( \
standard_strictness_policy, "permissive", \
"OpenDrive standard strictness, it could be `permissive`, `allow_schema_errors`, `allow_semantic_errors` or " \
"`strict`. Union of policies are also allowed: 'allow_schema_errors|allow_semantic_errors'"); \
DEFINE_bool(omit_nondrivable_lanes, false, "If true, builder omits non-drivable lanes when building."); \
std::optional<double> GetLinearToleranceFlag() { \
return gflags::GetCommandLineFlagInfoOrDie("linear_tolerance").is_default \
? std::nullopt \
: std::make_optional<double>(FLAGS_linear_tolerance); \
} \
std::optional<double> GetMaxLinearToleranceFlag() { \
return gflags::GetCommandLineFlagInfoOrDie("max_linear_tolerance").is_default \
? std::nullopt \
: std::make_optional<double>(FLAGS_max_linear_tolerance); \
}