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(map_based_prediction): fix search dist #1348

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

tkimura4
Copy link
Contributor

Signed-off-by: tomoya.kimura tomoya.kimura@tier4.jp

Description

In map_based_prediction, the searching distance of lanelet is calculated as following.

const double obj_vel = object.kinematics.twist_with_covariance.twist.linear.x;
const double search_dist = horizon * obj_vel + 10.0;

When twist.linear.x is negative, is not calculated correctly, and incorrectly very short predicted_paths are output.

prediction2.mp4

I fixed it.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
@codecov
Copy link

codecov bot commented Jul 14, 2022

Codecov Report

Merging #1348 (4aceef3) into main (adf9cc0) will decrease coverage by 0.12%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##            main   #1348      +/-   ##
========================================
- Coverage   9.64%   9.51%   -0.13%     
========================================
  Files       1096    1088       -8     
  Lines      77119   70647    -6472     
  Branches   17705   17115     -590     
========================================
- Hits        7436    6724     -712     
+ Misses     62442   57183    -5259     
+ Partials    7241    6740     -501     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 9.52% <0.00%> (-0.11%) ⬇️ Carriedforward from adf9cc0

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...based_prediction/src/map_based_prediction_node.cpp 0.00% <0.00%> (ø)
system/default_ad_api/src/interface.cpp 0.00% <0.00%> (-71.43%) ⬇️
..._ad_api_msgs/msg/response_status__type_support.cpp 0.00% <0.00%> (-66.67%) ⬇️
...ng_simulator/vehicle_model/sim_model_interface.hpp 0.00% <0.00%> (-66.67%) ⬇️
...d_api_msgs/srv/interface_version__type_support.cpp 0.00% <0.00%> (-54.55%) ⬇️
.../_autoware_ad_api_msgs_s.ep.rosidl_typesupport_c.c 0.00% <0.00%> (-47.46%) ⬇️
...auto_common/include/helper_functions/type_name.hpp 66.66% <0.00%> (-33.34%) ⬇️
...l/dds_fastrtps/interface_version__type_support.cpp 0.00% <0.00%> (-32.72%) ⬇️
...s/srv/detail/interface_version__type_support_c.cpp 0.00% <0.00%> (-31.00%) ⬇️
...py/autoware_ad_api_msgs/srv/_interface_version_s.c 0.00% <0.00%> (-29.63%) ⬇️
... and 714 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update adf9cc0...4aceef3. Read the comment docs.

@taikitanaka3
Copy link
Contributor

I have observed negative velocity is estimated very ofteten

    initial_twist_with_covariance:
      twist:
        linear:
          x: -10.009830929561032
          y: 0.0
          z: 0.0
        angular:
          x: 0.0
          y: 0.0
          z: 0.004013723628217312

Copy link
Contributor

@taikitanaka3 taikitanaka3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L

@tkimura4 tkimura4 merged commit e35719c into autowarefoundation:main Jul 14, 2022
@tkimura4 tkimura4 deleted the fix/predicted_path_length branch July 14, 2022 12:08
tkimura4 referenced this pull request in tier4/autoware.universe Jul 14, 2022
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants