maliput_integration
maliput_query.cc File Reference

Detailed Description

Convenient application to run maliput's queries against a dragway, multilane or malidrive's RoadGeometry backend.

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, tolerance and rule file paths are optional: -xodr_file_path -linear_tolerance -road_rule_book_file -traffic_light_book_file -phase_ring_book_file -intersection_book_file
  2. The level of the logger could be setted by: -log_level.
#include <chrono>
#include <iostream>
#include <map>
#include <memory>
#include <optional>
#include <ostream>
#include <sstream>
#include <string>
#include <vector>
#include <gflags/gflags.h>
#include <maliput/common/logger.h>
#include <maliput/common/maliput_abort.h>
#include <maliput/math/bounding_box.h>
#include <maliput/math/overlapping_type.h>
#include <maliput/plugin/create_road_network.h>
#include <maliput/plugin/maliput_plugin_manager.h>
#include <maliput_malidrive/constants.h>
#include <maliput_malidrive/utility/file_tools.h>
#include <maliput_object/api/object.h>
#include <maliput_object/base/manual_object_book.h>
#include <maliput_object/base/simple_object_query.h>
#include "integration/tools.h"
#include "maliput_gflags.h"
Include dependency graph for maliput_query.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> maliput backend.")
 
int main (int argc, char *argv[])
 

Function Documentation

◆ COMMON_PROPERTIES_FLAGS()

COMMON_PROPERTIES_FLAGS ( )

◆ DEFINE_string()

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

◆ 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 ( )

Variable Documentation

◆ description

std::vector<std::string> description {{"default"}}

◆ name

std::string name {"default"}

◆ num_arguments

int num_arguments {0}

◆ usage

std::string usage {"default"}