Base class for sensors. 更多...
#include <Sensor.h>
Public 成员函数 | |
ASensor (const FObjectInitializer &ObjectInitializer) | |
virtual void | BeginPlay () |
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. | |
bool | IsStreamReady () |
FDataStream | MoveDataStream () |
virtual void | OnFirstClientConnected () |
virtual void | OnLastClientDisconnected () |
virtual void | PostPhysTick (UWorld *World, ELevelTick TickType, float DeltaSeconds) |
void | PostPhysTickInternal (UWorld *World, ELevelTick TickType, float DeltaSeconds) |
virtual void | PrePhysTick (float DeltaSeconds) |
virtual void | Set (const FActorDescription &Description) |
void | SetDataStream (FDataStream InStream) |
Replace the FDataStream associated with this sensor. | |
void | SetEpisode (const UCarlaEpisode &InEpisode) |
void | SetSeed (int32 InSeed) |
void | Tick (const float DeltaTime) final |
Protected 成员函数 | |
void | EndPlay (EEndPlayReason::Type EndPlayReason) override |
template<typename SensorT > | |
FAsyncDataStream | GetDataStream (const SensorT &Self) |
Return the FDataStream associated with this sensor. | |
void | PostActorCreated () override |
Protected 属性 | |
bool | bIsActive = false |
URandomEngine * | RandomEngine = nullptr |
Random Engine used to provide noise for sensor output. | |
int32 | Seed = 123456789 |
Seed of the pseudo-random engine. | |
Private 属性 | |
bool | bClientsListening = false |
const UCarlaEpisode * | Episode = nullptr |
FDelegateHandle | OnPostTickDelegate |
bool | ReadyToTick = false |
Allows the sensor to tick with the tick rate from UE4. | |
FActorDescription | SensorDescription |
FDataStream | Stream |
Base class for sensors.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 23 行定义.
ASensor::ASensor | ( | const FObjectInitializer & | ObjectInitializer | ) |
在文件 Sensor.cpp 第 17 行定义.
|
virtual |
被 AGnssSensor, AInertialMeasurementUnit, ARadar, ASceneCaptureCamera , 以及 ASceneCaptureSensor 重载.
在文件 Sensor.cpp 第 27 行定义.
引用了 Episode, UCarlaStatics::GetCurrentEpisode(), UCarlaEpisode::GetSensorManager() , 以及 FSensorManager::RegisterSensor().
|
overrideprotected |
在文件 Sensor.cpp 第 113 行定义.
引用了 FSensorManager::DeRegisterSensor(), Episode, carla::streaming::detail::token_type::get_stream_id(), UCarlaStatics::GetCurrentEpisode(), GetEpisode(), UCarlaStatics::GetGameInstance(), UCarlaEpisode::GetSensorManager(), FDataStreamTmpl< T >::GetToken() , 以及 Stream.
boost::optional< FActorAttribute > ASensor::GetAttribute | ( | const FString | Name | ) |
在文件 Sensor.cpp 第 49 行定义.
引用了 SensorDescription , 以及 FActorDescription::Variations.
被这些函数引用 ADVSCamera::PostPhysTick().
|
inlineprotected |
Return the FDataStream associated with this sensor.
You need to provide a reference to self, this is necessary for template deduction.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 110 行定义.
被这些函数引用 ACollisionSensor::OnCollisionEvent(), AObstacleDetectionSensor::OnObstacleDetectionEvent(), AGnssSensor::PostPhysTick(), ARayCastLidar::PostPhysTick(), ACustomV2XSensor::PostPhysTick(), ADVSCamera::PostPhysTick(), AInertialMeasurementUnit::PostPhysTick(), ARadar::PostPhysTick(), ARayCastSemanticLidar::PostPhysTick() , 以及 AV2XSensor::PostPhysTick().
|
inline |
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 93 行定义.
被这些函数引用 ASceneCaptureSensor::BeginPlay(), ARayCastSemanticLidar::ComputeRawDetection(), EndPlay(), ACollisionSensor::OnCollisionEvent(), AObstacleDetectionSensor::OnObstacleDetectionEvent() , 以及 ADVSCamera::Simulation().
|
inline |
|
inline |
|
inline |
Return the token that allows subscribing to this sensor's stream.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 56 行定义.
被这些函数引用 FActorRegistry::GetDescriptionFromStream(), ACollisionSensor::OnCollisionEvent(), AObstacleDetectionSensor::OnObstacleDetectionEvent(), AGnssSensor::PostPhysTick(), ARayCastLidar::PostPhysTick(), ADVSCamera::PostPhysTick(), AInertialMeasurementUnit::PostPhysTick(), ARadar::PostPhysTick() , 以及 ARayCastSemanticLidar::PostPhysTick().
|
inline |
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 61 行定义.
被这些函数引用 AObstacleDetectionSensor::OnObstacleDetectionEvent().
|
inline |
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 50 行定义.
被这些函数引用 FActorSensorData::RecordActorData().
|
inlinevirtual |
被 ASceneCaptureCamera 重载.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 71 行定义.
被这些函数引用 Tick().
|
inlinevirtual |
被 ASceneCaptureCamera 重载.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 73 行定义.
被这些函数引用 Tick().
|
overrideprotected |
在文件 Sensor.cpp 第 94 行定义.
|
inlinevirtual |
被 ADepthCamera, AGnssSensor, AInstanceSegmentationCamera, ANormalsCamera, AObstacleDetectionSensor, AOpticalFlowCamera, ASceneCaptureCamera, ASemanticSegmentationCamera, ARayCastLidar, ACustomV2XSensor, ADVSCamera, AInertialMeasurementUnit, ARadar, ARayCastSemanticLidar, ASceneCaptureSensor , 以及 AV2XSensor 重载.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 69 行定义.
被这些函数引用 PostPhysTickInternal().
void ASensor::PostPhysTickInternal | ( | UWorld * | World, |
ELevelTick | TickType, | ||
float | DeltaSeconds ) |
在文件 Sensor.cpp 第 131 行定义.
引用了 PostPhysTick(), PostPhysTickInternal() , 以及 ReadyToTick.
被这些函数引用 PostPhysTickInternal().
|
inlinevirtual |
被 ACollisionSensor, ACustomV2XSensor, ASceneCaptureSensor , 以及 AV2XSensor 重载.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 68 行定义.
被这些函数引用 Tick().
|
virtual |
被 AGnssSensor, ACustomV2XSensor, ADVSCamera, AInertialMeasurementUnit, ASceneCaptureSensor, AShaderBasedSensor, AV2XSensor, AObstacleDetectionSensor, ARadar, ARayCastLidar , 以及 ARayCastSemanticLidar 重载.
在文件 Sensor.cpp 第 35 行定义.
引用了 UActorBlueprintFunctionLibrary::ActorAttributeToFloat(), SensorDescription , 以及 FActorDescription::Variations.
被这些函数引用 ARayCastLidar::Set().
|
inline |
Replace the FDataStream associated with this sensor.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 45 行定义.
被这些函数引用 FActorSensorData::RestoreActorData().
|
inline |
void ASensor::SetSeed | ( | int32 | InSeed | ) |
在文件 Sensor.cpp 第 87 行定义.
引用了 RandomEngine, Seed , 以及 URandomEngine::Seed().
被这些函数引用 ARayCastLidar::ARayCastLidar(), UActorBlueprintFunctionLibrary::SetCustomV2X(), UActorBlueprintFunctionLibrary::SetGnss(), UActorBlueprintFunctionLibrary::SetIMU() , 以及 UActorBlueprintFunctionLibrary::SetV2X().
|
final |
在文件 Sensor.cpp 第 59 行定义.
引用了 FDataStreamTmpl< T >::AreClientsListening(), bClientsListening, OnFirstClientConnected(), OnLastClientDisconnected(), PrePhysTick(), ReadyToTick, Stream , 以及 Tick().
被这些函数引用 Tick().
|
private |
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 139 行定义.
被这些函数引用 Tick().
|
protected |
|
private |
|
private |
|
protected |
Random Engine used to provide noise for sensor output.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 121 行定义.
被这些函数引用 ACustomV2XSensor::ACustomV2XSensor(), ADVSCamera::ADVSCamera(), AGnssSensor::AGnssSensor(), AInertialMeasurementUnit::AInertialMeasurementUnit(), ARadar::ARadar(), ARayCastLidar::ARayCastLidar(), AV2XSensor::AV2XSensor(), AInertialMeasurementUnit::ComputeAccelerometerNoise(), AInertialMeasurementUnit::ComputeGyroscopeNoise(), AGnssSensor::PostPhysTick(), ARayCastLidar::PostprocessDetection(), ARayCastLidar::PreprocessRays(), ARadar::SendLineTraces(), SetSeed() , 以及 ADVSCamera::Simulation().
|
private |
Allows the sensor to tick with the tick rate from UE4.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 137 行定义.
被这些函数引用 PostPhysTickInternal() , 以及 Tick().
|
protected |
Seed of the pseudo-random engine.
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 117 行定义.
被这些函数引用 SetSeed().
|
private |
在文件 Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h 第 132 行定义.
被这些函数引用 GetAttribute() , 以及 Set().
|
private |