Apollo 10.0
自动驾驶开放平台
cycle_routing_manager.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2020 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
17#pragma once
18
19#include <memory>
20#include <string>
21#include <vector>
22
23#include "modules/common_msgs/localization_msgs/localization.pb.h"
24#include "modules/common_msgs/task_manager_msgs/task_manager.pb.h"
25#include "modules/common_msgs/routing_msgs/routing.pb.h"
26#include "modules/common_msgs/external_command_msgs/lane_follow_command.pb.h"
27#include "modules/common_msgs/external_command_msgs/command_status.pb.h"
28#include "modules/common_msgs/external_command_msgs/geometry.pb.h"
29
33
34namespace apollo {
35namespace task_manager {
36
38 public:
40
45 common::Status Init(const task_manager::CycleRoutingTask& cycle_routing_task);
46
51 bool GetNewRouting(const localization::Pose& pose,
52 external_command::LaneFollowCommand* lane_follow_command);
53
58 int GetCycle() const { return cycle_; }
59
63 virtual ~CycleRoutingManager() = default;
64
65 private:
66 int cycle_ = 0;
67 int waypoint_num_ = 0;
68 bool is_allowed_to_route_ = false;
69 external_command::Pose begin_point_;
70 external_command::Pose end_point_;
71 std::unique_ptr<apollo::dreamview::MapService> map_service_;
72 external_command::LaneFollowCommand original_lane_follow_command_;
73};
74
75} // namespace task_manager
76} // namespace apollo
A general class to denote the return status of an API call.
Definition status.h:43
int GetCycle() const
get remaining cycle number
virtual ~CycleRoutingManager()=default
destructor
common::Status Init(const task_manager::CycleRoutingTask &cycle_routing_task)
module initialization function
bool GetNewRouting(const localization::Pose &pose, external_command::LaneFollowCommand *lane_follow_command)
Get new routing if the vehicle reaches the begin/end point
The class of MonitorLogBuffer
class register implement
Definition arena_queue.h:37