maliput_integration
maliput_gflags.h File Reference
#include <optional>
#include <gflags/gflags.h>
Include dependency graph for maliput_gflags.h:
This graph shows which files directly or indirectly include this file:

Macros

#define MALIPUT_APPLICATION_DEFINE_LOG_LEVEL_FLAG()
 Declares FLAGS_log_level flag with all possible log level values. More...
 
#define DRAGWAY_PROPERTIES_FLAGS()
 
#define MULTILANE_PROPERTIES_FLAGS()   DEFINE_string(yaml_file, "", "yaml input file defining a multilane road geometry");
 
#define COMMON_PROPERTIES_FLAGS()
 
#define MALIDRIVE_PROPERTIES_FLAGS()
 
#define MALIPUT_OSM_PROPERTIES_FLAGS()
 

Macro Definition Documentation

◆ COMMON_PROPERTIES_FLAGS

#define COMMON_PROPERTIES_FLAGS ( )
Value:
DEFINE_double(linear_tolerance, 5e-2, "Linear tolerance used to load the map."); \
DEFINE_double(angular_tolerance, 1e-3, "Angular tolerance used to load the map."); \
DEFINE_string(rule_registry_file, "", "YAML file defining a Maliput rule registry"); \
DEFINE_string(road_rule_book_file, "", "YAML file defining a Maliput road rule book"); \
DEFINE_string(traffic_light_book_file, "", "YAML file defining a Maliput traffic lights book"); \
DEFINE_string(phase_ring_book_file, "", "YAML file defining a Maliput phase ring book"); \
DEFINE_string(intersection_book_file, "", "YAML file defining a Maliput intersection book");

◆ DRAGWAY_PROPERTIES_FLAGS

#define DRAGWAY_PROPERTIES_FLAGS ( )
Value:
DEFINE_int32(num_lanes, 2, "The number of lanes."); \
DEFINE_double(length, 10, "The length of the dragway in meters."); \
DEFINE_double(lane_width, 3.7, "The width of each lane in meters."); \
DEFINE_double(shoulder_width, 3.0, "The width of the shoulders in meters. Both shoulders have the same width."); \
DEFINE_double(maximum_height, 5.2, "The maximum modelled height above the road surface (meters).");

◆ MALIDRIVE_PROPERTIES_FLAGS

#define MALIDRIVE_PROPERTIES_FLAGS ( )
Value:
DEFINE_string(xodr_file_path, "", "XODR file path."); \
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); \
} \
std::optional<double> GetAngularToleranceFlag() { \
return gflags::GetCommandLineFlagInfoOrDie("angular_tolerance").is_default \
? std::nullopt \
: std::make_optional<double>(FLAGS_angular_tolerance); \
}

◆ MALIPUT_APPLICATION_DEFINE_LOG_LEVEL_FLAG

#define MALIPUT_APPLICATION_DEFINE_LOG_LEVEL_FLAG ( )
Value:
DEFINE_string(log_level, "unchanged", \
"Sets the log output threshold; possible values are " \
"'unchanged', " \
"'trace', " \
"'debug', " \
"'info', " \
"'warn', " \
"'err', " \
"'critical', " \
"'off'.")

Declares FLAGS_log_level flag with all possible log level values.

◆ MALIPUT_OSM_PROPERTIES_FLAGS

#define MALIPUT_OSM_PROPERTIES_FLAGS ( )
Value:
DEFINE_string(osm_file, "", "OSM file path."); \
DEFINE_string(origin, "{0., 0.}", "OSM map's origin lat/long coordinate.");

◆ MULTILANE_PROPERTIES_FLAGS

#define MULTILANE_PROPERTIES_FLAGS ( )    DEFINE_string(yaml_file, "", "yaml input file defining a multilane road geometry");
DEFINE_string
DEFINE_string(maliput_backend, "malidrive", "Whether to use <dragway>, <multilane> or <malidrive>. Default is malidrive.")
DEFINE_double
DEFINE_double(max_length, 1000, "Maximum length of the intermediate lanes between start and end waypoints.[m]")