maliput_malidrive
malidrive::test Namespace Reference

Functions

std::optional< builder::RoadGeometryConfigurationGetRoadGeometryConfigurationFor (const std::string &xodr_file_name)
 Obtains the builder::RoadGeometryConfiguration for a specific xodr file name. More...
 

Variables

constexpr const char * kXodrSingleGeometry
 
constexpr const char * kXodrLineAndArcGeometry
 
constexpr const char * kXodrWithLinesToBeSimplified
 
constexpr const char * kXodrWithArcsToBeSimplified
 
constexpr const char * kXodrCombinedLinesWithArcs
 
constexpr const char * kXodrCombinedArcsWithLines
 
constexpr const char * kTown04Road399
 

Function Documentation

◆ GetRoadGeometryConfigurationFor()

std::optional< builder::RoadGeometryConfiguration > GetRoadGeometryConfigurationFor ( const std::string &  xodr_file_name)

Obtains the builder::RoadGeometryConfiguration for a specific xodr file name.

This function holds a curated dictionary of xodr maps and their geometric configurations.

Parameters
xodr_file_nameThe XODR map file name.
Returns
A builder::RoadGeometryConfiguration for the specified xodr_file_name or std::nullopt when it does not exist.

Variable Documentation

◆ kTown04Road399

constexpr const char* kTown04Road399
constexpr

◆ kXodrCombinedArcsWithLines

constexpr const char* kXodrCombinedArcsWithLines
constexpr

◆ kXodrCombinedLinesWithArcs

constexpr const char* kXodrCombinedLinesWithArcs
constexpr

◆ kXodrLineAndArcGeometry

constexpr const char* kXodrLineAndArcGeometry
constexpr

◆ kXodrSingleGeometry

constexpr const char* kXodrSingleGeometry
constexpr
Initial value:
= R"R(
<?xml version='1.0' standalone='yes'?>
<OpenDRIVE>
<header revMajor='1.' revMinor='1.' name='XodrSingleGeometry' version='1.0' date='Tue Sep 14 12:00:00 2020'
north='0.' south='0.' east='0.' west='0.' vendor='Toyota Research Institute' >
</header>
<road name="NoSimplification" length="10" id="1" junction="-1">
<link/>
<planView>
<geometry s="0.0" x="0.0" y="0.0" hdg="0.0" length="10">
<line/>
</geometry>
</planView>
<lanes>
<laneSection s="0.0e+0">
<center>
<lane id="0" type="none" level="false">
</lane>
</center>
<right>
<lane id="-1" type="driving" level="false">
<width sOffset="0.0e+0" a="3.5e+0" b="0.0e+0" c="0.0e+0" d="0.0e+0"/>
</lane>
</right>
</laneSection>
</lanes>
</road>
</OpenDRIVE>
)R"

◆ kXodrWithArcsToBeSimplified

constexpr const char* kXodrWithArcsToBeSimplified
constexpr

◆ kXodrWithLinesToBeSimplified

constexpr const char* kXodrWithLinesToBeSimplified
constexpr