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

#include <OpenDriveActor.h>

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

Public 成员函数

void AddSpawners ()
 
 AOpenDriveActor (const FObjectInitializer &ObjectInitializer)
 
void BuildRoutes ()
 
void BuildRoutes (FString MapName)
 
void DebugRoutes () const
 
void RemoveDebugRoutes () const
 
void RemoveRoutes ()
 Remove all the existing ARoutePlanner and VehicleSpawners previously generated by this class to avoid overlapping
 
void RemoveSpawners ()
 

Public 属性

TArray< ARoutePlanner * > RoutePlanners
 

Protected 属性

UBillboardComponent * SpriteComponent
 A UBillboardComponent to hold Icon sprite
 
UTexture2D * SpriteTexture
 Sprite for the Billboard Component
 

Private 属性

bool bAddSpawners = false
 If true, spawners will be placed when generating the routes
 
bool bOnIntersections = false
 If true, spawners will be placed on junctions too
 
float RoadAccuracy = 2.f
 Distance between waypoints where the cars will drive
 
float SpawnersHeight = 300.f
 Determine the height where the spawners will be placed, relative to each RoutePlanner
 
float TriggersHeight = 100.f
 Trigger elevantion
 
TArray< AVehicleSpawnPoint * > VehicleSpawners
 

详细描述

在文件 OpenDriveActor.h22 行定义.

构造及析构函数说明

◆ AOpenDriveActor()

AOpenDriveActor::AOpenDriveActor ( const FObjectInitializer & ObjectInitializer)

在文件 OpenDriveActor.cpp30 行定义.

引用了 SpriteComponent.

成员函数说明

◆ AddSpawners()

void AOpenDriveActor::AddSpawners ( )

在文件 OpenDriveActor.cpp275 行定义.

引用了 bOnIntersections, RoutePlanners, SpawnersHeight , 以及 VehicleSpawners.

◆ BuildRoutes() [1/2]

void AOpenDriveActor::BuildRoutes ( )

在文件 OpenDriveActor.cpp136 行定义.

引用了 BuildRoutes().

被这些函数引用 BuildRoutes().

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

◆ BuildRoutes() [2/2]

void AOpenDriveActor::BuildRoutes ( FString MapName)

在文件 OpenDriveActor.cpp141 行定义.

引用了 ARoutePlanner::AddRoute(), ARoutePlanner::bIsIntersection, carla::opendrive::OpenDriveParser::Load(), UOpenDrive::LoadXODR(), RoadAccuracy, RoutePlanners, ARoutePlanner::SetBoxExtent() , 以及 TriggersHeight.

+ 函数调用图:

◆ DebugRoutes()

void AOpenDriveActor::DebugRoutes ( ) const

在文件 OpenDriveActor.cpp257 行定义.

引用了 RoutePlanners.

◆ RemoveDebugRoutes()

void AOpenDriveActor::RemoveDebugRoutes ( ) const

在文件 OpenDriveActor.cpp268 行定义.

◆ RemoveRoutes()

void AOpenDriveActor::RemoveRoutes ( )

Remove all the existing ARoutePlanner and VehicleSpawners previously generated by this class to avoid overlapping

在文件 OpenDriveActor.cpp244 行定义.

引用了 RoutePlanners.

◆ RemoveSpawners()

void AOpenDriveActor::RemoveSpawners ( )

在文件 OpenDriveActor.cpp297 行定义.

引用了 VehicleSpawners.

类成员变量说明

◆ bAddSpawners

bool AOpenDriveActor::bAddSpawners = false
private

If true, spawners will be placed when generating the routes

在文件 OpenDriveActor.h63 行定义.

◆ bOnIntersections

bool AOpenDriveActor::bOnIntersections = false
private

If true, spawners will be placed on junctions too

在文件 OpenDriveActor.h67 行定义.

被这些函数引用 AddSpawners().

◆ RoadAccuracy

float AOpenDriveActor::RoadAccuracy = 2.f
private

Distance between waypoints where the cars will drive

在文件 OpenDriveActor.h48 行定义.

被这些函数引用 BuildRoutes().

◆ RoutePlanners

TArray<ARoutePlanner *> AOpenDriveActor::RoutePlanners

在文件 OpenDriveActor.h112 行定义.

被这些函数引用 AddSpawners(), BuildRoutes(), DebugRoutes() , 以及 RemoveRoutes().

◆ SpawnersHeight

float AOpenDriveActor::SpawnersHeight = 300.f
private

Determine the height where the spawners will be placed, relative to each RoutePlanner

在文件 OpenDriveActor.h72 行定义.

被这些函数引用 AddSpawners().

◆ SpriteComponent

UBillboardComponent* AOpenDriveActor::SpriteComponent
protected

A UBillboardComponent to hold Icon sprite

在文件 OpenDriveActor.h29 行定义.

被这些函数引用 AOpenDriveActor().

◆ SpriteTexture

UTexture2D* AOpenDriveActor::SpriteTexture
protected

Sprite for the Billboard Component

在文件 OpenDriveActor.h32 行定义.

◆ TriggersHeight

float AOpenDriveActor::TriggersHeight = 100.f
private

Trigger elevantion

在文件 OpenDriveActor.h52 行定义.

被这些函数引用 BuildRoutes().

◆ VehicleSpawners

TArray<AVehicleSpawnPoint *> AOpenDriveActor::VehicleSpawners
private

在文件 OpenDriveActor.h37 行定义.

被这些函数引用 AddSpawners() , 以及 RemoveSpawners().


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