17 TEXT(
"instance_segmentation"));
21 const FObjectInitializer &ObjectInitializer)
22 : Super(ObjectInitializer)
27 TEXT(
"Material'/Game/Carla/PostProcessMaterials/M_InstanceSegmentationSensorMaterial'"));
31 TArrayView<USceneCaptureComponent2D_CARLA*> SceneCaptures)
33 Super::SetUpSceneCaptureComponents(SceneCaptures);
38 for (
auto SceneCapture : SceneCaptures)
39 if (SceneCapture !=
nullptr)
40 SceneCapture->bRequiresSegmentationPass =
true;
44 UWorld *World, ELevelTick TickType,
float DeltaSeconds)
void SetUpSceneCaptureComponents(TArrayView< USceneCaptureComponent2D_CARLA * > SceneCaptures) override
static FActorDefinition GetSensorDefinition()
AInstanceSegmentationCamera_WideAngleLens(const FObjectInitializer &ObjectInitializer)
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
static void CaptureAndSendToClient(TSensor &Sensor)
Capture the six faces, project them into the lens, and deliver the image through ImageUtil's per-tick...
bool AreClientsListening()
bool AddPostProcessingMaterial(const FString &Path)
static FActorDefinition MakeWideAngleLensCameraDefinition(const FString &Id, bool bEnableModifyingPostProcessEffects=false)
FRHISamplerState * GetSampler(ESamplerFilter Filter)
A definition of a Carla Actor with all the variation and attributes.