CARLA
SemanticSegmentationCamera.cpp
Go to the documentation of this file.
1 // Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #include "Carla.h"
9 
11 
13 {
14  return UActorBlueprintFunctionLibrary::MakeCameraDefinition(TEXT("semantic_segmentation"));
15 }
16 
18  const FObjectInitializer &ObjectInitializer)
19  : Super(ObjectInitializer)
20 {
22  TEXT("Material'/Carla/PostProcessingMaterials/PhysicLensDistortion.PhysicLensDistortion'"));
24  TEXT("Material'/Carla/PostProcessingMaterials/GTMaterial.GTMaterial'"));
25 }
26 
27 void ASemanticSegmentationCamera::PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
28 {
29  TRACE_CPUPROFILER_EVENT_SCOPE(ASemanticSegmentationCamera::PostPhysTick);
30  FPixelReader::SendPixelsInRenderThread<ASemanticSegmentationCamera, FColor>(*this);
31 }
ASemanticSegmentationCamera(const FObjectInitializer &ObjectInitializer)
static FActorDefinition GetSensorDefinition()
bool AddPostProcessingMaterial(const FString &Path)
Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight...
A definition of a Carla Actor with all the variation and attributes.
static FActorDefinition MakeCameraDefinition(const FString &Id, bool bEnableModifyingPostProcessEffects=false)
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override