maliput_integration
maliput_to_string.cc File Reference

Detailed Description

Builds an api::RoadGeometry and lists its entities. Possible backends are dragway, multilane and malidrive.

Note
  1. Allows to load a road geometry from different road geometry implementations. The maliput_backend flag will determine the backend to be used.
    • "dragway": The following flags are supported to use in order to create dragway road geometry: -num_lanes, -length, -lane_width, -shoulder_width, -maximum_height.
    • "multilane": yaml file path must be provided: -yaml_file.
    • "malidrive": xodr file path must be provided and the tolerance is optional: -xodr_file_path -linear_tolerance.
  2. The applications possesses flags to modify the output serialization: -include_type_labels, -include_road_geometry_id, -include_junction_ids, -include_segment_ids, -include_lane_ids, -include_lane_details.
  3. The level of the logger is selected with -log_level.
#include <iostream>
#include <memory>
#include <string>
#include <gflags/gflags.h>
#include <maliput/common/logger.h>
#include <maliput/utility/generate_string.h>
#include "integration/tools.h"
#include "maliput_gflags.h"
Include dependency graph for maliput_to_string.cc:

Namespaces

 maliput
 
 maliput::integration
 

Functions

 COMMON_PROPERTIES_FLAGS ()
 
 MULTILANE_PROPERTIES_FLAGS ()
 
 DRAGWAY_PROPERTIES_FLAGS ()
 
 MALIDRIVE_PROPERTIES_FLAGS ()
 
 MALIPUT_OSM_PROPERTIES_FLAGS ()
 
 MALIPUT_APPLICATION_DEFINE_LOG_LEVEL_FLAG ()
 
 DEFINE_string (maliput_backend, "malidrive", "Whether to use <dragway>, <multilane> or <malidrive>. Default is malidrive.")
 
 DEFINE_bool (check_invariants, false, "Whether to enable maliput invariants verification.")
 
 DEFINE_bool (include_type_labels, false, "Whether to include type labels in the output string")
 
 DEFINE_bool (include_road_geometry_id, false, "Whether to include road geometry IDs in the output string")
 
 DEFINE_bool (include_junction_ids, false, "Whether to include junction IDs in the output string")
 
 DEFINE_bool (include_segment_ids, false, "Whether to include segment IDs in the output string")
 
 DEFINE_bool (include_lane_ids, false, "Whether to include lane IDs in the output string")
 
 DEFINE_bool (include_lane_details, false, "Whether to include lane details in the output string")
 
int main (int argc, char *argv[])
 

Function Documentation

◆ COMMON_PROPERTIES_FLAGS()

COMMON_PROPERTIES_FLAGS ( )

◆ DEFINE_bool() [1/7]

DEFINE_bool ( check_invariants  ,
false  ,
"Whether to enable maliput invariants verification."   
)

◆ DEFINE_bool() [2/7]

DEFINE_bool ( include_junction_ids  ,
false  ,
"Whether to include junction IDs in the output string"   
)

◆ DEFINE_bool() [3/7]

DEFINE_bool ( include_lane_details  ,
false  ,
"Whether to include lane details in the output string"   
)

◆ DEFINE_bool() [4/7]

DEFINE_bool ( include_lane_ids  ,
false  ,
"Whether to include lane IDs in the output string"   
)

◆ DEFINE_bool() [5/7]

DEFINE_bool ( include_road_geometry_id  ,
false  ,
"Whether to include road geometry IDs in the output string"   
)

◆ DEFINE_bool() [6/7]

DEFINE_bool ( include_segment_ids  ,
false  ,
"Whether to include segment IDs in the output string"   
)

◆ DEFINE_bool() [7/7]

DEFINE_bool ( include_type_labels  ,
false  ,
"Whether to include type labels in the output string"   
)

◆ DEFINE_string()

DEFINE_string ( maliput_backend  ,
"malidrive"  ,
"Whether to use <dragway>  ,
< multilane > or< malidrive >. Default is malidrive."   
)

◆ DRAGWAY_PROPERTIES_FLAGS()

DRAGWAY_PROPERTIES_FLAGS ( )

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ MALIDRIVE_PROPERTIES_FLAGS()

MALIDRIVE_PROPERTIES_FLAGS ( )

◆ MALIPUT_APPLICATION_DEFINE_LOG_LEVEL_FLAG()

MALIPUT_APPLICATION_DEFINE_LOG_LEVEL_FLAG ( )

◆ MALIPUT_OSM_PROPERTIES_FLAGS()

MALIPUT_OSM_PROPERTIES_FLAGS ( )

◆ MULTILANE_PROPERTIES_FLAGS()

MULTILANE_PROPERTIES_FLAGS ( )