We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a88e90e commit 857aa71Copy full SHA for 857aa71
planning/autoware_path_smoother/src/elastic_band.cpp
@@ -53,9 +53,7 @@ Eigen::SparseMatrix<double> makePMatrix(const int num_points)
53
assign_value_to_triplet_vec(r, c, 6.0);
54
}
55
} else if (std::abs(c - r) == 1) {
56
- if (r == 0 || r == num_points - 1) {
57
- assign_value_to_triplet_vec(r, c, -2.0);
58
- } else if (c == 0 || c == num_points - 1) {
+ if (r == 0 || r == num_points - 1 || c == 0 || c == num_points - 1) {
59
assign_value_to_triplet_vec(r, c, -2.0);
60
} else {
61
assign_value_to_triplet_vec(r, c, -4.0);
0 commit comments