CARLA
Public Member Functions | Public Attributes | List of all members
carla::geom::GeoLocation Class Reference

#include <GeoLocation.h>

+ Collaboration diagram for carla::geom::GeoLocation:

Public Member Functions

 GeoLocation ()=default
 
 GeoLocation (double latitude, double longitude, double altitude)
 
 MSGPACK_DEFINE_ARRAY (latitude, longitude, altitude)
 
bool operator!= (const GeoLocation &rhs) const
 
bool operator== (const GeoLocation &rhs) const
 
GeoLocation Transform (const Location &location) const
 Transform the given location to a GeoLocation using this as geo-reference. More...
 

Public Attributes

double altitude = 0.0
 
double latitude = 0.0
 
double longitude = 0.0
 

Detailed Description

Definition at line 16 of file GeoLocation.h.

Constructor & Destructor Documentation

◆ GeoLocation() [1/2]

carla::geom::GeoLocation::GeoLocation ( )
default

◆ GeoLocation() [2/2]

carla::geom::GeoLocation::GeoLocation ( double  latitude,
double  longitude,
double  altitude 
)
inline

Definition at line 35 of file GeoLocation.h.

References Transform().

+ Here is the call graph for this function:

Member Function Documentation

◆ MSGPACK_DEFINE_ARRAY()

carla::geom::GeoLocation::MSGPACK_DEFINE_ARRAY ( latitude  ,
longitude  ,
altitude   
)

Referenced by operator!=().

+ Here is the caller graph for this function:

◆ operator!=()

bool carla::geom::GeoLocation::operator!= ( const GeoLocation rhs) const
inline

Definition at line 56 of file GeoLocation.h.

References MSGPACK_DEFINE_ARRAY().

+ Here is the call graph for this function:

◆ operator==()

bool carla::geom::GeoLocation::operator== ( const GeoLocation rhs) const
inline

Definition at line 52 of file GeoLocation.h.

References altitude, latitude, and longitude.

◆ Transform()

GeoLocation carla::geom::GeoLocation::Transform ( const Location location) const

Transform the given location to a GeoLocation using this as geo-reference.

Definition at line 66 of file GeoLocation.cpp.

References altitude, latitude, carla::geom::LatLonAddMeters(), longitude, carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.

Referenced by GeoLocation(), and AGnssSensor::PostPhysTick().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ altitude

double carla::geom::GeoLocation::altitude = 0.0

◆ latitude

double carla::geom::GeoLocation::latitude = 0.0

◆ longitude

double carla::geom::GeoLocation::longitude = 0.0

The documentation for this class was generated from the following files: