Apollo 11.0
自动驾驶开放平台
distance_approach_problem.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
17/*
18 * @file
19 */
20
21#pragma once
22
23#include <vector>
24
25#include <coin/IpIpoptApplication.hpp>
26#include <coin/IpSolveStatistics.hpp>
27
28#include "Eigen/Dense"
29
30#include "modules/common_msgs/planning_msgs/planning.pb.h"
31
39
40namespace apollo {
41namespace planning {
42
44public:
45 explicit DistanceApproachProblem(const PlannerOpenSpaceConfig& planner_open_space_config);
46
47 virtual ~DistanceApproachProblem() = default;
48
49 bool Solve(
50 const Eigen::MatrixXd& x0,
51 const Eigen::MatrixXd& xF,
52 const Eigen::MatrixXd& last_time_u,
53 const size_t horizon,
54 const double ts,
55 const Eigen::MatrixXd& ego,
56 const Eigen::MatrixXd& xWS,
57 const Eigen::MatrixXd& uWS,
58 const Eigen::MatrixXd& l_warm_up,
59 const Eigen::MatrixXd& n_warm_up,
60 const Eigen::MatrixXd& s_warm_up,
61 const std::vector<double>& XYbounds,
62 const size_t obstacles_num,
63 const Eigen::MatrixXi& obstacles_edges_num,
64 const Eigen::MatrixXd& obstacles_A,
65 const Eigen::MatrixXd& obstacles_b,
66 Eigen::MatrixXd* state_result,
67 Eigen::MatrixXd* control_result,
68 Eigen::MatrixXd* time_result,
69 Eigen::MatrixXd* dual_l_result,
70 Eigen::MatrixXd* dual_n_result);
71
72private:
73 PlannerOpenSpaceConfig planner_open_space_config_;
74
75 // park generic
76public:
77 explicit DistanceApproachProblem(const DistanceApproachConfig& distance_approach_config);
78
79private:
80 DistanceApproachConfig distance_approach_config_;
81};
82
83} // namespace planning
84} // namespace apollo
bool Solve(const Eigen::MatrixXd &x0, const Eigen::MatrixXd &xF, const Eigen::MatrixXd &last_time_u, const size_t horizon, const double ts, const Eigen::MatrixXd &ego, const Eigen::MatrixXd &xWS, const Eigen::MatrixXd &uWS, const Eigen::MatrixXd &l_warm_up, const Eigen::MatrixXd &n_warm_up, const Eigen::MatrixXd &s_warm_up, const std::vector< double > &XYbounds, const size_t obstacles_num, const Eigen::MatrixXi &obstacles_edges_num, const Eigen::MatrixXd &obstacles_A, const Eigen::MatrixXd &obstacles_b, Eigen::MatrixXd *state_result, Eigen::MatrixXd *control_result, Eigen::MatrixXd *time_result, Eigen::MatrixXd *dual_l_result, Eigen::MatrixXd *dual_n_result)
Planning module main class.
class register implement
Definition arena_queue.h:37