maliput_malidrive
|
xodr_query
application can be used to perform different kind of queries to a particular XODR description.
For example, let's use GetGeometries
query.
Supported commands:
xodr_query <xodr_file> FindJunction <junction_id>
: Obtains the XODR Junction hose ID is junction_id.
xodr_query <xodr_file> FindLargestElevationGap
: Obtains the largest gap in elevation functions of the XODR.
xodr_query <xodr_file> FindLargestGap
: Obtains the largest gap of the XODR.
xodr_query <xodr_file> FindLargestGeometry
: Obtains the largest geometry of the XODR.
xodr_query <xodr_file> FindLargestLaneSection
: Obtains the largest laneSection of the XODR.
xodr_query <xodr_file> FindLargestSuperelevationGap
: Obtains the largest superelevation gap of the XODR.
xodr_query <xodr_file> FindRoad RoadId
: Obtains the XODR Road whose ID is RoadId.
xodr_query <xodr_file> FindShortestElevationGap
: Obtains the shortest gap in elevation functions of the XODR.
xodr_query <xodr_file> FindShortestGap
: Obtains the shortest gap of the XODR.
xodr_query <xodr_file> FindShortestGeometry
: Obtains the shortest geometry of the XODR.
xodr_query <xodr_file> FindShortestLaneSection
: Obtains the shortest laneSection of the XODR.
xodr_query <xodr_file> FindShortestSuperelevationGap
: Obtains the shortest superelevation gap of the XODR.
xodr_query <xodr_file> GetGeometries <road_id>
: Retrieves a list of the geometries of the correspondent road.
xodr_query <xodr_file> GetGeometriesToSimplify <tolerance>
: Retrieves a list of geometries that can be simplified into simpler geometry descriptions and the type of geometry that would do it.
xodr_query <xodr_file> GetHeader
: Prints the XODR Header.
xodr_query
application has some arguments that can be used when performing queries. All of them can be accessed by doing --help
--allow_schema_errors
: If true, the XODR parser will attempt to work around XODR schema violations. By default set to false
.
--allow_semantic_errors
: If true, the XODR parser will attempt to work around XODR semantic violations. By default set to false
.
--log_level
: Sets the log output threshold; possible values: maliput::common::logger::level. By default set to unchanged
.
--tolerance
: Tolerance used to validate continuity in piecewise defined geometries. By default set to 0.001
.