9#include "CoreMinimal.h"
13#include "TrafficLightComponent.generated.h"
23UCLASS(Blueprintable, ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
24class CARLA_API UTrafficLightComponent :
public USignComponent
30 UTrafficLightComponent();
32 UFUNCTION(Category = "Traffic Light", BlueprintCallable)
35 UFUNCTION(Category = "Traffic Light", BlueprintCallable)
38 UFUNCTION(Category = "Traffic Light", BlueprintCallable)
39 void SetFrozenGroup(
bool InFreeze);
41 UFUNCTION(Category = "Traffic Light", BlueprintPure)
48 UFUNCTION(Category = "Traffic Light", BlueprintPure)
53 virtual
void InitializeSign(const
carla::
road::Map &Map) override;
57 virtual
void OnComponentDestroyed(
bool bDestroyingHierarchy) override;
59 UPROPERTY(Category = "Traffic Light", BlueprintAssignable)
60 FLightChangeDispatcher LightChangeDispatcher;
64 UFUNCTION(BlueprintCallable)
65 void OnBeginOverlapTriggerBox(UPrimitiveComponent *OverlappedComp,
67 UPrimitiveComponent *OtherComp,
70 const FHitResult &SweepResult);
72 UFUNCTION(BlueprintCallable)
73 void OnEndOverlapTriggerBox(UPrimitiveComponent *OverlappedComp,
75 UPrimitiveComponent *OtherComp,
76 int32 OtherBodyIndex);
84 void GenerateTrafficLightBox(
85 const FTransform BoxTransform,
86 const FVector BoxSize);
88 UPROPERTY(Category = "Traffic Light", EditAnywhere)
94 UPROPERTY(Category = "Traffic Light", VisibleAnywhere)
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FLightChangeDispatcher)
std::map< std::string, unsigned int > road
Class which implements the state changing of traffic lights.
Class In charge of creating and assigning traffic light groups, controllers and components.
Wheeled vehicle controller with optional AI.
Maps a controller from OpenDrive.
This file contains definitions of common data structures used in traffic manager.