-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Triple writer implements coordinates conversion
This code contains: Correct handling of timestamped coordinate messages. RDF triple generation for valid coordinates. Conversion of latitude/longitude to NTM coordinates using GeographicLib (Why NTM is explained below). Unit and integration tests for the processing of coordinate data. Added GeographicLib necessary code to handle coordinate transformations, specifically for converting latitude/longitude into NTM coordinates. Introduced error handling for cases where coordinate transformations fail. Also some refactoring: Updated variable and method names to follow C++ naming conventions: Variables: Converted to snake_case. Methods: Converted to PascalCase or camelCase as per existing project standards. Ensured consistent use of naming conventions across productive code and tests. Organized the code structure for better readability and maintainability. Testing Plan: The behaviour of the implementation is included mainly in: WebsocketClientIntegrationTests TripleAssemblerUnitTests Why NTM: To calculate the distance between two WGS 84 coordinates (latitude, longitude), it is necessary to convert them to either UTM (Universal Transverse Mercator) or NTM (Norwegian Transverse Mercator). The reason we used NTM is due to historical reasons, as in BMW, NTM was used for driving functions. Signed-off-by: q632394 <[email protected]>
- Loading branch information
q632394
committed
Jan 21, 2025
1 parent
89498fe
commit 98e2e73
Showing
55 changed files
with
6,073 additions
and
721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 29 additions & 5 deletions
34
cdsp/knowledge-layer/connector/json-rdf-convertor/rdf-writer/src/triple_assembler.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.