CARLA
Loading...
Searching...
No Matches
carla::sensor::data::GnssMeasurement Class Reference

A change of GNSS Measurement. More...

#include <GnssMeasurement.h>

Inheritance diagram for carla::sensor::data::GnssMeasurement:

Public Member Functions

double GetAltitude () const
geom::GeoLocation GetGeoLocation () const
double GetLatitude () const
double GetLongitude () const
Public Member Functions inherited from carla::sensor::SensorData
size_t GetFrame () const
 Frame count when the data was generated.
const rpc::Transform & GetSensorTransform () const
 Sensor's transform when the data was generated.
double GetTimestamp () const
 Simulation-time when the data was generated.
virtual ~SensorData ()=default

Protected Types

using Serializer = s11n::GnssSerializer

Protected Member Functions

 GnssMeasurement (const RawData &&data)
Protected Member Functions inherited from carla::sensor::SensorData
const auto & GetEpisode () const
 SensorData (const RawData &data)
 SensorData (size_t frame, double timestamp, const rpc::Transform &sensor_transform)

Protected Attributes

friend Serializer

Private Types

using Super = SensorData

Private Attributes

geom::GeoLocation _geo_location

Detailed Description

A change of GNSS Measurement.

Definition at line 18 of file GnssMeasurement.h.

Member Typedef Documentation

◆ Serializer

◆ Super

Definition at line 20 of file GnssMeasurement.h.

Constructor & Destructor Documentation

◆ GnssMeasurement()

carla::sensor::data::GnssMeasurement::GnssMeasurement ( const RawData && data)
inlineexplicitprotected

Member Function Documentation

◆ GetAltitude()

double carla::sensor::data::GnssMeasurement::GetAltitude ( ) const
inline

Definition at line 50 of file GnssMeasurement.h.

References _geo_location, and carla::geom::GeoLocation::altitude.

◆ GetGeoLocation()

geom::GeoLocation carla::sensor::data::GnssMeasurement::GetGeoLocation ( ) const
inline

Definition at line 38 of file GnssMeasurement.h.

References _geo_location.

◆ GetLatitude()

double carla::sensor::data::GnssMeasurement::GetLatitude ( ) const
inline

Definition at line 46 of file GnssMeasurement.h.

References _geo_location, and carla::geom::GeoLocation::latitude.

◆ GetLongitude()

double carla::sensor::data::GnssMeasurement::GetLongitude ( ) const
inline

Definition at line 42 of file GnssMeasurement.h.

References _geo_location, and carla::geom::GeoLocation::longitude.

Member Data Documentation

◆ _geo_location

geom::GeoLocation carla::sensor::data::GnssMeasurement::_geo_location
private

◆ Serializer

Definition at line 26 of file GnssMeasurement.h.


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