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

fix(tracking_object_merger): fix spell check #6424

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
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
8 changes: 4 additions & 4 deletions perception/tracking_object_merger/src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@
const auto sub_vx = sub_obj.kinematics.twist_with_covariance.twist.linear.x;
const auto sub_vy = sub_obj.kinematics.twist_with_covariance.twist.linear.y;
// calc velocity direction
const auto main_vyaw = std::atan2(main_vy, main_vx);
const auto sub_vyaw = std::atan2(sub_vy, sub_vx);
const auto main_v_yaw = std::atan2(main_vy, main_vx);
const auto sub_v_yaw = std::atan2(sub_vy, sub_vx);

Check warning on line 276 in perception/tracking_object_merger/src/utils/utils.cpp

View check run for this annotation

Codecov / codecov/patch

perception/tracking_object_merger/src/utils/utils.cpp#L275-L276

Added lines #L275 - L276 were not covered by tests
// get motion yaw angle
const auto main_motion_yaw = main_yaw + main_vyaw;
const auto sub_motion_yaw = sub_yaw + sub_vyaw;
const auto main_motion_yaw = main_yaw + main_v_yaw;
const auto sub_motion_yaw = sub_yaw + sub_v_yaw;

Check warning on line 279 in perception/tracking_object_merger/src/utils/utils.cpp

View check run for this annotation

Codecov / codecov/patch

perception/tracking_object_merger/src/utils/utils.cpp#L278-L279

Added lines #L278 - L279 were not covered by tests
// diff of motion yaw angle
const auto motion_yaw_diff = std::fabs(main_motion_yaw - sub_motion_yaw);
const auto normalized_motion_yaw_diff =
Expand Down
Loading