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

Cxc 91 update pose transform lib #227

Merged
merged 13 commits into from
Oct 3, 2024
Merged

Conversation

adev4a
Copy link
Contributor

@adev4a adev4a commented Sep 27, 2024

PR Details

This PR adds pose transformation in mosaic using Proj. During testing it was found that the map transform calculated by mosaic on the data subscribed to from Traci, does not have geodetic coordinates that match the values calculated by carma-platform.
In order to fix this, the transform library in mosaic was extended to accept another parameter for the georeference string which can be used to calculate the geodetic coordinates like it is being calculated in carma-platform and sumo natively (Using proj).

The added georeference field is an optional argument to the mosaic scenario_configuration.

Description

Related GitHub Issue

Related Jira Key

https://usdot-carma.atlassian.net/browse/CXC-91

Motivation and Context

How Has This Been Tested?

Integration tested on xil_carma_cloud scenario on develop and vru scenario on carma-system-4.5.0.

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • I have added any new packages to the sonar-scanner.properties file
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.


private String wgs84ReferenceString;
private String cartesianReferenceString;
CoordinateReferenceSystem wgs84CRS;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be private?

Copy link
Contributor

Choose a reason for hiding this comment

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

Same with the CRS below?

@adev4a adev4a self-assigned this Oct 2, 2024
kjrush
kjrush previously approved these changes Oct 2, 2024
Copy link
Contributor

@kjrush kjrush left a comment

Choose a reason for hiding this comment

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

Looks good to me!

chengyuan0124
chengyuan0124 previously approved these changes Oct 3, 2024
@adev4a adev4a dismissed stale reviews from chengyuan0124 and kjrush via 5b7ab4b October 3, 2024 01:51
Copy link

sonarcloud bot commented Oct 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
8.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@adev4a
Copy link
Contributor Author

adev4a commented Oct 3, 2024

Looks like code coverage is >80%. Line duplication requirements are currently not met, the duplicated lines are required definitions of pure virtual functions and the warning should be safe to ignore.

@adev4a adev4a merged commit 1132597 into develop Oct 3, 2024
2 of 3 checks passed
@adev4a adev4a deleted the cxc-91-update-pose-transform-lib branch October 3, 2024 02:15
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.

4 participants