Repository navigation
Add MessageGeneration from ros-sharp - #56
Merged
Merged
Conversation
- Somewhat simplified/modernized to .NET 6 - Gives a scaffold to expand for our requirement of binary serialization
henrikhorluck
commented
Feb 8, 2022
| this._builtInTypesDefaultInitialValues = builtInTypesDefaultInitialValues; | ||
| } | ||
|
|
||
| public void Parse() |
Contributor
Author
There was a problem hiding this comment.
- This has a horrible name, as it generates code, not parse the
*.{msg,srv,action}, but that is the authors of ROS#'s fault - This can be expanded with a custom interface / method such that code generated support serialization of custom types.
Contributor
Author
|
Also: we are required to add more licensing information as ROS# uses Apache 2.0 https://snyk.io/learn/apache-license/ |
…lement IDisposable to dispose reader, code cleanup
Kytzis
reviewed
Feb 9, 2022
Kytzis
left a comment
Contributor
There was a problem hiding this comment.
Vil bare forsikre meg med dere som kan litt mer at dette ikke er store problemer før vi merger
Kytzis
reviewed
Feb 9, 2022
Contributor
Author
|
Er sikkert ennå noen bugs i endringene jeg har gjort, men ser ikke at det skal hindre merge fra nåværende tidspunkt |
Kytzis
reviewed
Feb 9, 2022
Kytzis
left a comment
Contributor
There was a problem hiding this comment.
Sånn jeg ser det påvirker ikke denne koden det andre for øyeblikket, som gjør at det ikke vil oppstå rare feil med resten av koden dersom det merges
Kytzis
approved these changes
Feb 9, 2022
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Path forward
I would
ILoggerinstead ofverbose, probably print warnings with the ILogger (Should check how Support code-generation for messages at build time #57 source-generators expect warnings). Update: should use https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.cookbook.md#issue-diagnostics, documentation here: https://docs.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis?view=roslyn-dotnet-4.0.1(msg-text) => C# source code.