Apollo  6.0
Open source self driving car software
speed_profile_generator.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 
21 #pragma once
22 
23 #include <utility>
24 #include <vector>
25 
26 #include "modules/common/proto/pnc_point.pb.h"
31 
32 namespace apollo {
33 namespace planning {
34 
36  public:
37  SpeedProfileGenerator() = delete;
38 
39  static SpeedData GenerateFallbackSpeed(const EgoInfo* ego_info,
40  const double stop_distance = 0.0);
41 
42  static void FillEnoughSpeedPoints(SpeedData* const speed_data);
43 
44  static SpeedData GenerateFixedDistanceCreepProfile(const double distance,
45  const double max_speed);
46 
47  private:
48  static SpeedData GenerateStopProfile(const double init_speed,
49  const double init_acc);
50 };
51 
52 } // namespace planning
53 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: ego_info.h:35
static void FillEnoughSpeedPoints(SpeedData *const speed_data)
Planning module main class. It processes GPS and IMU as input, to generate planning info...
static SpeedData GenerateFallbackSpeed(const EgoInfo *ego_info, const double stop_distance=0.0)
Definition: speed_profile_generator.h:35
Definition: speed_data.h:30
static SpeedData GenerateFixedDistanceCreepProfile(const double distance, const double max_speed)