CARLA
Namespaces | Functions | Variables
road/Map.cpp File Reference
#include "carla/road/Map.h"
#include "carla/Exception.h"
#include "carla/geom/Math.h"
#include "carla/geom/Vector3D.h"
#include "carla/road/MeshFactory.h"
#include "carla/road/Deformation.h"
#include "carla/road/element/LaneCrossingCalculator.h"
#include "carla/road/element/RoadInfoCrosswalk.h"
#include "carla/road/element/RoadInfoElevation.h"
#include "carla/road/element/RoadInfoGeometry.h"
#include "carla/road/element/RoadInfoLaneOffset.h"
#include "carla/road/element/RoadInfoLaneWidth.h"
#include "carla/road/element/RoadInfoMarkRecord.h"
#include "carla/road/element/RoadInfoSpeed.h"
#include "carla/road/element/RoadInfoSignal.h"
#include "marchingcube/MeshReconstruction.h"
#include <vector>
#include <unordered_map>
#include <stdexcept>
#include <chrono>
#include <thread>
#include <iomanip>
#include <cmath>
+ Include dependency graph for road/Map.cpp:

Go to the source code of this file.

Namespaces

 carla
 This file contains definitions of common data structures used in traffic manager.
 
 carla::road
 

Functions

template<typename T >
static std::vector< T > carla::road::ConcatVectors (std::vector< T > dst, std::vector< T > src)
 
template<typename FuncT >
static void carla::road::ForEachDrivableLane (const Road &road, FuncT &&func)
 Return a waypoint for each drivable lane on each lane section of road. More...
 
template<typename FuncT >
static void carla::road::ForEachDrivableLaneAt (const Road &road, double distance, FuncT &&func)
 Return a waypoint for each drivable lane at distance on road. More...
 
template<typename FuncT >
static void carla::road::ForEachDrivableLaneImpl (RoadId road_id, const LaneSection &lane_section, double distance, FuncT &&func)
 Return a waypoint for each drivable lane on lane_section. More...
 
template<typename FuncT >
static void carla::road::ForEachLane (const Road &road, Lane::LaneType lane_type, FuncT &&func)
 Return a waypoint for each lane of the specified type on each lane section of road. More...
 
template<typename FuncT >
static void carla::road::ForEachLaneImpl (RoadId road_id, const LaneSection &lane_section, double distance, Lane::LaneType lane_type, FuncT &&func)
 
static double carla::road::GetDistanceAtEndOfLane (const Lane &lane)
 
static double carla::road::GetDistanceAtStartOfLane (const Lane &lane)
 
double carla::road::GetRemainingLength (const Lane &lane, double current_s)
 
static bool carla::road::IsLanePresent (const MapData &data, Waypoint waypoint)
 Assumes road_id and section_id are valid. More...
 

Variables

static constexpr double carla::road::EPSILON = 10.0 * std::numeric_limits<double>::epsilon()
 We use this epsilon to shift the waypoints away from the edges of the lane sections to avoid floating point precision errors. More...