CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
carla::geom::GeoLocation类 参考

#include <GeoLocation.h>

+ carla::geom::GeoLocation 的协作图:

Public 成员函数

 GeoLocation ()=default
 海拔,初始化为0.0。
 
 GeoLocation (double latitude, double longitude, double altitude)
 
 MSGPACK_DEFINE_ARRAY (latitude, longitude, altitude)
 不等于运算符:如果两个 GeoLocation 对象的纬度、经度或海拔不相等,则返回 true。
 
bool operator!= (const GeoLocation &rhs) const
 等于运算符:如果两个 GeoLocation 对象的纬度、经度和海拔都相等,则返回 true。
 
bool operator== (const GeoLocation &rhs) const
 
GeoLocation Transform (const Location &location) const
 使用此对象作为地理参考,将给定的 location 转换为 GeoLocation。
 

Public 属性

double altitude = 0.0
 经度,初始化为0.0。
 
double latitude = 0.0
 定义 GeoLocation 类,它是一个公开的成员。
 
double longitude = 0.0
 纬度,初始化为0.0。
 

详细描述

在文件 GeoLocation.h16 行定义.

构造及析构函数说明

◆ GeoLocation() [1/2]

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

海拔,初始化为0.0。

◆ GeoLocation() [2/2]

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

在文件 GeoLocation.h35 行定义.

成员函数说明

◆ MSGPACK_DEFINE_ARRAY()

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

不等于运算符:如果两个 GeoLocation 对象的纬度、经度或海拔不相等,则返回 true。

◆ operator!=()

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

等于运算符:如果两个 GeoLocation 对象的纬度、经度和海拔都相等,则返回 true。

在文件 GeoLocation.h56 行定义.

◆ operator==()

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

在文件 GeoLocation.h52 行定义.

引用了 altitude, latitude , 以及 longitude.

◆ Transform()

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

使用此对象作为地理参考,将给定的 location 转换为 GeoLocation。

在文件 GeoLocation.cpp65 行定义.

引用了 altitude, latitude, carla::geom::LatLonAddMeters(), longitude, carla::geom::Vector3D::x, carla::geom::Vector3D::y , 以及 carla::geom::Vector3D::z.

被这些函数引用 CaService::GetReferencePosition() , 以及 AGnssSensor::PostPhysTick().

+ 函数调用图:
+ 这是这个函数的调用关系图:

类成员变量说明

◆ altitude

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

◆ latitude

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

◆ longitude

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

该类的文档由以下文件生成: