|
CARLA
|
#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 |
Definition at line 22 of file OpenDriveActor.h.
| AOpenDriveActor::AOpenDriveActor | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 29 of file OpenDriveActor.cpp.
References SpriteComponent.
| void AOpenDriveActor::AddSpawners | ( | ) |
Definition at line 279 of file OpenDriveActor.cpp.
References bOnIntersections, RoutePlanners, SpawnersHeight, and VehicleSpawners.
| void AOpenDriveActor::BuildRoutes | ( | ) |
Definition at line 135 of file OpenDriveActor.cpp.
References BuildRoutes().
Referenced by BuildRoutes().
| void AOpenDriveActor::BuildRoutes | ( | FString | MapName | ) |
Definition at line 140 of file OpenDriveActor.cpp.
References ARoutePlanner::AddRoute(), ARoutePlanner::bIsIntersection, CustomPath, carla::opendrive::OpenDriveParser::Load(), UOpenDrive::LoadXODR(), UOpenDrive::LoadXODRFullPath(), RoadAccuracy, RoutePlanners, ARoutePlanner::SetBoxExtent(), and TriggersHeight.
| void AOpenDriveActor::DebugRoutes | ( | ) | const |
Definition at line 261 of file OpenDriveActor.cpp.
References RoutePlanners.
| void AOpenDriveActor::RemoveDebugRoutes | ( | ) | const |
Definition at line 272 of file OpenDriveActor.cpp.
| 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.
| void AOpenDriveActor::RemoveSpawners | ( | ) |
Definition at line 301 of file OpenDriveActor.cpp.
References VehicleSpawners.
|
private |
If true, spawners will be placed when generating the routes.
Definition at line 67 of file OpenDriveActor.h.
|
private |
If true, spawners will be placed on junctions too.
Definition at line 71 of file OpenDriveActor.h.
Referenced by AddSpawners().
|
private |
Specify a custom path. Expected a full path to the xodr.
Definition at line 48 of file OpenDriveActor.h.
Referenced by BuildRoutes().
|
private |
Distance between waypoints where the cars will drive.
Definition at line 52 of file OpenDriveActor.h.
Referenced by BuildRoutes().
| TArray<ARoutePlanner *> AOpenDriveActor::RoutePlanners |
Definition at line 116 of file OpenDriveActor.h.
Referenced by AddSpawners(), BuildRoutes(), DebugRoutes(), and RemoveRoutes().
|
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().
|
protected |
A UBillboardComponent to hold Icon sprite.
Definition at line 29 of file OpenDriveActor.h.
Referenced by AOpenDriveActor().
|
protected |
Sprite for the Billboard Component.
Definition at line 32 of file OpenDriveActor.h.
|
private |
|
private |
Definition at line 37 of file OpenDriveActor.h.
Referenced by AddSpawners(), and RemoveSpawners().