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(gnss_poser): fix_transform_direction_problem #5033

Conversation

meliketanrikulu
Copy link
Contributor

@meliketanrikulu meliketanrikulu commented Sep 19, 2023

Description

tf_gnss_antenna2base_link_msg_ptr names implies "gnss_link -> base_link" transform and is used that way, but getStaticTransform(gnss_frame_, base_frame_, ... returns the transform "base_link -> gnss_link". The transform direction is not true.

Here the function to make transforms is called. And this line contains transform from base_link to gnss using lookup transform. But I think the exact source and target frame should be swapped. Source frame should be gnss target frame base_link

Expected Functionality:

map2base_link = map2gnss * gnss2base_link

How does it work now:

map2base_link = map2gnss * base_link2gnss

The expected output is here-->tf_gnss_antenna2base_link_msg_ptr butthe function calculates base_link2gnss_antenna transformations because target frame is gnss. It sould be base_link.

Related links

Related Issue: #3640

Tests performed

Since roll pitch yaw values for gnss in sample sensor kit are 0 0 0, we do not encounter this error in autoware demos.

Also, I do not have a sensor setup with the sensor configuration to test this, but when you look at the function descriptions, you can see that it is mathematically incorrect.

Notes for reviewers

Interface changes

Effects on system behavior

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.
  • The PR is ready for merge.

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

@github-actions github-actions bot added the component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) label Sep 19, 2023
@meliketanrikulu meliketanrikulu force-pushed the fix(gnss_poser)fix_transform_direction_problem branch from 7f44aca to 4540b7c Compare September 19, 2023 10:09
@meliketanrikulu meliketanrikulu self-assigned this Sep 19, 2023
@YamatoAndo
Copy link
Contributor

@kminoda Could you review this pr?

@kminoda kminoda added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Oct 12, 2023
@kminoda
Copy link
Contributor

kminoda commented Oct 12, 2023

@meliketanrikulu Hi, sorry for being late, and thank you for your contribution 🙏
Would you fix some CIs that are failing (e.g. semantic pull requests) and also filling out the description?

@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e8f7233) 15.61% compared to head (9ee48ea) 15.61%.
Report is 213 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5033   +/-   ##
=======================================
  Coverage   15.61%   15.61%           
=======================================
  Files        1589     1589           
  Lines      110032   110032           
  Branches    34103    34103           
=======================================
  Hits        17182    17182           
  Misses      73943    73943           
  Partials    18907    18907           
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 15.61% <ø> (+<0.01%) ⬆️ Carriedforward from 4540b7c

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

Files Coverage Δ
sensing/gnss_poser/src/gnss_poser_core.cpp 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@meliketanrikulu meliketanrikulu changed the title fix(gnss_poser)fix_transform_direction_problem fix(gnss_poser): fix_transform_direction_problem Oct 12, 2023
Signed-off-by: meliketanrikulu <[email protected]>
@meliketanrikulu
Copy link
Contributor Author

@meliketanrikulu Hi, sorry for being late, and thank you for your contribution 🙏 Would you fix some CIs that are failing (e.g. semantic pull requests) and also filling out the description?

Hello @kminoda I added detailed description and fix the CI issue which is related me. Could you check again. Thank you

Copy link
Contributor

@kminoda kminoda left a comment

Choose a reason for hiding this comment

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

LGTM. Apologies for the late review 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:sensing Data acquisition from sensors, drivers, preprocessing. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants