CARLA
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
AGnssSensor Class Reference

Gnss sensor representation The actual position calculation is done one server side. More...

#include <GnssSensor.h>

+ Inheritance diagram for AGnssSensor:
+ Collaboration diagram for AGnssSensor:

Public Member Functions

 AGnssSensor (const FObjectInitializer &ObjectInitializer)
 
float GetAltitudeBias () const
 
float GetAltitudeDeviation () const
 
float GetLatitudeBias () const
 
float GetLatitudeDeviation () const
 
float GetLongitudeBias () const
 
float GetLongitudeDeviation () const
 
virtual void PostPhysTick (UWorld *World, ELevelTick TickType, float DeltaSeconds) override
 
void Set (const FActorDescription &ActorDescription)
 
void SetAltitudeBias (float Value)
 
void SetAltitudeDeviation (float Value)
 
void SetLatitudeBias (float Value)
 
void SetLatitudeDeviation (float Value)
 
void SetLongitudeBias (float Value)
 
void SetLongitudeDeviation (float Value)
 
- Public Member Functions inherited from ASensor
 ASensor (const FObjectInitializer &ObjectInitializer)
 
URandomEngineGetRandomEngine ()
 
int32 GetSeed () const
 
auto GetToken () const
 Return the token that allows subscribing to this sensor's stream. More...
 
FDataStream MoveDataStream ()
 
virtual void PrePhysTick (float DeltaSeconds)
 
void SetDataStream (FDataStream InStream)
 Replace the FDataStream associated with this sensor. More...
 
void SetEpisode (const UCarlaEpisode &InEpisode)
 
void SetSeed (int32 InSeed)
 
void Tick (const float DeltaTime) final
 

Static Public Member Functions

static FActorDefinition GetSensorDefinition ()
 

Protected Member Functions

virtual void BeginPlay () override
 
- Protected Member Functions inherited from ASensor
void EndPlay (EEndPlayReason::Type EndPlayReason) override
 
template<typename SensorT >
FAsyncDataStream GetDataStream (const SensorT &Self)
 Return the FDataStream associated with this sensor. More...
 
const UCarlaEpisodeGetEpisode () const
 
void PostActorCreated () override
 

Private Attributes

float AltitudeBias
 
float AltitudeDeviation
 
carla::geom::GeoLocation CurrentGeoReference
 
float LatitudeBias
 
float LatitudeDeviation
 
float LongitudeBias
 
float LongitudeDeviation
 

Additional Inherited Members

- Protected Attributes inherited from ASensor
URandomEngineRandomEngine = nullptr
 Random Engine used to provide noise for sensor output. More...
 
int32 Seed = 123456789
 Seed of the pseudo-random engine. More...
 

Detailed Description

Gnss sensor representation The actual position calculation is done one server side.

Definition at line 23 of file GnssSensor.h.

Constructor & Destructor Documentation

◆ AGnssSensor()

AGnssSensor::AGnssSensor ( const FObjectInitializer &  ObjectInitializer)

Definition at line 17 of file GnssSensor.cpp.

References ASensor::RandomEngine.

Member Function Documentation

◆ BeginPlay()

void AGnssSensor::BeginPlay ( )
overrideprotectedvirtual

Reimplemented from ASensor.

Definition at line 121 of file GnssSensor.cpp.

References CurrentGeoReference, UCarlaStatics::GetCurrentEpisode(), and UCarlaEpisode::GetGeoReference().

+ Here is the call graph for this function:

◆ GetAltitudeBias()

float AGnssSensor::GetAltitudeBias ( ) const

Definition at line 116 of file GnssSensor.cpp.

References AltitudeBias.

◆ GetAltitudeDeviation()

float AGnssSensor::GetAltitudeDeviation ( ) const

Definition at line 103 of file GnssSensor.cpp.

References AltitudeDeviation.

◆ GetLatitudeBias()

float AGnssSensor::GetLatitudeBias ( ) const

Definition at line 108 of file GnssSensor.cpp.

References LatitudeBias.

◆ GetLatitudeDeviation()

float AGnssSensor::GetLatitudeDeviation ( ) const

Definition at line 95 of file GnssSensor.cpp.

References LatitudeDeviation.

◆ GetLongitudeBias()

float AGnssSensor::GetLongitudeBias ( ) const

Definition at line 112 of file GnssSensor.cpp.

References LongitudeBias.

◆ GetLongitudeDeviation()

float AGnssSensor::GetLongitudeDeviation ( ) const

Definition at line 99 of file GnssSensor.cpp.

References LongitudeDeviation.

◆ GetSensorDefinition()

FActorDefinition AGnssSensor::GetSensorDefinition ( )
static

Definition at line 24 of file GnssSensor.cpp.

References UActorBlueprintFunctionLibrary::MakeGnssDefinition().

+ Here is the call graph for this function:

◆ PostPhysTick()

void AGnssSensor::PostPhysTick ( UWorld *  World,
ELevelTick  TickType,
float  DeltaSeconds 
)
overridevirtual

◆ Set()

void AGnssSensor::Set ( const FActorDescription ActorDescription)
virtual

Reimplemented from ASensor.

Definition at line 29 of file GnssSensor.cpp.

References UActorBlueprintFunctionLibrary::SetGnss().

+ Here is the call graph for this function:

◆ SetAltitudeBias()

void AGnssSensor::SetAltitudeBias ( float  Value)

Definition at line 90 of file GnssSensor.cpp.

References AltitudeBias.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

+ Here is the caller graph for this function:

◆ SetAltitudeDeviation()

void AGnssSensor::SetAltitudeDeviation ( float  Value)

Definition at line 75 of file GnssSensor.cpp.

References AltitudeDeviation.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

+ Here is the caller graph for this function:

◆ SetLatitudeBias()

void AGnssSensor::SetLatitudeBias ( float  Value)

Definition at line 80 of file GnssSensor.cpp.

References LatitudeBias.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

+ Here is the caller graph for this function:

◆ SetLatitudeDeviation()

void AGnssSensor::SetLatitudeDeviation ( float  Value)

Definition at line 65 of file GnssSensor.cpp.

References LatitudeDeviation.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

+ Here is the caller graph for this function:

◆ SetLongitudeBias()

void AGnssSensor::SetLongitudeBias ( float  Value)

Definition at line 85 of file GnssSensor.cpp.

References LongitudeBias.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

+ Here is the caller graph for this function:

◆ SetLongitudeDeviation()

void AGnssSensor::SetLongitudeDeviation ( float  Value)

Definition at line 70 of file GnssSensor.cpp.

References LongitudeDeviation.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

+ Here is the caller graph for this function:

Member Data Documentation

◆ AltitudeBias

float AGnssSensor::AltitudeBias
private

Definition at line 68 of file GnssSensor.h.

Referenced by GetAltitudeBias(), PostPhysTick(), and SetAltitudeBias().

◆ AltitudeDeviation

float AGnssSensor::AltitudeDeviation
private

Definition at line 64 of file GnssSensor.h.

Referenced by GetAltitudeDeviation(), PostPhysTick(), and SetAltitudeDeviation().

◆ CurrentGeoReference

carla::geom::GeoLocation AGnssSensor::CurrentGeoReference
private

Definition at line 60 of file GnssSensor.h.

Referenced by BeginPlay(), and PostPhysTick().

◆ LatitudeBias

float AGnssSensor::LatitudeBias
private

Definition at line 66 of file GnssSensor.h.

Referenced by GetLatitudeBias(), PostPhysTick(), and SetLatitudeBias().

◆ LatitudeDeviation

float AGnssSensor::LatitudeDeviation
private

Definition at line 62 of file GnssSensor.h.

Referenced by GetLatitudeDeviation(), PostPhysTick(), and SetLatitudeDeviation().

◆ LongitudeBias

float AGnssSensor::LongitudeBias
private

Definition at line 67 of file GnssSensor.h.

Referenced by GetLongitudeBias(), PostPhysTick(), and SetLongitudeBias().

◆ LongitudeDeviation

float AGnssSensor::LongitudeDeviation
private

Definition at line 63 of file GnssSensor.h.

Referenced by GetLongitudeDeviation(), PostPhysTick(), and SetLongitudeDeviation().


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