#include <GeoLocation.h>
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 |
Definition at line 16 of file GeoLocation.h.
|
default |
|
inline |
Definition at line 35 of file GeoLocation.h.
References Transform().
|
inline |
Definition at line 56 of file GeoLocation.h.
References MSGPACK_DEFINE_ARRAY().
|
inline |
Definition at line 52 of file GeoLocation.h.
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().
double carla::geom::GeoLocation::altitude = 0.0 |
Definition at line 27 of file GeoLocation.h.
Referenced by carla::sensor::data::GnssMeasurement::GetAltitude(), operator==(), AGnssSensor::PostPhysTick(), carla::ros2::ROS2::ProcessDataFromGNSS(), and Transform().
double carla::geom::GeoLocation::latitude = 0.0 |
Definition at line 23 of file GeoLocation.h.
Referenced by carla::sensor::data::GnssMeasurement::GetLatitude(), operator==(), AGnssSensor::PostPhysTick(), carla::ros2::ROS2::ProcessDataFromGNSS(), and Transform().
double carla::geom::GeoLocation::longitude = 0.0 |
Definition at line 25 of file GeoLocation.h.
Referenced by carla::sensor::data::GnssMeasurement::GetLongitude(), operator==(), AGnssSensor::PostPhysTick(), carla::ros2::ROS2::ProcessDataFromGNSS(), and Transform().