#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>
函数 | |
template<typename T = ATrafficSignBase> | |
T * | GetClosestTrafficSignActor (const carla::road::Signal &Signal, UWorld *World) |
bool | MatchSignalAndActor (const carla::road::Signal &Signal, ATrafficSignBase *ClosestTrafficSign) |
T * GetClosestTrafficSignActor | ( | const carla::road::Signal & | Signal, |
UWorld * | World ) |
在文件 TrafficLightManager.cpp 第 458 行定义.
引用了 carla::road::Signal::GetTransform() , 以及 MatchSignalAndActor().
被这些函数引用 ATrafficLightManager::SpawnSignals().
bool MatchSignalAndActor | ( | const carla::road::Signal & | Signal, |
ATrafficSignBase * | ClosestTrafficSign ) |
在文件 TrafficLightManager.cpp 第 378 行定义.
引用了 carla::road::Signal::GetSubtype(), ATrafficSignBase::GetTrafficSignState(), carla::road::Signal::GetType(), TrafficLightGreen, TrafficLightRed , 以及 TrafficLightYellow.
被这些函数引用 GetClosestTrafficSignActor().