CARLA
Loading...
Searching...
No Matches
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()

AWheeledVehicleAIController * GetVehicleController ( AActor * Actor)
static

Definition at line 26 of file RoutePlanner.cpp.

References GetVehicleController(), and Vehicle.

Referenced by GetVehicleController(), and ARoutePlanner::OnTriggerBeginOverlap().

◆ IsSplineValid()

bool IsSplineValid ( const USplineComponent * SplineComponent)
static

◆ PickARoute()

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