Apollo  6.0
Open source self driving car software
distance_approach_problem.h
Go to the documentation of this file.
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/planning/proto/planning.pb.h"
31 
39 
40 namespace apollo {
41 namespace planning {
42 
44  public:
45  explicit DistanceApproachProblem(
46  const PlannerOpenSpaceConfig& planner_open_space_config);
47 
48  virtual ~DistanceApproachProblem() = default;
49 
50  bool Solve(const Eigen::MatrixXd& x0, const Eigen::MatrixXd& xF,
51  const Eigen::MatrixXd& last_time_u, const size_t horizon,
52  const double ts, const Eigen::MatrixXd& ego,
53  const Eigen::MatrixXd& xWS, const Eigen::MatrixXd& uWS,
54  const Eigen::MatrixXd& l_warm_up, const Eigen::MatrixXd& n_warm_up,
55  const Eigen::MatrixXd& s_warm_up,
56  const std::vector<double>& XYbounds, const size_t obstacles_num,
57  const Eigen::MatrixXi& obstacles_edges_num,
58  const Eigen::MatrixXd& obstacles_A,
59  const Eigen::MatrixXd& obstacles_b, Eigen::MatrixXd* state_result,
60  Eigen::MatrixXd* control_result, Eigen::MatrixXd* time_result,
61  Eigen::MatrixXd* dual_l_result, Eigen::MatrixXd* dual_n_result);
62 
63  private:
64  PlannerOpenSpaceConfig planner_open_space_config_;
65 };
66 
67 } // namespace planning
68 } // namespace apollo
DistanceApproachProblem(const PlannerOpenSpaceConfig &planner_open_space_config)
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
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. It processes GPS and IMU as input, to generate planning info...
Definition: distance_approach_problem.h:43