CARLA
Loading...
Searching...
No Matches
Functions
OpenDriveGenerator.cpp File Reference
#include "OpenDriveGenerator.h"
#include "Carla/Game/CarlaStatics.h"
#include "Carla/Game/Tagger.h"
#include "Carla.h"
#include "Traffic/TrafficLightManager.h"
#include "Traffic/TrafficSignBase.h"
#include "Util/ProceduralCustomMesh.h"
#include "Materials/MaterialInterface.h"
#include "PCGComponent.h"
#include "Components/BoxComponent.h"
#include "Components/InstancedStaticMeshComponent.h"
#include "EngineUtils.h"
#include "TimerManager.h"
#include "PCGGraph.h"
#include "Misc/FileHelper.h"
#include "Misc/Paths.h"
#include "UObject/UObjectIterator.h"
#include "HAL/IConsoleManager.h"
#include <util/disable-ue4-macros.h>
#include <carla/opendrive/OpenDriveParser.h>
#include <carla/rpc/String.h>
#include <util/enable-ue4-macros.h>

Go to the source code of this file.

Functions

static TAutoConsoleVariable< int32 > CVarOpenDriveStreetFurniture (TEXT("carla.OpenDrive.StreetFurniture"), 1, TEXT("1 (default): scatter street furniture (lamps, vegetation, signage) on generated OpenDRIVE worlds. 0: bare road only."), ECVF_Default)
 
static FAutoConsoleCommandWithWorldAndArgs GDumpRasterAtCommand (TEXT("carla.DumpRasterAt"), TEXT("Dump road-raster chunk info around x y (metres)"), FConsoleCommandWithWorldAndArgsDelegate::CreateStatic([](const TArray< FString > &Args, UWorld *World) { if(Args.Num()< 2) { UE_LOG(LogCarla, Warning, TEXT("usage: carla.DumpRasterAt <x> <y>"));return;} const float CX=FCString::Atof(*Args[0]) *100.0f;const float CY=FCString::Atof(*Args[1]) *100.0f;for(TActorIterator< AOpenDriveGenerator > It(World);It;++It) { It->DumpRasterAt(CX, CY);return;} }))
 Dump the road-raster chunk table around a point (client metres): carla.DumpRasterAt <x> <y> – debugging aid for stacked-surface work.
 
static FAutoConsoleCommandWithWorld GMapGenQACommand (TEXT("carla.MapGenQA"), TEXT("Run the generated-map QA checks (road support, terrain invasion, objects on roadway)"), FConsoleCommandWithWorldDelegate::CreateStatic([](UWorld *World) { for(TActorIterator< AOpenDriveGenerator > It(World);It;++It) { It->RunGenerationQA();return;} UE_LOG(LogCarla, Warning, TEXT("carla.MapGenQA: no AOpenDriveGenerator in world"));}))
 Re-run the generation QA on the placed generator from the console: carla.MapGenQA (also runs automatically after GenerateAll).
 

Function Documentation

◆ CVarOpenDriveStreetFurniture()

static TAutoConsoleVariable< int32 > CVarOpenDriveStreetFurniture ( TEXT("carla.OpenDrive.StreetFurniture")  ,
1  ,
TEXT("1 (default): scatter street furniture (lamps, vegetation, signage) on generated OpenDRIVE worlds. 0: bare road only.")  ,
ECVF_Default   
)
static

◆ GDumpRasterAtCommand()

static FAutoConsoleCommandWithWorldAndArgs GDumpRasterAtCommand ( TEXT("carla.DumpRasterAt")  ,
TEXT("Dump road-raster chunk info around x y (metres)")  ,
FConsoleCommandWithWorldAndArgsDelegate::CreateStatic([](const TArray< FString > &Args, UWorld *World) { if(Args.Num()< 2) { UE_LOG(LogCarla, Warning, TEXT("usage: carla.DumpRasterAt <x> <y>"));return;} const float CX=FCString::Atof(*Args[0]) *100.0f;const float CY=FCString::Atof(*Args[1]) *100.0f;for(TActorIterator< AOpenDriveGenerator > It(World);It;++It) { It->DumpRasterAt(CX, CY);return;} })   
)
static

Dump the road-raster chunk table around a point (client metres): carla.DumpRasterAt <x> <y> – debugging aid for stacked-surface work.

◆ GMapGenQACommand()

static FAutoConsoleCommandWithWorld GMapGenQACommand ( TEXT("carla.MapGenQA")  ,
TEXT("Run the generated-map QA checks (road support, terrain invasion, objects on roadway)")  ,
FConsoleCommandWithWorldDelegate::CreateStatic([](UWorld *World) { for(TActorIterator< AOpenDriveGenerator > It(World);It;++It) { It->RunGenerationQA();return;} UE_LOG(LogCarla, Warning, TEXT("carla.MapGenQA: no AOpenDriveGenerator in world"));})   
)
static

Re-run the generation QA on the placed generator from the console: carla.MapGenQA (also runs automatically after GenerateAll).