17 const FObjectInitializer &ObjectInitializer)
18 : Super(ObjectInitializer)
21 TEXT(
"Material'/Carla/PostProcessingMaterials/PhysicLensDistortion.PhysicLensDistortion'"));
23 TEXT(
"Material'/Carla/PostProcessingMaterials/GTMaterial.GTMaterial'"));
28 Super::SetUpSceneCaptureComponent(SceneCapture);
32 SceneCapture.bRequiresSegmentationPass =
true;
38 Super::PostPhysTick(World, TickType, DeltaSeconds);
45 TArrayView<const FColor> Pixels,
46 FIntPoint Size) ->
bool
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
static FActorDefinition GetSensorDefinition()
ASemanticSegmentationCamera(const FObjectInitializer &ObjectInitializer)
void SetUpSceneCaptureComponent(USceneCaptureComponent2D &SceneCapture) override
static void SendDataToClient(SensorType &&Sensor, TArrayView< ElementType > SensorData, const FSensorCaptureContext &CaptureContext)
static FSensorCaptureContext MakeCaptureContext(const ASensor &Sensor)
Call on the game thread right after CaptureScene().
bool AreClientsListening()
bool AddPostProcessingMaterial(const FString &Path)
Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight.
static FActorDefinition MakeCameraDefinition(const FString &Id, bool bEnableModifyingPostProcessEffects=false)
bool ReadSensorImageDataAsyncFColor(AShaderBasedSensor &Sensor, ReadImageDataAsyncCallbackFColor &&Callback)
A definition of a Carla Actor with all the variation and attributes.