CARLA
Loading...
Searching...
No Matches
SceneCaptureCamera_WideAngleLens.cpp
Go to the documentation of this file.
1// Copyright (c) 2026 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
8#include "Carla.h"
10
12
14
16{
17 constexpr bool bEnableModifyingPostProcessEffects = true;
19 TEXT("rgb"),
20 bEnableModifyingPostProcessEffects);
21}
22
24 : Super(ObjectInitializer)
25{
26 Super::SetCubemapSampler(CameraModelUtil::GetSampler(ESamplerFilter::SF_AnisotropicLinear));
27
29}
30
32{
33 Super::BeginPlay();
34}
35
39
43
44void ASceneCaptureCamera_WideAngleLens::EndPlay(const EEndPlayReason::Type EndPlayReason)
45{
46 Super::EndPlay(EndPlayReason);
47}
48
49void ASceneCaptureCamera_WideAngleLens::PostPhysTick(UWorld* World, ELevelTick TickType, float DeltaSeconds)
50{
51 TRACE_CPUPROFILER_EVENT_SCOPE(ASceneCaptureCamera_WideAngleLens::PostPhysTick);
52 // Skip the whole 6-face capture + compute + readback pipeline when no
53 // client is subscribed.
55 return;
57}
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
void EndPlay(const EEndPlayReason::Type EndPlayReason) override
ASceneCaptureCamera_WideAngleLens(const FObjectInitializer &ObjectInitializer)
static void CaptureAndSendToClient(TSensor &Sensor)
Capture the six faces, project them into the lens, and deliver the image through ImageUtil's per-tick...
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.