-
Notifications
You must be signed in to change notification settings - Fork 710
/
Copy pathplanner_manager.hpp
64 lines (53 loc) · 2.31 KB
/
planner_manager.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copyright 2019 Autoware Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef PLANNER_MANAGER_HPP_
#define PLANNER_MANAGER_HPP_
#include <behavior_velocity_planner_common/plugin_interface.hpp>
#include <behavior_velocity_planner_common/plugin_wrapper.hpp>
#include <pluginlib/class_loader.hpp>
#include <rclcpp/rclcpp.hpp>
#include <autoware_auto_mapping_msgs/msg/had_map_bin.hpp>
#include <autoware_auto_perception_msgs/msg/predicted_objects.hpp>
#include <autoware_auto_planning_msgs/msg/path.hpp>
#include <autoware_auto_planning_msgs/msg/path_with_lane_id.hpp>
#include <diagnostic_msgs/msg/diagnostic_status.hpp>
#include <sensor_msgs/msg/point_cloud2.hpp>
#include <lanelet2_core/LaneletMap.h>
#include <lanelet2_routing/RoutingGraph.h>
#include <lanelet2_traffic_rules/TrafficRulesFactory.h>
#include <tf2_ros/transform_listener.h>
#include <memory>
#include <string>
#include <vector>
namespace autoware::behavior_velocity_planner
{
using ::behavior_velocity_planner::PlannerData;
using ::behavior_velocity_planner::PluginInterface;
class BehaviorVelocityPlannerManager
{
public:
BehaviorVelocityPlannerManager();
void launchScenePlugin(rclcpp::Node & node, const std::string & name);
void removeScenePlugin(rclcpp::Node & node, const std::string & name);
autoware_auto_planning_msgs::msg::PathWithLaneId planPathVelocity(
const std::shared_ptr<const PlannerData> & planner_data,
const autoware_auto_planning_msgs::msg::PathWithLaneId & input_path_msg);
diagnostic_msgs::msg::DiagnosticStatus getStopReasonDiag() const;
private:
diagnostic_msgs::msg::DiagnosticStatus stop_reason_diag_;
pluginlib::ClassLoader<PluginInterface> plugin_loader_;
std::vector<std::shared_ptr<PluginInterface>> scene_manager_plugins_;
};
} // namespace autoware::behavior_velocity_planner
#endif // PLANNER_MANAGER_HPP_