Skip to content

Commit

Permalink
Merge branch 'beta/v0.6.0' into cherry-pick-detection-area-improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
TomohitoAndo authored Sep 13, 2023
2 parents 7b73483 + 9793819 commit a15c16c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ repos:
args: [-w, -s, -i=4]

- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort

Expand Down
19 changes: 11 additions & 8 deletions perception/map_based_prediction/src/path_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,18 @@ PosePath PathGenerator::interpolateReferencePath(
return interpolated_path;
}

std::vector<double> base_path_x;
std::vector<double> base_path_y;
std::vector<double> base_path_z;
std::vector<double> base_path_s;
std::vector<double> base_path_x(base_path.size());
std::vector<double> base_path_y(base_path.size());
std::vector<double> base_path_z(base_path.size());
std::vector<double> base_path_s(base_path.size(), 0.0);
for (size_t i = 0; i < base_path.size(); ++i) {
base_path_x.push_back(base_path.at(i).position.x);
base_path_y.push_back(base_path.at(i).position.y);
base_path_z.push_back(base_path.at(i).position.z);
base_path_s.push_back(motion_utils::calcSignedArcLength(base_path, 0, i));
base_path_x.at(i) = base_path.at(i).position.x;
base_path_y.at(i) = base_path.at(i).position.y;
base_path_z.at(i) = base_path.at(i).position.z;
if (i > 0) {
base_path_s.at(i) = base_path_s.at(i - 1) + tier4_autoware_utils::calcDistance2d(
base_path.at(i - 1), base_path.at(i));
}
}

std::vector<double> resampled_s(frenet_predicted_path.size());
Expand Down

0 comments on commit a15c16c

Please sign in to comment.