|
CARLA
|
#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 "carla/road/element/RoadInfoStencil.h"#include <third-party/marchingcube/MeshReconstruction.h>#include <algorithm>#include <limits>#include <vector>#include <unordered_map>#include <unordered_set>#include <stdexcept>#include <chrono>#include <thread>#include <iomanip>#include <cmath>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::road |
Functions | |
| static std::unordered_set< RoadId > | carla::road::ComputeDuplicateTraceRoads (const Map &map, const std::unordered_set< RoadId > &candidate_ids) |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| static bool | carla::road::IsOrphanSliverRoad (const road::Road &road) |
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. | |
| static constexpr double | carla::road::TREE_PLACEMENT_EPSILON = 1.0e-4 |