CARLA
Loading...
Searching...
No Matches
AGnssSensor Class Reference

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

#include <GnssSensor.h>

Inheritance diagram for AGnssSensor:

Public Member Functions

 AGnssSensor (const FObjectInitializer &ObjectInitializer)
float GetAltitudeBias () const
float GetAltitudeDeviation () const
double GetAltitudeValue () const
float GetLatitudeBias () const
float GetLatitudeDeviation () const
double GetLatitudeValue () const
float GetLongitudeBias () const
float GetLongitudeDeviation () const
double GetLongitudeValue () const
void GetMirrorState (carla::multigpu::SensorState &State) const override
 Multi-GPU: the runtime state this sensor starts its next tick from (noise generator, sweep angle, history).
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)
void SetMirrorState (const carla::multigpu::SensorState &State) override
Public Member Functions inherited from ASensor
bool AreClientsListening ()
 ASensor (const FObjectInitializer &ObjectInitializer)
void ClearReadyToTick ()
std::optional< FActorAttribute > GetAttribute (const FString Name)
const UCarlaEpisode & GetEpisode () const
URandomEngine * GetRandomEngine ()
float GetReadyToTickDeltaSeconds () const
int32 GetSeed () const
auto GetToken () const
 Return the token that allows subscribing to this sensor's stream.
bool IsReadyToTick () const
bool IsStreamReady ()
FDataStream MoveDataStream ()
virtual void OnFirstClientConnected ()
virtual void OnLastClientDisconnected ()
void PostPhysTickInternal (UWorld *World, ELevelTick TickType, float DeltaSeconds)
virtual void PrePhysTick (float DeltaSeconds)
void SetDataStream (FDataStream InStream)
 Replace the FDataStream associated with this sensor.
void SetEpisode (const UCarlaEpisode &InEpisode)
void SetPrimaryTick (float DeltaSeconds)
 Multi-GPU secondary: tick in this engine frame, with the primary's delta.
void SetSavingDataToDisk (bool bSavingData)
void SetSeed (int32 InSeed)
void Tick (const float DeltaTime) final

Static Public Member Functions

static FActorDefinition GetSensorDefinition ()
Static Public Member Functions inherited from ASensor
static FSensorCaptureContext MakeCaptureContext (const ASensor &Sensor)
 Call on the game thread right after CaptureScene().

Protected Member Functions

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

Private Attributes

float AltitudeBias
float AltitudeDeviation
double AltitudeValue
carla::geom::GeoProjection CurrentGeoProjection
float LatitudeBias
float LatitudeDeviation
double LatitudeValue
float LongitudeBias
float LongitudeDeviation
double LongitudeValue

Additional Inherited Members

Static Protected Member Functions inherited from ASensor
template<typename SensorType, typename ElementType>
static void SendDataToClient (SensorType &&Sensor, TArrayView< ElementType > SensorData, const FSensorCaptureContext &CaptureContext)
Protected Attributes inherited from ASensor
bool bIsActive = false
bool bSavingDataToDisk = false
URandomEngine * RandomEngine = nullptr
 Random Engine used to provide noise for sensor output.
int32 Seed = 123456789
 Seed of the pseudo-random engine.

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 19 of file GnssSensor.cpp.

References ASensor::RandomEngine.

Member Function Documentation

◆ BeginPlay()

void AGnssSensor::BeginPlay ( )
overrideprotectedvirtual

◆ GetAltitudeBias()

float AGnssSensor::GetAltitudeBias ( ) const

Definition at line 138 of file GnssSensor.cpp.

References AltitudeBias.

◆ GetAltitudeDeviation()

float AGnssSensor::GetAltitudeDeviation ( ) const

Definition at line 125 of file GnssSensor.cpp.

References AltitudeDeviation.

◆ GetAltitudeValue()

double AGnssSensor::GetAltitudeValue ( ) const

Definition at line 153 of file GnssSensor.cpp.

References AltitudeValue.

◆ GetLatitudeBias()

float AGnssSensor::GetLatitudeBias ( ) const

Definition at line 130 of file GnssSensor.cpp.

References LatitudeBias.

◆ GetLatitudeDeviation()

float AGnssSensor::GetLatitudeDeviation ( ) const

Definition at line 117 of file GnssSensor.cpp.

References LatitudeDeviation.

◆ GetLatitudeValue()

double AGnssSensor::GetLatitudeValue ( ) const

Definition at line 143 of file GnssSensor.cpp.

References LatitudeValue.

◆ GetLongitudeBias()

float AGnssSensor::GetLongitudeBias ( ) const

Definition at line 134 of file GnssSensor.cpp.

References LongitudeBias.

◆ GetLongitudeDeviation()

float AGnssSensor::GetLongitudeDeviation ( ) const

Definition at line 121 of file GnssSensor.cpp.

References LongitudeDeviation.

◆ GetLongitudeValue()

double AGnssSensor::GetLongitudeValue ( ) const

Definition at line 148 of file GnssSensor.cpp.

References LongitudeValue.

◆ GetMirrorState()

void AGnssSensor::GetMirrorState ( carla::multigpu::SensorState & State) const
overridevirtual

Multi-GPU: the runtime state this sensor starts its next tick from (noise generator, sweep angle, history).

Override only for sensors whose PostPhysTick runs whether or not anyone listens: the primary's sensor owns the state of a sensor computed by a secondary.

Reimplemented from ASensor.

Definition at line 166 of file GnssSensor.cpp.

References URandomEngine::GetState(), ASensor::RandomEngine, and State.

◆ GetSensorDefinition()

FActorDefinition AGnssSensor::GetSensorDefinition ( )
static

◆ PostPhysTick()

◆ Set()

void AGnssSensor::Set ( const FActorDescription & ActorDescription)
virtual

Reimplemented from ASensor.

Definition at line 31 of file GnssSensor.cpp.

References UActorBlueprintFunctionLibrary::SetGnss().

◆ SetAltitudeBias()

void AGnssSensor::SetAltitudeBias ( float Value)

Definition at line 112 of file GnssSensor.cpp.

References AltitudeBias.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

◆ SetAltitudeDeviation()

void AGnssSensor::SetAltitudeDeviation ( float Value)

Definition at line 97 of file GnssSensor.cpp.

References AltitudeDeviation.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

◆ SetLatitudeBias()

void AGnssSensor::SetLatitudeBias ( float Value)

Definition at line 102 of file GnssSensor.cpp.

References LatitudeBias.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

◆ SetLatitudeDeviation()

void AGnssSensor::SetLatitudeDeviation ( float Value)

Definition at line 87 of file GnssSensor.cpp.

References LatitudeDeviation.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

◆ SetLongitudeBias()

void AGnssSensor::SetLongitudeBias ( float Value)

Definition at line 107 of file GnssSensor.cpp.

References LongitudeBias.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

◆ SetLongitudeDeviation()

void AGnssSensor::SetLongitudeDeviation ( float Value)

Definition at line 92 of file GnssSensor.cpp.

References LongitudeDeviation.

Referenced by UActorBlueprintFunctionLibrary::SetGnss().

◆ SetMirrorState()

void AGnssSensor::SetMirrorState ( const carla::multigpu::SensorState & State)
overridevirtual

Reimplemented from ASensor.

Definition at line 174 of file GnssSensor.cpp.

References ASensor::RandomEngine, URandomEngine::SetState(), and State.

Member Data Documentation

◆ AltitudeBias

float AGnssSensor::AltitudeBias
private

Definition at line 76 of file GnssSensor.h.

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

◆ AltitudeDeviation

float AGnssSensor::AltitudeDeviation
private

Definition at line 72 of file GnssSensor.h.

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

◆ AltitudeValue

double AGnssSensor::AltitudeValue
private

Definition at line 80 of file GnssSensor.h.

Referenced by GetAltitudeValue(), and PostPhysTick().

◆ CurrentGeoProjection

carla::geom::GeoProjection AGnssSensor::CurrentGeoProjection
private

Definition at line 68 of file GnssSensor.h.

Referenced by BeginPlay(), and PostPhysTick().

◆ LatitudeBias

float AGnssSensor::LatitudeBias
private

Definition at line 74 of file GnssSensor.h.

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

◆ LatitudeDeviation

float AGnssSensor::LatitudeDeviation
private

Definition at line 70 of file GnssSensor.h.

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

◆ LatitudeValue

double AGnssSensor::LatitudeValue
private

Definition at line 78 of file GnssSensor.h.

Referenced by GetLatitudeValue(), and PostPhysTick().

◆ LongitudeBias

float AGnssSensor::LongitudeBias
private

Definition at line 75 of file GnssSensor.h.

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

◆ LongitudeDeviation

float AGnssSensor::LongitudeDeviation
private

Definition at line 71 of file GnssSensor.h.

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

◆ LongitudeValue

double AGnssSensor::LongitudeValue
private

Definition at line 79 of file GnssSensor.h.

Referenced by GetLongitudeValue(), and PostPhysTick().


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