Apollo 10.0
自动驾驶开放平台
planning_context.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2017 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 "modules/planning/planning_base/proto/planning_status.pb.h"
24
25#include "cyber/common/macros.h"
26
31namespace apollo {
32namespace planning {
33
35 public:
36 PlanningContext() = default;
37
38 void Clear();
39 void Init();
40
41 /*
42 * please put all status info inside PlanningStatus for easy maintenance.
43 * do NOT create new struct at this level.
44 * */
45 const PlanningStatus& planning_status() const { return planning_status_; }
46 PlanningStatus* mutable_planning_status() { return &planning_status_; }
47
48 private:
49 PlanningStatus planning_status_;
50};
51
52} // namespace planning
53} // namespace apollo
const PlanningStatus & planning_status() const
PlanningStatus * mutable_planning_status()
Planning module main class.
class register implement
Definition arena_queue.h:37