CARLA
Loading...
Searching...
No Matches
GeoReferenceParser.cpp File Reference
#include "carla/opendrive/parser/GeoReferenceParser.h"
#include "carla/Logging.h"
#include "carla/StringUtil.h"
#include "carla/geom/GeoLocation.h"
#include "carla/geom/GeoProjection.h"
#include "carla/road/MapBuilder.h"
#include "carla/geom/Math.h"
#include <third-party/pugixml/pugixml.hpp>
#include <string>
#include <vector>
#include <regex>
#include <utility>
#include <cctype>
#include <stdexcept>

Go to the source code of this file.

Namespaces

namespace  carla
 This file contains definitions of common data structures used in traffic manager.
namespace  carla::opendrive
namespace  carla::opendrive::parser

Functions

static geom::GeoLocation carla::opendrive::parser::CreateDefaultGeoReference ()
static geom::GeoProjection carla::opendrive::parser::CreateDefaultProjection (geom::Ellipsoid ellipsoid)
static geom::Ellipsoid carla::opendrive::parser::CreateEllipsoid (std::unordered_map< std::string, std::string > parameters)
static geom::GeoProjection carla::opendrive::parser::CreateLambertConformalConicProjection (std::unordered_map< std::string, std::string > parameters, std::string proj_string, geom::Ellipsoid ellipsoid)
static geom::GeoLocation carla::opendrive::parser::CreateLambertConic2SPGeoReference (std::unordered_map< std::string, std::string > parameters)
static boost::optional< geom::OffsetTransform > carla::opendrive::parser::CreateOffsetTransform (std::unordered_map< std::string, double > &offset_parameters)
static geom::GeoLocation carla::opendrive::parser::CreateTransverseMercatorGeoReference (std::unordered_map< std::string, std::string > parameters)
static geom::GeoProjection carla::opendrive::parser::CreateTransverseMercatorProjection (std::unordered_map< std::string, std::string > parameters, std::string proj_string, geom::Ellipsoid ellipsoid)
static geom::GeoLocation carla::opendrive::parser::CreateUniversalTransverseMercatorGeoReference (std::unordered_map< std::string, std::string > parameters)
static geom::GeoProjection carla::opendrive::parser::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 carla::opendrive::parser::CreateWebMercatorGeoReference ()
static geom::GeoProjection carla::opendrive::parser::CreateWebMercatorProjection (std::string proj_string, geom::Ellipsoid ellipsoid)
static auto carla::opendrive::parser::ParseGeoProjectionAndReference (const std::string &proj_string, const pugi::xml_node &geo_offset)
static std::unordered_map< std::string, double > carla::opendrive::parser::ParseOffsetParameters (const pugi::xml_node &geo_offset)
static std::unordered_map< std::string, std::string > carla::opendrive::parser::ParseProjectionParameters (const std::string &s)
template<typename S>
static std::string carla::opendrive::parser::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 > carla::opendrive::parser::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 > carla::opendrive::parser::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 > carla::opendrive::parser::TryGetParameter (O &out, M &parameters, S &&name)
template<typename S, typename O>
static bool carla::opendrive::parser::TryGetParameter (O &out, std::unordered_map< std::string, double > &parameters, S &&name)
template<typename M, typename S>
static bool carla::opendrive::parser::TryGetParameter (std::string &out, M &parameters, S &&name)