-
Notifications
You must be signed in to change notification settings - Fork 631
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(geography_utils): add projection in geography_utils #4833
feat(geography_utils): add projection in geography_utils #4833
Conversation
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (default_ad_api)
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
WalkthroughThe changes include the addition of a new file for projection functions in the Changes
Uplevel your code reviews with CodeRabbit ProCodeRabbit ProIf you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Files selected (15)
- common/geography_utils/CMakeLists.txt (1)
- common/geography_utils/include/geography_utils/height.hpp (1)
- common/geography_utils/include/geography_utils/projection.hpp (1)
- common/geography_utils/package.xml (1)
- common/geography_utils/src/projection.cpp (1)
- common/geography_utils/test/test_geography_utils.cpp (2)
- common/geography_utils/test/test_height.cpp (6)
- common/geography_utils/test/test_projection.cpp (1)
- sensing/gnss_poser/CMakeLists.txt (1)
- sensing/gnss_poser/include/gnss_poser/convert.hpp (1)
- sensing/gnss_poser/include/gnss_poser/gnss_poser_core.hpp (2)
- sensing/gnss_poser/src/gnss_poser_core.cpp (3)
- system/default_ad_api/package.xml (1)
- system/default_ad_api/src/vehicle.cpp (3)
- system/default_ad_api/src/vehicle.hpp (3)
Files skipped from review due to trivial changes (6)
- common/geography_utils/include/geography_utils/height.hpp
- common/geography_utils/test/test_height.cpp
- common/geography_utils/test/test_projection.cpp
- system/default_ad_api/package.xml
- system/default_ad_api/src/vehicle.hpp
- sensing/gnss_poser/include/gnss_poser/convert.hpp (diff too large)
Review comments generated (14)
- Review: 10
- LGTM: 4
Tips
Chat with CodeRabbit Bot (@coderabbitai
)
- Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
- Invite the bot into a review comment chain by tagging
@coderabbitai
in a reply.
Code suggestions
- The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
- You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.
Pausing incremental reviews
- Add
@coderabbitai: ignore
anywhere in the PR description to pause further reviews from the bot.
gps_point.altitude = nav_sat_fix_msg_ptr->altitude; | ||
geometry_msgs::msg::Point position = geography_utils::project_forward(gps_point, projector_info_); | ||
position.z = geography_utils::convert_height( | ||
gps_point.altitude, gps_point.latitude, gps_point.longitude, MapProjectorInfo::Message::WGS84, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gps_point.altitude, gps_point.latitude, gps_point.longitude, MapProjectorInfo::Message::WGS84, | |
position.z, gps_point.latitude, gps_point.longitude, MapProjectorInfo::Message::WGS84, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, fixed in 34273a8
Signed-off-by: kminoda <[email protected]>
Description
Main idea: Unify latlon <-> xy conversion in the whole system using lanelet2 projector
project_forward/reverse
function based on lanelet2 projectorproject_forward
insteadproject_reverse
insteadRelated links
None
Tests performed
geography_utils
/api/vehicle/kinematics
) is the same as beforesample-map-rosbag
is wrong, as it is not either WGS84 nor EGM)Notes for reviewers
None
Interface changes
None
Effects on system behavior
None
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.
After all checkboxes are checked, anyone who has write access can merge the PR.
Summary by CodeRabbit
projection.hpp
in thegeography_utils
module, defining functions for coordinate projection.geography_utils
module to verify the correctness of coordinate conversion.#include
statements and dependencies in various files.convert
function in theGNSSPoser
class with a call togeography_utils::project_forward
for latitude/longitude to Cartesian coordinate conversion.geographic_msgs
andgeometry_msgs
).