Apollo
11.0
自动驾驶开放平台
fast_stop_trajectory_fallback.h
浏览该文件的文档.
1
/******************************************************************************
2
* Copyright 2023 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 <memory>
24
#include <string>
25
26
#include "modules/common_msgs/basic_msgs/pnc_point.pb.h"
27
28
#include "
cyber/plugin_manager/plugin_manager.h
"
29
#include "
modules/planning/planning_interface_base/task_base/trajectory_fallback_task.h
"
30
31
namespace
apollo
{
32
namespace
planning
{
33
34
class
FastStopTrajectoryFallback
:
public
TrajectoryFallbackTask
{
35
private
:
36
SpeedData
GenerateFallbackSpeed(
const
EgoInfo
* ego_info,
37
const
double
stop_distance = 0.0)
override
;
38
39
static
SpeedData
GenerateStopProfile(
const
double
init_speed,
40
const
double
init_acc);
41
};
42
43
CYBER_PLUGIN_MANAGER_REGISTER_PLUGIN
(
44
apollo::planning::FastStopTrajectoryFallback
,
Task
)
45
}
// namespace planning
46
}
// namespace apollo
apollo::planning::EgoInfo
Definition
ego_info.h:40
apollo::planning::FastStopTrajectoryFallback
Definition
fast_stop_trajectory_fallback.h:34
apollo::planning::SpeedData
Definition
speed_data.h:30
apollo::planning::Task
Definition
task.h:37
apollo::planning::TrajectoryFallbackTask
Definition
trajectory_fallback_task.h:31
planning
Planning module main class.
plugin_manager.h
CYBER_PLUGIN_MANAGER_REGISTER_PLUGIN
#define CYBER_PLUGIN_MANAGER_REGISTER_PLUGIN(name, base)
Definition
plugin_manager.h:272
apollo
class register implement
Definition
arena_queue.h:37
trajectory_fallback_task.h
modules
planning
tasks
fast_stop_trajectory_fallback
fast_stop_trajectory_fallback.h