CARLA
Functions
TrafficLightManager.cpp File Reference
#include "TrafficLightManager.h"
#include "Game/CarlaStatics.h"
#include "StopSignComponent.h"
#include "YieldSignComponent.h"
#include "SpeedLimitComponent.h"
#include "Components/BoxComponent.h"
#include "Runtime/CoreUObject/Public/UObject/ConstructorHelpers.h"
#include "UObject/ConstructorHelpers.h"
#include <compiler/disable-ue4-macros.h>
#include <carla/rpc/String.h>
#include <carla/road/SignalType.h>
#include <carla/opendrive/OpenDriveParser.h>
#include <compiler/enable-ue4-macros.h>
#include <string>
+ Include dependency graph for TrafficLightManager.cpp:

Go to the source code of this file.

Functions

template<typename T = ATrafficSignBase>
T * GetClosestTrafficSignActor (const carla::road::Signal &Signal, UWorld *World)
 
bool MatchSignalAndActor (const carla::road::Signal &Signal, ATrafficSignBase *ClosestTrafficSign)
 

Function Documentation

◆ GetClosestTrafficSignActor()

template<typename T = ATrafficSignBase>
T* GetClosestTrafficSignActor ( const carla::road::Signal Signal,
UWorld *  World 
)

Definition at line 458 of file TrafficLightManager.cpp.

References carla::road::Signal::GetTransform(), and MatchSignalAndActor().

Referenced by ATrafficLightManager::SpawnSignals().

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

◆ MatchSignalAndActor()

bool MatchSignalAndActor ( const carla::road::Signal Signal,
ATrafficSignBase ClosestTrafficSign 
)

Definition at line 378 of file TrafficLightManager.cpp.

References carla::road::Signal::GetSubtype(), ATrafficSignBase::GetTrafficSignState(), carla::road::Signal::GetType(), carla::road::SignalType::IsTrafficLight(), carla::road::SignalType::MaximumSpeed(), carla::road::SignalType::StopSign(), TrafficLightGreen, TrafficLightRed, TrafficLightYellow, and carla::road::SignalType::YieldSign().

Referenced by GetClosestTrafficSignActor().

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