CARLA
Loading...
Searching...
No Matches
Functions
RoutePlanner.cpp File Reference
#include "RoutePlanner.h"
#include "Carla.h"
#include "Carla/Vehicle/CarlaWheeledVehicle.h"
#include "Carla/Vehicle/WheeledVehicleAIController.h"
#include "Carla/Util/RandomEngine.h"
#include <util/ue-header-guard-begin.h>
#include "Engine/CollisionProfile.h"
#include "Engine/Engine.h"
#include "DrawDebugHelpers.h"
#include "EngineUtils.h"
#include <util/ue-header-guard-end.h>

Go to the source code of this file.

Functions

static AWheeledVehicleAIController * GetVehicleController (AActor *Actor)
 
static bool IsSplineValid (const USplineComponent *SplineComponent)
 
static const USplineComponent * PickARoute (URandomEngine &RandomEngine, const TArray< USplineComponent * > &Routes, const TArray< float > &Probabilities)
 

Function Documentation

◆ GetVehicleController()

static AWheeledVehicleAIController * GetVehicleController ( AActor *  Actor)
static

Definition at line 26 of file RoutePlanner.cpp.

References IsValid(), and Vehicle.

Referenced by ARoutePlanner::OnTriggerBeginOverlap().

◆ IsSplineValid()

static bool IsSplineValid ( const USplineComponent *  SplineComponent)
static

◆ PickARoute()

static const USplineComponent * PickARoute ( URandomEngine &  RandomEngine,
const TArray< USplineComponent * > &  Routes,
const TArray< float > &  Probabilities 
)
static

Definition at line 34 of file RoutePlanner.cpp.

References URandomEngine::GetIntWithWeight().

Referenced by ARoutePlanner::AssignRandomRoute().