|
CARLA
|
Gnss sensor representation The actual position calculation is done one server side. More...
#include <GnssSensor.h>
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. | |
Gnss sensor representation The actual position calculation is done one server side.
Definition at line 23 of file GnssSensor.h.
| AGnssSensor::AGnssSensor | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 19 of file GnssSensor.cpp.
References ASensor::RandomEngine.
|
overrideprotectedvirtual |
Reimplemented from ASensor.
Definition at line 158 of file GnssSensor.cpp.
References CurrentGeoProjection, UCarlaStatics::GetCurrentEpisode(), and UCarlaEpisode::GetGeoProjection().
| float AGnssSensor::GetAltitudeBias | ( | ) | const |
Definition at line 138 of file GnssSensor.cpp.
References AltitudeBias.
| float AGnssSensor::GetAltitudeDeviation | ( | ) | const |
Definition at line 125 of file GnssSensor.cpp.
References AltitudeDeviation.
| double AGnssSensor::GetAltitudeValue | ( | ) | const |
Definition at line 153 of file GnssSensor.cpp.
References AltitudeValue.
| float AGnssSensor::GetLatitudeBias | ( | ) | const |
Definition at line 130 of file GnssSensor.cpp.
References LatitudeBias.
| float AGnssSensor::GetLatitudeDeviation | ( | ) | const |
Definition at line 117 of file GnssSensor.cpp.
References LatitudeDeviation.
| double AGnssSensor::GetLatitudeValue | ( | ) | const |
Definition at line 143 of file GnssSensor.cpp.
References LatitudeValue.
| float AGnssSensor::GetLongitudeBias | ( | ) | const |
Definition at line 134 of file GnssSensor.cpp.
References LongitudeBias.
| float AGnssSensor::GetLongitudeDeviation | ( | ) | const |
Definition at line 121 of file GnssSensor.cpp.
References LongitudeDeviation.
| double AGnssSensor::GetLongitudeValue | ( | ) | const |
Definition at line 148 of file GnssSensor.cpp.
References LongitudeValue.
|
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.
|
static |
Definition at line 26 of file GnssSensor.cpp.
References UActorBlueprintFunctionLibrary::MakeGnssDefinition().
|
overridevirtual |
Reimplemented from ASensor.
Definition at line 37 of file GnssSensor.cpp.
References carla::geom::GeoLocation::altitude, AltitudeBias, AltitudeDeviation, AltitudeValue, CurrentGeoProjection, carla::streaming::detail::token_type::get_stream_id(), ASensor::GetDataStream(), carla::ros2::ROS2::GetInstance(), UCarlaStatics::GetLargeMapManager(), URandomEngine::GetNormalDistribution(), ASensor::GetToken(), carla::geom::GeoLocation::latitude, LatitudeBias, LatitudeDeviation, LatitudeValue, ALargeMapManager::LocalToGlobalLocation(), carla::geom::GeoLocation::longitude, LongitudeBias, LongitudeDeviation, LongitudeValue, PostPhysTick(), ASensor::RandomEngine, and carla::geom::GeoProjection::TransformToGeoLocation().
Referenced by PostPhysTick().
|
virtual |
Reimplemented from ASensor.
Definition at line 31 of file GnssSensor.cpp.
References UActorBlueprintFunctionLibrary::SetGnss().
| void AGnssSensor::SetAltitudeBias | ( | float | Value | ) |
Definition at line 112 of file GnssSensor.cpp.
References AltitudeBias.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
| void AGnssSensor::SetAltitudeDeviation | ( | float | Value | ) |
Definition at line 97 of file GnssSensor.cpp.
References AltitudeDeviation.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
| void AGnssSensor::SetLatitudeBias | ( | float | Value | ) |
Definition at line 102 of file GnssSensor.cpp.
References LatitudeBias.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
| void AGnssSensor::SetLatitudeDeviation | ( | float | Value | ) |
Definition at line 87 of file GnssSensor.cpp.
References LatitudeDeviation.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
| void AGnssSensor::SetLongitudeBias | ( | float | Value | ) |
Definition at line 107 of file GnssSensor.cpp.
References LongitudeBias.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
| void AGnssSensor::SetLongitudeDeviation | ( | float | Value | ) |
Definition at line 92 of file GnssSensor.cpp.
References LongitudeDeviation.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
|
overridevirtual |
Reimplemented from ASensor.
Definition at line 174 of file GnssSensor.cpp.
References ASensor::RandomEngine, URandomEngine::SetState(), and State.
|
private |
Definition at line 76 of file GnssSensor.h.
Referenced by GetAltitudeBias(), PostPhysTick(), and SetAltitudeBias().
|
private |
Definition at line 72 of file GnssSensor.h.
Referenced by GetAltitudeDeviation(), PostPhysTick(), and SetAltitudeDeviation().
|
private |
Definition at line 80 of file GnssSensor.h.
Referenced by GetAltitudeValue(), and PostPhysTick().
|
private |
Definition at line 68 of file GnssSensor.h.
Referenced by BeginPlay(), and PostPhysTick().
|
private |
Definition at line 74 of file GnssSensor.h.
Referenced by GetLatitudeBias(), PostPhysTick(), and SetLatitudeBias().
|
private |
Definition at line 70 of file GnssSensor.h.
Referenced by GetLatitudeDeviation(), PostPhysTick(), and SetLatitudeDeviation().
|
private |
Definition at line 78 of file GnssSensor.h.
Referenced by GetLatitudeValue(), and PostPhysTick().
|
private |
Definition at line 75 of file GnssSensor.h.
Referenced by GetLongitudeBias(), PostPhysTick(), and SetLongitudeBias().
|
private |
Definition at line 71 of file GnssSensor.h.
Referenced by GetLongitudeDeviation(), PostPhysTick(), and SetLongitudeDeviation().
|
private |
Definition at line 79 of file GnssSensor.h.
Referenced by GetLongitudeValue(), and PostPhysTick().