29 #include "modules/planning/proto/planning.pb.h" 35 namespace traffic_light {
49 const std::shared_ptr<DependencyInjector>& injector)
50 :
Scenario(config, context, injector) {}
54 std::unique_ptr<Stage> CreateStage(
55 const ScenarioConfig::StageConfig& stage_config,
56 const std::shared_ptr<DependencyInjector>& injector);
61 static void RegisterStages();
62 bool GetScenarioConfig();
66 ScenarioConfig::StageType,
Stage,
67 Stage* (*)(
const ScenarioConfig::StageConfig& stage_config,
68 const std::shared_ptr<DependencyInjector>& injector)>
ScenarioTrafficLightUnprotectedRightTurnConfig scenario_config
Definition: traffic_light_unprotected_right_turn_scenario.h:39
std::vector< std::string > current_traffic_light_overlap_ids
Definition: traffic_light_unprotected_right_turn_scenario.h:40
Definition: traffic_light_unprotected_right_turn_scenario.h:45
TrafficLightUnprotectedRightTurnContext * GetContext()
Definition: traffic_light_unprotected_right_turn_scenario.h:58
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
double stop_start_time
Definition: traffic_light_unprotected_right_turn_scenario.h:41
Planning module main class. It processes GPS and IMU as input, to generate planning info...
TrafficLightUnprotectedRightTurnScenario(const ScenarioConfig &config, const ScenarioContext *context, const std::shared_ptr< DependencyInjector > &injector)
Definition: traffic_light_unprotected_right_turn_scenario.h:47
Implements a Factory design pattern with Register and Create methods.
Definition: factory.h:60
Definition: traffic_light_unprotected_right_turn_scenario.h:38
double creep_start_time
Definition: traffic_light_unprotected_right_turn_scenario.h:42
Defines the Factory class.
bool Init(const char *binary_name)
Definition: scenario.h:39
Definition: scenario.h:41