CARLA
Loading...
Searching...
No Matches
TaggerDelegate.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
7#include "TaggerDelegate.h"
8#include "Carla.h"
9#include "Game/Tagger.h"
10
11#include <util/ue-header-guard-begin.h>
12#include "Engine/World.h"
13#include <util/ue-header-guard-end.h>
14
16 ActorSpawnedDelegate(FOnActorSpawned::FDelegate::CreateUObject(this, &UTaggerDelegate::OnActorSpawned)) {}
17
19{
20 InWorld->AddOnActorSpawnedHandler(ActorSpawnedDelegate);
21}
22
24{
25 if (InActor != nullptr) {
27 }
28}
static void TagActor(const AActor &Actor, bool bTagForSemanticSegmentation)
Set the tag of an actor.
Definition Tagger.cpp:130
Used to tag every actor that is spawned into the world.
void OnActorSpawned(AActor *Actor)
FOnActorSpawned::FDelegate ActorSpawnedDelegate
bool bSemanticSegmentationEnabled
void RegisterSpawnHandler(UWorld *World)