CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Private 属性 | 所有成员列表
ATagger类 参考

根据语义分割设置 actor 的自定义深度模板值 到他们的网格中。 更多...

#include <Tagger.h>

+ 类 ATagger 继承关系图:
+ ATagger 的协作图:

Public 成员函数

 ATagger ()
 

静态 Public 成员函数

static FLinearColor GetActorLabelColor (const AActor &Actor, const crp::CityObjectLabel &Label)
 获得实例分割中参与者所标注的颜色
 
static crp::CityObjectLabel GetLabelByFolderName (const FString &String)
 计算文件夹路径对应的标签的方法
 
template<typename T >
static crp::CityObjectLabel GetLabelByPath (const T *Object)
 计算特定对象对应的 label 的方法 使用存储它的文件夹路径
 
static FString GetTagAsString (crp::CityObjectLabel Tag)
 检索已标记的角色的标记。CityObjectLabel::None 为 未添加到数组中。
 
static crp::CityObjectLabel GetTagOfTaggedComponent (const UPrimitiveComponent &Component)
 检索已标记组件的标记。
 
static void GetTagsOfTaggedActor (const AActor &Actor, TSet< crp::CityObjectLabel > &Tags)
 检索已标记的角色的标记。CityObjectLabel::None 为 未添加到数组中。
 
static bool IsThing (const crp::CityObjectLabel &Label)
 
static bool MatchComponent (const UPrimitiveComponent &Component, crp::CityObjectLabel Tag)
 如果 Component 已使用给定的 标记进行标记,则返回 true。
 
static void SetStencilValue (UPrimitiveComponent &Component, const crp::CityObjectLabel &Label, const bool bSetRenderCustomDepth)
 
static void TagActor (const AActor &Actor, bool bTagForSemanticSegmentation)
 设置角色的标签。
 
static void TagActorsInLevel (ULevel &Level, bool bTagForSemanticSegmentation)
 
static void TagActorsInLevel (UWorld &World, bool bTagForSemanticSegmentation)
 设置 level 中每个 actor 的标签。
 

Private 属性

bool bTagForSemanticSegmentation = false
 
bool bTriggerTagObjects = false
 

详细描述

根据语义分割设置 actor 的自定义深度模板值 到他们的网格中。

存在非静态函数,因此可以将其放入场景中进行测试 目的。

在文件 Tagger.h26 行定义.

构造及析构函数说明

◆ ATagger()

ATagger::ATagger ( )

在文件 Tagger.cpp300 行定义.

成员函数说明

◆ GetActorLabelColor()

FLinearColor ATagger::GetActorLabelColor ( const AActor & Actor,
const crp::CityObjectLabel & Label )
static

获得实例分割中参与者所标注的颜色

参数
Actor所需要判断显示颜色的参与者
Label
返回

在文件 Tagger.cpp86 行定义.

引用了 Actor , 以及 CastEnum().

被这些函数引用 TagActor().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ GetLabelByFolderName()

crp::CityObjectLabel ATagger::GetLabelByFolderName ( const FString & String)
static

计算文件夹路径对应的标签的方法

在文件 Tagger.cpp22 行定义.

引用了 String.

◆ GetLabelByPath()

template<typename T >
static crp::CityObjectLabel ATagger::GetLabelByPath ( const T * Object)
inlinestatic

计算特定对象对应的 label 的方法 使用存储它的文件夹路径

在文件 Tagger.h77 行定义.

被这些函数引用 TagActor().

+ 这是这个函数的调用关系图:

◆ GetTagAsString()

FString ATagger::GetTagAsString ( crp::CityObjectLabel Tag)
static

检索已标记的角色的标记。CityObjectLabel::None 为 未添加到数组中。

在文件 Tagger.cpp257 行定义.

引用了 CARLA_GET_LABEL_STR, Other , 以及 TrafficLight.

被这些函数引用 CarlaGetRelevantTagAsString(), UObjectRegister::RegisterTrafficLight() , 以及 TagActor().

+ 这是这个函数的调用关系图:

◆ GetTagOfTaggedComponent()

static crp::CityObjectLabel ATagger::GetTagOfTaggedComponent ( const UPrimitiveComponent & Component)
inlinestatic

◆ GetTagsOfTaggedActor()

void ATagger::GetTagsOfTaggedActor ( const AActor & Actor,
TSet< crp::CityObjectLabel > & Tags )
static

检索已标记的角色的标记。CityObjectLabel::None 为 未添加到数组中。

在文件 Tagger.cpp243 行定义.

引用了 Actor , 以及 GetTagOfTaggedComponent().

被这些函数引用 MakeCarlaActor().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ IsThing()

bool ATagger::IsThing ( const crp::CityObjectLabel & Label)
static

在文件 Tagger.cpp65 行定义.

◆ MatchComponent()

static bool ATagger::MatchComponent ( const UPrimitiveComponent & Component,
crp::CityObjectLabel Tag )
inlinestatic

如果 Component 已使用给定的 标记进行标记,则返回 true。

在文件 Tagger.h62 行定义.

被这些函数引用 LineTrace().

+ 这是这个函数的调用关系图:

◆ SetStencilValue()

void ATagger::SetStencilValue ( UPrimitiveComponent & Component,
const crp::CityObjectLabel & Label,
const bool bSetRenderCustomDepth )
static

在文件 Tagger.cpp55 行定义.

引用了 CastEnum().

被这些函数引用 TagActor().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ TagActor()

void ATagger::TagActor ( const AActor & Actor,
bool bTagForSemanticSegmentation )
static

设置角色的标签。

如果 bTagForSemanticSegmentation 为 true,则激活自定义深度通道。这 pass 是渲染语义分割所必需的。但是,它可能会 添加性能损失,因为遮挡似乎未应用于 具有 active 此值的对象。

在文件 Tagger.cpp106 行定义.

引用了 Actor, bTagForSemanticSegmentation, GetActorLabelColor(), GetLabelByPath(), GetTagAsString(), IsValid(), UTaggedComponent::SetColor(), SetStencilValue() , 以及 UE_LOG().

被这些函数引用 UTaggerDelegate::OnActorSpawned(), UActorDispatcher::SpawnActor(), TagActorsInLevel() , 以及 TagActorsInLevel().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ TagActorsInLevel() [1/2]

void ATagger::TagActorsInLevel ( ULevel & Level,
bool bTagForSemanticSegmentation )
static

在文件 Tagger.cpp236 行定义.

引用了 Actor, bTagForSemanticSegmentation , 以及 TagActor().

+ 函数调用图:

◆ TagActorsInLevel() [2/2]

void ATagger::TagActorsInLevel ( UWorld & World,
bool bTagForSemanticSegmentation )
static

设置 level 中每个 actor 的标签。

如果 bTagForSemanticSegmentation 为 true,则激活自定义深度通道。这 pass 是渲染语义分割所必需的。但是,它可能会 添加性能损失,因为遮挡似乎未应用于 具有 active 此值的对象。

在文件 Tagger.cpp229 行定义.

引用了 bTagForSemanticSegmentation, TagActor() , 以及 World.

被这些函数引用 ACarlaGameModeBase::BeginPlay(), ACityMapGenerator::GenerateRoadMap(), ALargeMapManager::OnLevelAddedToWorld() , 以及 ACarlaGameModeBase::OnLoadStreamLevel().

+ 函数调用图:
+ 这是这个函数的调用关系图:

类成员变量说明

◆ bTagForSemanticSegmentation

bool ATagger::bTagForSemanticSegmentation = false
private

在文件 Tagger.h105 行定义.

被这些函数引用 TagActor(), TagActorsInLevel() , 以及 TagActorsInLevel().

◆ bTriggerTagObjects

bool ATagger::bTriggerTagObjects = false
private

在文件 Tagger.h102 行定义.


该类的文档由以下文件生成: