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)

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

Signed-off-by: Takayuki Murooka <[email protected]>

* minor change

Signed-off-by: Takayuki Murooka <[email protected]>

* update

Signed-off-by: Takayuki Murooka <[email protected]>

* fix

Signed-off-by: Takayuki Murooka <[email protected]>

---------

Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 authored and LeoDriveProject committed Aug 16, 2023
1 parent d76bc93 commit 656e9f0
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 656e9f0

Please sign in to comment.