17 namespace traffic_manager {
20 using TLMap = std::unordered_map<std::string, SharedPtr<client::Actor>>;
52 const float max_target_velocity);
56 const bool collision_emergency_stop);
61 float max_target_velocity);
64 float max_target_velocity);
76 const std::vector<float> &urban_longitudinal_parameters,
77 const std::vector<float> &highway_longitudinal_parameters,
78 const std::vector<float> &urban_lateral_parameters,
79 const std::vector<float> &highway_lateral_parameters,
88 void Update(
const unsigned long index);
const LocalMapPtr & local_map
std::vector< carla::rpc::Command > ControlFrame
TrackTraffic & track_traffic
const std::vector< float > highway_longitudinal_parameters
void Update(const unsigned long index)
const std::vector< ActorId > & vehicle_id_list
cc::Timestamp current_timestamp
std::vector< bool > TLFrame
float GetLandmarkTargetVelocity(const SimpleWaypoint &waypoint, const cg::Location vehicle_location, const ActorId actor_id, float max_target_velocity)
RandomGenerator & random_device
std::shared_ptr< InMemoryMap > LocalMapPtr
This class holds the state of all the vehicles in the simlation.
This file contains definitions of common data structures used in traffic manager. ...
std::deque< std::shared_ptr< SimpleWaypoint > > Buffer
void RemoveActor(const ActorId actor_id)
std::unordered_map< ActorId, cc::Timestamp > teleportation_instance
std::unordered_map< carla::ActorId, Buffer > BufferMap
const BufferMap & buffer_map
std::unordered_map< ActorId, StateEntry > pid_state_map
float GetTurnTargetVelocity(const Buffer &waypoint_buffer, float max_target_velocity)
This is a simple wrapper class on Carla's waypoint object.
float GetThreePointCircleRadius(cg::Location first_location, cg::Location middle_location, cg::Location last_location)
const CollisionFrame & collision_frame
const std::vector< float > highway_lateral_parameters
const LocalizationFrame & localization_frame
const std::vector< float > urban_longitudinal_parameters
bool SafeAfterJunction(const LocalizationData &localization, const bool tl_hazard, const bool collision_emergency_stop)
ControlFrame & output_array
std::vector< LocalizationData > LocalizationFrame
std::pair< bool, float > CollisionHandling(const CollisionHazardData &collision_hazard, const bool tl_hazard, const cg::Vector3D ego_velocity, const cg::Vector3D ego_heading, const float max_target_velocity)
const std::vector< float > urban_lateral_parameters
SimulationState & simulation_state
MotionPlanStage(const std::vector< ActorId > &vehicle_id_list, SimulationState &simulation_state, const Parameters ¶meters, const BufferMap &buffer_map, TrackTraffic &track_traffic, const std::vector< float > &urban_longitudinal_parameters, const std::vector< float > &highway_longitudinal_parameters, const std::vector< float > &urban_lateral_parameters, const std::vector< float > &highway_lateral_parameters, const LocalizationFrame &localization_frame, const CollisionFrame &collision_frame, const TLFrame &tl_frame, const cc::World &world, ControlFrame &output_array, RandomGenerator &random_device, const LocalMapPtr &local_map)
std::unordered_map< std::string, SharedPtr< client::Actor > > TLMap
std::vector< CollisionHazardData > CollisionFrame
const Parameters & parameters