CARLA
Loading...
Searching...
No Matches
carla::opendrive::parser Namespace Reference

Classes

class  ControllerParser
struct  ElevationProfile
struct  Geometry
struct  GeometryArc
struct  GeometryParamPoly3
class  GeometryParser
struct  GeometryPoly3
struct  GeometrySpiral
class  GeoReferenceParser
class  JunctionParser
struct  Lane
struct  LaneOffset
class  LaneParser
struct  LaneSection
struct  LateralCrossfall
struct  LateralProfile
struct  LateralShape
class  ObjectParser
struct  Polynomial
class  ProfilesParser
struct  Road
class  RoadParser
struct  RoadTypeSpeed
class  SignalParser
class  TrafficGroupParser

Typedefs

using JuncId = road::JuncId
using LaneId = road::LaneId
using RoadId = road::RoadId

Functions

static void AddValidity (road::element::RoadInfoSignal *signal_reference, pugi::xml_node parent_node, const std::string &node_name, road::MapBuilder &map_builder)
static geom::GeoLocation CreateDefaultGeoReference ()
static geom::GeoProjection CreateDefaultProjection (geom::Ellipsoid ellipsoid)
static geom::Ellipsoid CreateEllipsoid (std::unordered_map< std::string, std::string > parameters)
static geom::GeoProjection CreateLambertConformalConicProjection (std::unordered_map< std::string, std::string > parameters, std::string proj_string, geom::Ellipsoid ellipsoid)
static geom::GeoLocation CreateLambertConic2SPGeoReference (std::unordered_map< std::string, std::string > parameters)
static boost::optional< geom::OffsetTransform > CreateOffsetTransform (std::unordered_map< std::string, double > &offset_parameters)
static geom::GeoLocation CreateTransverseMercatorGeoReference (std::unordered_map< std::string, std::string > parameters)
static geom::GeoProjection CreateTransverseMercatorProjection (std::unordered_map< std::string, std::string > parameters, std::string proj_string, geom::Ellipsoid ellipsoid)
static geom::GeoLocation CreateUniversalTransverseMercatorGeoReference (std::unordered_map< std::string, std::string > parameters)
static geom::GeoProjection CreateUniversalTransverseMercatorProjection (std::unordered_map< std::string, std::string > parameters, std::string proj_string, geom::Ellipsoid ellipsoid, boost::optional< carla::geom::OffsetTransform > offset)
static geom::GeoLocation CreateWebMercatorGeoReference ()
static geom::GeoProjection CreateWebMercatorProjection (std::string proj_string, geom::Ellipsoid ellipsoid)
static auto ParseGeoProjectionAndReference (const std::string &proj_string, const pugi::xml_node &geo_offset)
static void ParseLanes (road::RoadId road_id, double s, const pugi::xml_node &parent_node, carla::road::MapBuilder &map_builder)
static std::unordered_map< std::string, double > ParseOffsetParameters (const pugi::xml_node &geo_offset)
static std::unordered_map< std::string, std::string > ParseProjectionParameters (const std::string &s)
static road::Lane::LaneType StringToLaneType (std::string &&str)
template<typename S>
static std::string ToLowerCase (S &&s)
template<typename M, typename S, typename O>
static std::enable_if_t< std::is_integral< O >::value &&std::is_signed< O >::value, bool > TryGetParameter (O &out, M &parameters, S &&name)
template<typename M, typename S, typename O>
static std::enable_if_t< std::is_integral< O >::value &&std::is_unsigned< O >::value, bool > TryGetParameter (O &out, M &parameters, S &&name)
template<typename M, typename S, typename O>
static std::enable_if_t< std::is_floating_point< O >::value, bool > TryGetParameter (O &out, M &parameters, S &&name)
template<typename S, typename O>
static bool TryGetParameter (O &out, std::unordered_map< std::string, double > &parameters, S &&name)
template<typename M, typename S>
static bool TryGetParameter (std::string &out, M &parameters, S &&name)

Typedef Documentation

◆ JuncId

Definition at line 22 of file RoadParser.cpp.

◆ LaneId

Definition at line 21 of file RoadParser.cpp.

◆ RoadId

Function Documentation

◆ AddValidity()

void carla::opendrive::parser::AddValidity ( road::element::RoadInfoSignal * signal_reference,
pugi::xml_node parent_node,
const std::string & node_name,
road::MapBuilder & map_builder )
static

◆ CreateDefaultGeoReference()

geom::GeoLocation carla::opendrive::parser::CreateDefaultGeoReference ( )
static

◆ CreateDefaultProjection()

geom::GeoProjection carla::opendrive::parser::CreateDefaultProjection ( geom::Ellipsoid ellipsoid)
static

◆ CreateEllipsoid()

geom::Ellipsoid carla::opendrive::parser::CreateEllipsoid ( std::unordered_map< std::string, std::string > parameters)
static

◆ CreateLambertConformalConicProjection()

◆ CreateLambertConic2SPGeoReference()

geom::GeoLocation carla::opendrive::parser::CreateLambertConic2SPGeoReference ( std::unordered_map< std::string, std::string > parameters)
static

◆ CreateOffsetTransform()

boost::optional< geom::OffsetTransform > carla::opendrive::parser::CreateOffsetTransform ( std::unordered_map< std::string, double > & offset_parameters)
static

◆ CreateTransverseMercatorGeoReference()

geom::GeoLocation carla::opendrive::parser::CreateTransverseMercatorGeoReference ( std::unordered_map< std::string, std::string > parameters)
static

◆ CreateTransverseMercatorProjection()

◆ CreateUniversalTransverseMercatorGeoReference()

geom::GeoLocation carla::opendrive::parser::CreateUniversalTransverseMercatorGeoReference ( std::unordered_map< std::string, std::string > parameters)
static

◆ CreateUniversalTransverseMercatorProjection()

◆ CreateWebMercatorGeoReference()

geom::GeoLocation carla::opendrive::parser::CreateWebMercatorGeoReference ( )
static

◆ CreateWebMercatorProjection()

geom::GeoProjection carla::opendrive::parser::CreateWebMercatorProjection ( std::string proj_string,
geom::Ellipsoid ellipsoid )
static

◆ ParseGeoProjectionAndReference()

◆ ParseLanes()

◆ ParseOffsetParameters()

std::unordered_map< std::string, double > carla::opendrive::parser::ParseOffsetParameters ( const pugi::xml_node & geo_offset)
static

◆ ParseProjectionParameters()

std::unordered_map< std::string, std::string > carla::opendrive::parser::ParseProjectionParameters ( const std::string & s)
static

◆ StringToLaneType()

◆ ToLowerCase()

template<typename S>
std::string carla::opendrive::parser::ToLowerCase ( S && s)
static

Definition at line 30 of file GeoReferenceParser.cpp.

References ToLowerCase().

Referenced by CreateEllipsoid(), and ToLowerCase().

◆ TryGetParameter() [1/5]

template<typename M, typename S, typename O>
std::enable_if_t< std::is_integral< O >::value &&std::is_signed< O >::value, bool > carla::opendrive::parser::TryGetParameter ( O & out,
M & parameters,
S && name )
static

Definition at line 103 of file GeoReferenceParser.cpp.

References TryGetParameter().

◆ TryGetParameter() [2/5]

template<typename M, typename S, typename O>
std::enable_if_t< std::is_integral< O >::value &&std::is_unsigned< O >::value, bool > carla::opendrive::parser::TryGetParameter ( O & out,
M & parameters,
S && name )
static

Definition at line 91 of file GeoReferenceParser.cpp.

References TryGetParameter().

◆ TryGetParameter() [3/5]

template<typename M, typename S, typename O>
std::enable_if_t< std::is_floating_point< O >::value, bool > carla::opendrive::parser::TryGetParameter ( O & out,
M & parameters,
S && name )
static

Definition at line 79 of file GeoReferenceParser.cpp.

References TryGetParameter().

◆ TryGetParameter() [4/5]

template<typename S, typename O>
bool carla::opendrive::parser::TryGetParameter ( O & out,
std::unordered_map< std::string, double > & parameters,
S && name )
static

Definition at line 113 of file GeoReferenceParser.cpp.

References TryGetParameter().

◆ TryGetParameter() [5/5]