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 rej55 committed Aug 18, 2023
1 parent 32924ce commit 0b5ba7b
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 @@ -236,6 +236,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};

void updateVehicleCircles();
Expand Down Expand Up @@ -293,7 +294,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 0b5ba7b

Please sign in to comment.