Skip to content

Commit

Permalink
feat(obstacle_avoidance_planner): faster optimization by sparser re-f…
Browse files Browse the repository at this point in the history
…ormulation (autowarefoundation#4600) (autowarefoundation#1051)

* feat(obstacle_avoidance_planner): re-formulate for faster QP



* minor change



* update



* fix



---------

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
  • Loading branch information
takayuki5168 committed Nov 30, 2023
1 parent 2ee5e7a commit 4c4b0b1
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 142 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class MPTOptimizer
// previous data
int prev_mat_n_ = 0;
int prev_mat_m_ = 0;
int prev_solution_status_ = 0;
std::shared_ptr<std::vector<ReferencePoint>> prev_ref_points_ptr_{nullptr};
std::shared_ptr<std::vector<TrajectoryPoint>> prev_optimized_traj_points_ptr_{nullptr};

Expand Down Expand Up @@ -295,7 +296,7 @@ class MPTOptimizer
const std::vector<ReferencePoint> & ref_points) const;

std::optional<std::vector<TrajectoryPoint>> calcMPTPoints(
std::vector<ReferencePoint> & ref_points, const Eigen::VectorXd & U,
std::vector<ReferencePoint> & ref_points, const Eigen::VectorXd & optimized_variables,
const StateEquationGenerator::Matrix & mpt_matrix) const;

void publishDebugTrajectories(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class StateEquationGenerator
public:
struct Matrix
{
Eigen::MatrixXd A;
Eigen::MatrixXd B;
Eigen::VectorXd W;
};
Expand Down
Loading

0 comments on commit 4c4b0b1

Please sign in to comment.