5namespace 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) {
KinematicStateMap kinematic_state_map
bool ContainsActor(ActorId actor_id) const
cg::Location GetLocation(const ActorId actor_id) const
StaticAttributeMap static_attribute_map
TrafficLightStateMap tl_state_map
void UpdateKinematicHybridEndLocation(ActorId actor_id, cg::Location location)
cg::Vector3D GetHeading(const ActorId actor_id) const
cg::Location GetHybridEndLocation(const ActorId actor_id) const
void UpdateKinematicState(ActorId actor_id, KinematicState state)
void AddActor(ActorId actor_id, KinematicState kinematic_state, StaticAttributes attributes, TrafficLightState tl_state)
void UpdateTrafficLightState(ActorId actor_id, TrafficLightState state)
float GetSpeedLimit(const ActorId actor_id) const
cg::Rotation GetRotation(const ActorId actor_id) const
cg::Vector3D GetVelocity(const ActorId actor_id) const
bool IsPhysicsEnabled(const ActorId actor_id) const
void RemoveActor(ActorId actor_id)
std::unordered_set< ActorId > actor_set
ActorType GetType(const ActorId actor_id) const
cg::Vector3D GetDimensions(const ActorId actor_id) const
TrafficLightState GetTLS(const ActorId actor_id) const
bool IsDormant(const ActorId actor_id) const
This file contains definitions of common data structures used in traffic manager.
cg::Location hybrid_end_location