#include <OpenDriveGenerator.h>
Public 成员函数 | |
AOpenDriveGenerator (const FObjectInitializer &ObjectInitializer) | |
void | GenerateAll () |
void | GeneratePoles () |
Generates pole meshes based on the OpenDRIVE information. | |
void | GenerateRoadMesh () |
Generates the road and sidewalk mesh based on the OpenDRIVE information. | |
void | GenerateSpawnPoints () |
Generates spawn points along the road. | |
const FString & | GetOpenDrive () const |
Get the OpenDRIVE information as string. | |
bool | IsOpenDriveValid () const |
Checks if the OpenDrive has been loaded and it's valid. | |
bool | LoadOpenDrive (const FString &OpenDrive) |
Set the OpenDRIVE information as string and generates the queryable map structure. | |
Protected 成员函数 | |
virtual void | BeginPlay () override |
Protected 属性 | |
TArray< AActor * > | ActorMeshList |
FString | OpenDriveData |
float | SpawnersHeight = 300.f |
Determine the height where the spawners will be placed, relative to each RoutePlanner | |
TArray< AVehicleSpawnPoint * > | VehicleSpawners |
在文件 OpenDriveGenerator.h 第 33 行定义.
AOpenDriveGenerator::AOpenDriveGenerator | ( | const FObjectInitializer & | ObjectInitializer | ) |
在文件 OpenDriveGenerator.cpp 第 28 行定义.
|
overrideprotectedvirtual |
在文件 OpenDriveGenerator.cpp 第 168 行定义.
引用了 GenerateAll(), UOpenDrive::GetXODR() , 以及 LoadOpenDrive().
void AOpenDriveGenerator::GenerateAll | ( | ) |
在文件 OpenDriveGenerator.cpp 第 161 行定义.
引用了 GeneratePoles(), GenerateRoadMesh() , 以及 GenerateSpawnPoints().
被这些函数引用 BeginPlay().
void AOpenDriveGenerator::GeneratePoles | ( | ) |
Generates pole meshes based on the OpenDRIVE information.
TODO: To implement
在文件 OpenDriveGenerator.cpp 第 132 行定义.
引用了 IsOpenDriveValid().
被这些函数引用 GenerateAll().
void AOpenDriveGenerator::GenerateRoadMesh | ( | ) |
Generates the road and sidewalk mesh based on the OpenDRIVE information.
在文件 OpenDriveGenerator.cpp 第 61 行定义.
引用了 ActorMeshList, carla::rpc::OpendriveGenerationParameters::enable_mesh_visibility, UCarlaStatics::GetGameInstance(), UCarlaStatics::GetGameMode(), ACarlaGameModeBase::GetMap(), UCarlaGameInstance::GetOpendriveGenerationParameters(), IsOpenDriveValid(), carla::log_warning(), AProceduralMeshActor::MeshComponent, FProceduralCustomMesh::Normals, FProceduralCustomMesh::Triangles , 以及 FProceduralCustomMesh::Vertices.
被这些函数引用 GenerateAll().
void AOpenDriveGenerator::GenerateSpawnPoints | ( | ) |
Generates spawn points along the road.
在文件 OpenDriveGenerator.cpp 第 142 行定义.
引用了 UCarlaStatics::GetGameMode(), ACarlaGameModeBase::GetMap(), IsOpenDriveValid(), SpawnersHeight , 以及 VehicleSpawners.
被这些函数引用 GenerateAll().
const FString & AOpenDriveGenerator::GetOpenDrive | ( | ) | const |
bool AOpenDriveGenerator::IsOpenDriveValid | ( | ) | const |
Checks if the OpenDrive has been loaded and it's valid.
在文件 OpenDriveGenerator.cpp 第 56 行定义.
引用了 UCarlaStatics::GetGameMode() , 以及 ACarlaGameModeBase::GetMap().
被这些函数引用 GeneratePoles(), GenerateRoadMesh() , 以及 GenerateSpawnPoints().
bool AOpenDriveGenerator::LoadOpenDrive | ( | const FString & | OpenDrive | ) |
Set the OpenDRIVE information as string and generates the queryable map structure.
在文件 OpenDriveGenerator.cpp 第 37 行定义.
引用了 OpenDriveData.
被这些函数引用 BeginPlay().
|
protected |
在文件 OpenDriveGenerator.h 第 78 行定义.
被这些函数引用 GenerateRoadMesh().
|
protected |
在文件 OpenDriveGenerator.h 第 75 行定义.
被这些函数引用 GetOpenDrive() , 以及 LoadOpenDrive().
|
protected |
Determine the height where the spawners will be placed, relative to each RoutePlanner
在文件 OpenDriveGenerator.h 第 69 行定义.
被这些函数引用 GenerateSpawnPoints().
|
protected |
在文件 OpenDriveGenerator.h 第 72 行定义.
被这些函数引用 GenerateSpawnPoints().