Apollo  6.0
Open source self driving car software
dual_variable_warm_start_problem.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 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 #include <algorithm>
23 
24 #include "Eigen/Dense"
29 #include "modules/planning/proto/planning.pb.h"
30 
31 namespace apollo {
32 namespace planning {
33 
35  public:
37  const PlannerOpenSpaceConfig& planner_open_space_config);
38 
39  virtual ~DualVariableWarmStartProblem() = default;
40 
41  bool Solve(const size_t horizon, const double ts, const Eigen::MatrixXd& ego,
42  const size_t obstacles_num,
43  const Eigen::MatrixXi& obstacles_edges_num,
44  const Eigen::MatrixXd& obstacles_A,
45  const Eigen::MatrixXd& obstacles_b, const Eigen::MatrixXd& xWS,
46  Eigen::MatrixXd* l_warm_up, Eigen::MatrixXd* n_warm_up,
47  Eigen::MatrixXd* s_warm_up);
48 
49  private:
50  PlannerOpenSpaceConfig planner_open_space_config_;
51 };
52 
53 } // namespace planning
54 } // namespace apollo
Definition: dual_variable_warm_start_problem.h:34
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
bool Solve(const size_t horizon, const double ts, const Eigen::MatrixXd &ego, const size_t obstacles_num, const Eigen::MatrixXi &obstacles_edges_num, const Eigen::MatrixXd &obstacles_A, const Eigen::MatrixXd &obstacles_b, const Eigen::MatrixXd &xWS, Eigen::MatrixXd *l_warm_up, Eigen::MatrixXd *n_warm_up, Eigen::MatrixXd *s_warm_up)
DualVariableWarmStartProblem(const PlannerOpenSpaceConfig &planner_open_space_config)
Planning module main class. It processes GPS and IMU as input, to generate planning info...