CARLA
Loading...
Searching...
No Matches
carla::road::element Namespace Reference

Classes

struct  CrosswalkPoint
struct  DirectedPoint
class  Geometry
class  GeometryArc
class  GeometryLine
class  GeometryParamPoly3
class  GeometryPoly3
class  GeometrySpiral
class  LaneCrossingCalculator
struct  LaneMarking
class  RoadInfo
class  RoadInfoCrosswalk
class  RoadInfoElevation
class  RoadInfoGeometry
class  RoadInfoIterator
class  RoadInfoLaneAccess
 This record defines access restrictions for certain types of road users. More...
class  RoadInfoLaneBorder
 Instead of describing lanes by their width entries and, thus, invariably depending on influences of inner lanes on outer lanes, it might be more convenient to just describe the outer border of each lane independent of any inner lanes’ parameters. More...
class  RoadInfoLaneHeight
 The surface of a lane may be offset from the plane defined by the reference line and the corresponding elevation and crossfall entries (e.g. More...
class  RoadInfoLaneMaterial
class  RoadInfoLaneOffset
 The lane offset record defines a lateral shift of the lane reference line(which is usually identical to the road reference line). More...
class  RoadInfoLaneRule
 This record defines rules that can be applied to lanes to describe additonal properties not covered by the other attributes. More...
class  RoadInfoLaneVisibility
 Each lane within a road cross section may be provided with several entries defining the visibility in four directions relative to the lane’s direction. More...
class  RoadInfoLaneWidth
 Lane Width RecordEach lane within a road’scross section can be provided with severalwidth entries. More...
class  RoadInfoLateralShape
 One <lateralProfile><shape> record: at station s, the road surface height relative to the elevation profile is a cubic polynomial in (t - t_record), valid from t_record until the next record at the same station. More...
class  RoadInfoMarkRecord
 Each lane within a road cross section can be provided with several road markentries. More...
class  RoadInfoMarkTypeLine
class  RoadInfoSignal
class  RoadInfoSpeed
class  RoadInfoStencil
class  RoadInfoVisitor
struct  Waypoint

Enumerations

enum class  GeometryType : unsigned int {
  LINE , ARC , SPIRAL , POLY3 ,
  POLY3PARAM
}

Functions

static std::vector< LaneMarking > CrossingAtSameSection (const Map &map, const Waypoint *w0, const Waypoint *w1, const bool w0_is_offroad, const bool dest_is_at_right)
 Calculate the lane markings that need to be crossed from lane_id_origin to lane_id_destination.
static LaneMarking::Color GetColor (std::string str)
static LaneMarking::LaneChange GetLaneChange (RoadInfoMarkRecord::LaneChange lane_change, bool isRHT)
static LaneMarking::Type GetType (std::string str)
static bool IsOffRoad (const Map &map, const geom::Location &location)
template<typename T, typename Container>
static auto MakeRoadInfoIterator (const Container &c)
template<typename T, typename IT>
static auto MakeRoadInfoIterator (IT begin, IT end)
bool operator!= (const Waypoint &lhs, const Waypoint &rhs)
bool operator== (const Waypoint &lhs, const Waypoint &rhs)
geom::Vector2D RotatebyAngle (double angle, double x, double y)

Variables

static constexpr uint32_t FLAGS

Enumeration Type Documentation

◆ GeometryType

enum class carla::road::element::GeometryType : unsigned int
strong
Enumerator
LINE 
ARC 
SPIRAL 
POLY3 
POLY3PARAM 

Definition at line 18 of file carla/road/element/Geometry.h.

Function Documentation

◆ CrossingAtSameSection()

std::vector< LaneMarking > carla::road::element::CrossingAtSameSection ( const Map & map,
const Waypoint * w0,
const Waypoint * w1,
const bool w0_is_offroad,
const bool dest_is_at_right )
static

Calculate the lane markings that need to be crossed from lane_id_origin to lane_id_destination.

Definition at line 30 of file LaneCrossingCalculator.cpp.

References CrossingAtSameSection(), carla::road::Map::GetMarkRecord(), and carla::road::element::LaneMarking::LaneMarking().

Referenced by carla::road::element::LaneCrossingCalculator::Calculate(), and CrossingAtSameSection().

◆ GetColor()

◆ GetLaneChange()

◆ GetType()

◆ IsOffRoad()

bool carla::road::element::IsOffRoad ( const Map & map,
const geom::Location & location )
static

◆ MakeRoadInfoIterator() [1/2]

template<typename T, typename Container>
auto carla::road::element::MakeRoadInfoIterator ( const Container & c)
static

◆ MakeRoadInfoIterator() [2/2]

template<typename T, typename IT>
auto carla::road::element::MakeRoadInfoIterator ( IT begin,
IT end )
static

◆ operator!=()

bool carla::road::element::operator!= ( const Waypoint & lhs,
const Waypoint & rhs )
inline

Definition at line 60 of file road/element/Waypoint.h.

References operator!=(), and operator==().

Referenced by operator!=().

◆ operator==()

bool carla::road::element::operator== ( const Waypoint & lhs,
const Waypoint & rhs )
inline

Definition at line 55 of file road/element/Waypoint.h.

References operator==().

Referenced by operator!=(), and operator==().

◆ RotatebyAngle()

Variable Documentation

◆ FLAGS

uint32_t carla::road::element::FLAGS
staticconstexpr
Initial value:
Todo
Temporary flags to search lanes where we can find road marks. This needs to be expanded searching in shoulders too, but since shouders have a small width, they can cause problems while finding the nearest center of a lane given a location that are in a road, but very close to a shoulder.

Definition at line 22 of file LaneCrossingCalculator.cpp.

Referenced by carla::road::element::LaneCrossingCalculator::Calculate(), and IsOffRoad().