CARLA
DepthCamera.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 {
17 }
18 
19 ADepthCamera::ADepthCamera(const FObjectInitializer &ObjectInitializer)
20  : Super(ObjectInitializer)
21 {
23  TEXT("Material'/Carla/PostProcessingMaterials/PhysicLensDistortion.PhysicLensDistortion'"));
25 #if PLATFORM_LINUX
26  TEXT("Material'/Carla/PostProcessingMaterials/DepthEffectMaterial_GLSL.DepthEffectMaterial_GLSL'")
27 #else
28  TEXT("Material'/Carla/PostProcessingMaterials/DepthEffectMaterial.DepthEffectMaterial'")
29 #endif
30  );
31 }
32 
33 void ADepthCamera::PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
34 {
35  TRACE_CPUPROFILER_EVENT_SCOPE(ADepthCamera::PostPhysTick);
36  FPixelReader::SendPixelsInRenderThread<ADepthCamera, FColor>(*this);
37 }
static FActorDefinition GetSensorDefinition()
Definition: DepthCamera.cpp:14
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.
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
Definition: DepthCamera.cpp:33
ADepthCamera(const FObjectInitializer &ObjectInitializer)
Definition: DepthCamera.cpp:19
static FActorDefinition MakeCameraDefinition(const FString &Id, bool bEnableModifyingPostProcessEffects=false)