Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(object_recognition_utils): fix failing test #7268

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
}
}

// Resample which exceeds the maximum size
// Resample the path with morethan 100 points

Check warning on line 177 in common/object_recognition_utils/test/src/test_predicted_path_utils.cpp

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (morethan)
yukkysaito marked this conversation as resolved.
Show resolved Hide resolved
{
std::vector<double> resampling_vec(101);
for (size_t i = 0; i < 101; ++i) {
Expand All @@ -186,7 +186,7 @@
EXPECT_EQ(resampled_path.path.size(), resampled_path.path.max_size());
EXPECT_NEAR(path.confidence, resampled_path.confidence, epsilon);

for (size_t i = 0; i < resampled_path.path.max_size(); ++i) {
for (size_t i = 0; i < resampled_path.path.size(); ++i) {
EXPECT_NEAR(resampled_path.path.at(i).position.x, resampling_vec.at(i), epsilon);
EXPECT_NEAR(resampled_path.path.at(i).position.y, 0.0, epsilon);
EXPECT_NEAR(resampled_path.path.at(i).position.z, 0.0, epsilon);
Expand Down
Loading