CARLA
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
carla::geom Namespace Reference

Namespaces

namespace  deformation
 

Classes

struct  Acceleration
 Linear acceleration in metres per second squared. More...
 
struct  AngularVelocity
 Angular velocity in degrees per second. More...
 
class  BoundingBox
 
class  CubicPolynomial
 Describes a Cubic Polynomial so: f(x) = a + bx + cx^2 + dx^3. More...
 
class  Ellipsoid
 
class  GeoLocation
 
struct  GeoProjection
 
class  LambertConformalConicParams
 
struct  Location
 
class  Math
 
class  Mesh
 Mesh data container, validator and exporter. More...
 
class  MeshFactory
 Mesh helper generator. More...
 
struct  MeshMaterial
 Material that references the vertex index start and end of a mesh where it is affecting. More...
 
class  OffsetTransform
 
class  PointCloudRtree
 Rtree class working with 3D point clouds. More...
 
class  Quaternion
 Quaternion representing a 3D rotation, stored as (x, y, z, w). More...
 
struct  RightHandedRotation
 Euler angles of a rotation expressed in a right-handed frame, in degrees. More...
 
struct  RightHandedTransform
 A rigid transform expressed in a right-handed frame: x forward, y left, z up (ROS REP-103 "FLU"), metres and degrees. More...
 
struct  RightHandedVector3D
 Internal adapter that holds a Vector3D in a right-handed coordinate frame. More...
 
class  Rotation
 Euler angles of a rotation in CARLA's / Unreal's left-handed frame: x forward, y right, z up, degrees. More...
 
class  SegmentCloudRtree
 Rtree class working with 3D segment clouds. More...
 
class  Simplification
 
class  Transform
 A rigid transform in CARLA's / Unreal's left-handed frame: x forward, y right, z up, metres, with a Rotation in degrees. More...
 
class  TransverseMercatorParams
 
class  UniversalTransverseMercatorParams
 
struct  Vector2D
 
struct  Vector3D
 
class  Vector3DInt
 
struct  Velocity
 Linear velocity in metres per second. More...
 
struct  VertexInfo
 
struct  VertexNeighbors
 
struct  VertexWeight
 
class  WebMercatorParams
 

Typedefs

using ProjectionParams = boost::variant2::variant< TransverseMercatorParams, UniversalTransverseMercatorParams, WebMercatorParams, LambertConformalConicParams >
 

Enumerations

enum class  ProjectionType { TransverseMercator , UniversalTransverseMercator , WebMercator , LambertConformalConic }
 All the supported projection types. More...
 

Functions

static VertexWeight ComputeVertexWeight (const MeshFactory::RoadParameters &road_param, const VertexInfo &vertex_info, const VertexInfo &neighbor_info)
 
static double DegreesToRadians (double degrees)
 
std::vector< VertexNeighbors > GetVertexNeighborhoodAndWeights (const MeshFactory::RoadParameters &road_param, std::vector< std::unique_ptr< Mesh > > &lane_meshes)
 
constexpr bool operator!= (Location lhs, Location rhs)
 
Mesh operator+ (const Mesh &lhs, const Mesh &rhs)
 
std::ostream & operator<< (std::ostream &out, const Vector3D &vector3D)
 
constexpr bool operator== (Location lhs, Location rhs)
 
static double RadiansToDegrees (double radians)
 
static Location SwapHandedness (Location location)
 

Variables

static const std::unordered_map< std::string, std::pair< double, double > > custom_ellipsoids
 
static constexpr double 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 MESH_EPSILON = 50.0 * std::numeric_limits<double>::epsilon()
 

Typedef Documentation

◆ ProjectionParams

Definition at line 37 of file GeoProjection.h.

Enumeration Type Documentation

◆ ProjectionType

enum class carla::geom::ProjectionType
strong

All the supported projection types.

To add new ones, add them to this enum, create the parameters structure and the parser from geo to location (and viceversa).

Enumerator
TransverseMercator 
UniversalTransverseMercator 
WebMercator 
LambertConformalConic 

Definition at line 30 of file GeoProjection.h.

Function Documentation

◆ ComputeVertexWeight()

static VertexWeight carla::geom::ComputeVertexWeight ( const MeshFactory::RoadParameters &  road_param,
const VertexInfo &  vertex_info,
const VertexInfo &  neighbor_info 
)
static

◆ DegreesToRadians()

static double carla::geom::DegreesToRadians ( double  degrees)
static

◆ GetVertexNeighborhoodAndWeights()

std::vector< VertexNeighbors > carla::geom::GetVertexNeighborhoodAndWeights ( const MeshFactory::RoadParameters &  road_param,
std::vector< std::unique_ptr< Mesh > > &  lane_meshes 
)

◆ operator!=()

constexpr bool carla::geom::operator!= ( Location  lhs,
Location  rhs 
)
constexpr

Definition at line 117 of file geom/Location.h.

◆ operator+()

Mesh carla::geom::operator+ ( const Mesh &  lhs,
const Mesh &  rhs 
)

Definition at line 438 of file Mesh.cpp.

◆ operator<<()

std::ostream & carla::geom::operator<< ( std::ostream &  out,
const Vector3D &  vector3D 
)

◆ operator==()

constexpr bool carla::geom::operator== ( Location  lhs,
Location  rhs 
)
constexpr

Definition at line 113 of file geom/Location.h.

◆ RadiansToDegrees()

static double carla::geom::RadiansToDegrees ( double  radians)
static

◆ SwapHandedness()

static Location carla::geom::SwapHandedness ( Location  location)
static

Variable Documentation

◆ custom_ellipsoids

const std::unordered_map<std::string, std::pair<double,double> > carla::geom::custom_ellipsoids
static
Initial value:
= {
{"wgs84", {6378137.0, 298.257223563}},
{"grs80", {6378137.0, 298.257222101}},
{"intl", {6378388.0, 297.0}},
{"bessel", {6377397.155, 299.1528128}},
{"clrk66", {6378206.4, 294.9786982138}},
{"airy", {6377563.396, 299.3249646}},
{"wgs72", {6378135.0, 298.26}},
{"wgs66", {6378145.0, 298.25}},
{"sphere", {6370997.0, std::numeric_limits<double>::infinity()}}
}

Definition at line 20 of file GeoProjectionsParams.h.

◆ EPSILON

constexpr double carla::geom::EPSILON = 10.0 * std::numeric_limits<double>::epsilon()
staticconstexpr

◆ MESH_EPSILON

constexpr double carla::geom::MESH_EPSILON = 50.0 * std::numeric_limits<double>::epsilon()
staticconstexpr