4#include <unordered_set>
9namespace traffic_manager {
This class holds the state of all the vehicles in the simlation.
cg::Location GetHeroLocation(const ActorId actor_id) const
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
std::unordered_map< ActorId, TrafficLightState > TrafficLightStateMap
std::unordered_map< ActorId, StaticAttributes > StaticAttributeMap
std::unordered_map< ActorId, KinematicState > KinematicStateMap
This file contains definitions of common data structures used in traffic manager.
cg::Location hybrid_end_location