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) | |
| boost::optional< FActorAttribute > | GetAttribute (const FString Name) |
| const UCarlaEpisode & | GetEpisode () const |
| URandomEngine * | GetRandomEngine () |
| int32 | GetSeed () const |
| auto | GetToken () const |
| Return the token that allows subscribing to this sensor's stream. More... | |
| 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. 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... | |
| 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 | |
| bool | bIsActive = false |
| URandomEngine * | RandomEngine = nullptr |
| Random Engine used to provide noise for sensor output. More... | |
| int32 | Seed = 123456789 |
| Seed of the pseudo-random engine. More... | |
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 143 of file GnssSensor.cpp.
References CurrentGeoReference, UCarlaStatics::GetCurrentEpisode(), and UCarlaEpisode::GetGeoReference().
Here is the call graph for this function:| 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.
| 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.
| 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.
|
static |
Definition at line 26 of file GnssSensor.cpp.
References UActorBlueprintFunctionLibrary::MakeGnssDefinition().
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from ASensor.
Definition at line 37 of file GnssSensor.cpp.
References carla::geom::GeoLocation::altitude, AltitudeBias, AltitudeDeviation, CurrentGeoReference, carla::streaming::detail::token_type::get_stream_id(), ASensor::GetDataStream(), carla::ros2::ROS2::GetInstance(), UCarlaStatics::GetLargeMapManager(), URandomEngine::GetNormalDistribution(), FDataStreamTmpl< T >::GetSensorType(), ASensor::GetToken(), carla::geom::GeoLocation::latitude, LatitudeBias, LatitudeDeviation, ALargeMapManager::LocalToGlobalLocation(), carla::geom::GeoLocation::longitude, LongitudeBias, LongitudeDeviation, ASensor::RandomEngine, ASensor::Stream, and carla::geom::GeoLocation::Transform().
Here is the call graph for this function:
|
virtual |
Reimplemented from ASensor.
Definition at line 31 of file GnssSensor.cpp.
References UActorBlueprintFunctionLibrary::SetGnss().
Here is the call graph for this function:| void AGnssSensor::SetAltitudeBias | ( | float | Value | ) |
Definition at line 112 of file GnssSensor.cpp.
References AltitudeBias.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
Here is the caller graph for this function:| void AGnssSensor::SetAltitudeDeviation | ( | float | Value | ) |
Definition at line 97 of file GnssSensor.cpp.
References AltitudeDeviation.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
Here is the caller graph for this function:| void AGnssSensor::SetLatitudeBias | ( | float | Value | ) |
Definition at line 102 of file GnssSensor.cpp.
References LatitudeBias.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
Here is the caller graph for this function:| void AGnssSensor::SetLatitudeDeviation | ( | float | Value | ) |
Definition at line 87 of file GnssSensor.cpp.
References LatitudeDeviation.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
Here is the caller graph for this function:| void AGnssSensor::SetLongitudeBias | ( | float | Value | ) |
Definition at line 107 of file GnssSensor.cpp.
References LongitudeBias.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
Here is the caller graph for this function:| void AGnssSensor::SetLongitudeDeviation | ( | float | Value | ) |
Definition at line 92 of file GnssSensor.cpp.
References LongitudeDeviation.
Referenced by UActorBlueprintFunctionLibrary::SetGnss().
Here is the caller graph for this function:
|
private |
Definition at line 68 of file GnssSensor.h.
Referenced by GetAltitudeBias(), PostPhysTick(), and SetAltitudeBias().
|
private |
Definition at line 64 of file GnssSensor.h.
Referenced by GetAltitudeDeviation(), PostPhysTick(), and SetAltitudeDeviation().
|
private |
Definition at line 60 of file GnssSensor.h.
Referenced by BeginPlay(), and PostPhysTick().
|
private |
Definition at line 66 of file GnssSensor.h.
Referenced by GetLatitudeBias(), PostPhysTick(), and SetLatitudeBias().
|
private |
Definition at line 62 of file GnssSensor.h.
Referenced by GetLatitudeDeviation(), PostPhysTick(), and SetLatitudeDeviation().
|
private |
Definition at line 67 of file GnssSensor.h.
Referenced by GetLongitudeBias(), PostPhysTick(), and SetLongitudeBias().
|
private |
Definition at line 63 of file GnssSensor.h.
Referenced by GetLongitudeDeviation(), PostPhysTick(), and SetLongitudeDeviation().
1.8.13