CARLA
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | Private Attributes | List of all members
AOpenDriveActor Class Reference

#include <OpenDriveActor.h>

+ Inheritance diagram for AOpenDriveActor:

Public Member Functions

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 Attributes

TArray< ARoutePlanner * > RoutePlanners
 

Protected Attributes

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

Private Attributes

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.
 
FString CustomPath = ""
 Specify a custom path. Expected a full path to the xodr.
 
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
 

Detailed Description

Definition at line 22 of file OpenDriveActor.h.

Constructor & Destructor Documentation

◆ AOpenDriveActor()

AOpenDriveActor::AOpenDriveActor ( const FObjectInitializer &  ObjectInitializer)

Definition at line 29 of file OpenDriveActor.cpp.

References SpriteComponent.

Member Function Documentation

◆ AddSpawners()

void AOpenDriveActor::AddSpawners ( )

Definition at line 279 of file OpenDriveActor.cpp.

References bOnIntersections, RoutePlanners, SpawnersHeight, and VehicleSpawners.

◆ BuildRoutes() [1/2]

void AOpenDriveActor::BuildRoutes ( )

Definition at line 135 of file OpenDriveActor.cpp.

References BuildRoutes().

Referenced by BuildRoutes().

◆ BuildRoutes() [2/2]

void AOpenDriveActor::BuildRoutes ( FString  MapName)

◆ DebugRoutes()

void AOpenDriveActor::DebugRoutes ( ) const

Definition at line 261 of file OpenDriveActor.cpp.

References RoutePlanners.

◆ RemoveDebugRoutes()

void AOpenDriveActor::RemoveDebugRoutes ( ) const

Definition at line 272 of file OpenDriveActor.cpp.

◆ RemoveRoutes()

void AOpenDriveActor::RemoveRoutes ( )

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

Definition at line 248 of file OpenDriveActor.cpp.

References RoutePlanners.

◆ RemoveSpawners()

void AOpenDriveActor::RemoveSpawners ( )

Definition at line 301 of file OpenDriveActor.cpp.

References VehicleSpawners.

Member Data Documentation

◆ bAddSpawners

bool AOpenDriveActor::bAddSpawners = false
private

If true, spawners will be placed when generating the routes.

Definition at line 67 of file OpenDriveActor.h.

◆ bOnIntersections

bool AOpenDriveActor::bOnIntersections = false
private

If true, spawners will be placed on junctions too.

Definition at line 71 of file OpenDriveActor.h.

Referenced by AddSpawners().

◆ CustomPath

FString AOpenDriveActor::CustomPath = ""
private

Specify a custom path. Expected a full path to the xodr.

Definition at line 48 of file OpenDriveActor.h.

Referenced by BuildRoutes().

◆ RoadAccuracy

float AOpenDriveActor::RoadAccuracy = 2.f
private

Distance between waypoints where the cars will drive.

Definition at line 52 of file OpenDriveActor.h.

Referenced by BuildRoutes().

◆ RoutePlanners

TArray<ARoutePlanner *> AOpenDriveActor::RoutePlanners

Definition at line 116 of file OpenDriveActor.h.

Referenced by AddSpawners(), BuildRoutes(), DebugRoutes(), and RemoveRoutes().

◆ SpawnersHeight

float AOpenDriveActor::SpawnersHeight = 300.f
private

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

Definition at line 76 of file OpenDriveActor.h.

Referenced by AddSpawners().

◆ SpriteComponent

UBillboardComponent* AOpenDriveActor::SpriteComponent
protected

A UBillboardComponent to hold Icon sprite.

Definition at line 29 of file OpenDriveActor.h.

Referenced by AOpenDriveActor().

◆ SpriteTexture

UTexture2D* AOpenDriveActor::SpriteTexture
protected

Sprite for the Billboard Component.

Definition at line 32 of file OpenDriveActor.h.

◆ TriggersHeight

float AOpenDriveActor::TriggersHeight = 100.f
private

Trigger elevantion.

Definition at line 56 of file OpenDriveActor.h.

Referenced by BuildRoutes().

◆ VehicleSpawners

TArray<AVehicleSpawnPoint *> AOpenDriveActor::VehicleSpawners
private

Definition at line 37 of file OpenDriveActor.h.

Referenced by AddSpawners(), and RemoveSpawners().


The documentation for this class was generated from the following files: