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 
15 {
16  return UActorBlueprintFunctionLibrary::MakeCameraDefinition(TEXT("semantic_segmentation"));
17 }
18 
20  const FObjectInitializer &ObjectInitializer)
21  : Super(ObjectInitializer)
22 {
24  TEXT("Material'/Carla/PostProcessingMaterials/PhysicLensDistortion.PhysicLensDistortion'"));
26  TEXT("Material'/Carla/PostProcessingMaterials/GTMaterial.GTMaterial'"));
27 }
28 
29 void ASemanticSegmentationCamera::PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
30 {
31  TRACE_CPUPROFILER_EVENT_SCOPE(ASemanticSegmentationCamera::PostPhysTick);
32  FPixelReader::SendPixelsInRenderThread<ASemanticSegmentationCamera, FColor>(*this);
33 }
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