RoutePlanner.cpp File Reference
#include "Carla.h"
#include "RoutePlanner.h"
#include "Util/RandomEngine.h"
#include "Vehicle/CarlaWheeledVehicle.h"
#include "Vehicle/WheeledVehicleAIController.h"
#include "Engine/CollisionProfile.h"
#include "DrawDebugHelpers.h"
+ Include dependency graph for RoutePlanner.cpp:

Go to the source code of this file.


static AWheeledVehicleAIControllerGetVehicleController (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)

Definition at line 23 of file RoutePlanner.cpp.

References Vehicle.

Referenced by ARoutePlanner::OnTriggerBeginOverlap().

+ Here is the caller graph for this function:

◆ IsSplineValid()

static bool IsSplineValid ( const USplineComponent *  SplineComponent)

Definition at line 17 of file RoutePlanner.cpp.

Referenced by ARoutePlanner::Init().

+ Here is the caller graph for this function:

◆ PickARoute()

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

Definition at line 31 of file RoutePlanner.cpp.

References URandomEngine::GetIntWithWeight().

Referenced by ARoutePlanner::AssignRandomRoute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: