5 namespace traffic_manager {
49 auto previous_tl_state =
GetTLS(actor_id);
50 if (previous_tl_state.at_traffic_light && previous_tl_state.tl_state ==
TLS::Green) {
void UpdateTrafficLightState(ActorId actor_id, TrafficLightState state)
TrafficLightStateMap tl_state_map
TrafficLightState GetTLS(const ActorId actor_id) const
This file contains definitions of common data structures used in traffic manager. ...
cg::Vector3D GetDimensions(const ActorId actor_id) const
ActorType GetType(const ActorId actor_id) const
void UpdateKinematicState(ActorId actor_id, KinematicState state)
std::unordered_set< ActorId > actor_set
cg::Location GetLocation(const ActorId actor_id) const
bool IsDormant(const ActorId actor_id) const
cg::Rotation GetRotation(const ActorId actor_id) const
float GetSpeedLimit(const ActorId actor_id) const
KinematicStateMap kinematic_state_map
cg::Location GetHybridEndLocation(const ActorId actor_id) const
bool ContainsActor(ActorId actor_id) const
cg::Vector3D GetHeading(const ActorId actor_id) const
bool IsPhysicsEnabled(const ActorId actor_id) const
void AddActor(ActorId actor_id, KinematicState kinematic_state, StaticAttributes attributes, TrafficLightState tl_state)
void UpdateKinematicHybridEndLocation(ActorId actor_id, cg::Location location)
cg::Vector3D GetVelocity(const ActorId actor_id) const
void RemoveActor(ActorId actor_id)
StaticAttributeMap static_attribute_map