-
Notifications
You must be signed in to change notification settings - Fork 793
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
Allow fully qualified name in TypeDescriptor [11063] #1831
Conversation
I just noticed that this PR #1345 attempted to solve the same problem. Would you let me know what's wrong with my PR? |
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.
The logic looks good to me.
Please add some unit tests here
According to the DDS-XTypes spec 7.5.2.4.10, the name of TypeDescriptor should be the fully qualified name, which is the concatenation of module names with the name of a type inside of those modules. This change will allow an object of DynamicTypeBuilder to set a type name that contains colon in it. Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com>
Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com>
Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com>
Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com>
I've added a few test cases and fixed the DCO and linters. Would you please review it again? |
@richiprosima Please test this |
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
@Mergifyio backport 2.2.x 2.1.x 2.0.x |
* Allow fully qualified name in TypeDescriptor According to the DDS-XTypes spec 7.5.2.4.10, the name of TypeDescriptor should be the fully qualified name, which is the concatenation of module names with the name of a type inside of those modules. This change will allow an object of DynamicTypeBuilder to set a type name that contains colon in it. Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> * Try to fix linters Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> * Add some unit tests for type descriptor names Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> * Fix linters Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> (cherry picked from commit 61267e3)
* Allow fully qualified name in TypeDescriptor According to the DDS-XTypes spec 7.5.2.4.10, the name of TypeDescriptor should be the fully qualified name, which is the concatenation of module names with the name of a type inside of those modules. This change will allow an object of DynamicTypeBuilder to set a type name that contains colon in it. Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> * Try to fix linters Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> * Add some unit tests for type descriptor names Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> * Fix linters Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> (cherry picked from commit 61267e3)
* Allow fully qualified name in TypeDescriptor According to the DDS-XTypes spec 7.5.2.4.10, the name of TypeDescriptor should be the fully qualified name, which is the concatenation of module names with the name of a type inside of those modules. This change will allow an object of DynamicTypeBuilder to set a type name that contains colon in it. Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> * Try to fix linters Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> * Add some unit tests for type descriptor names Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> * Fix linters Signed-off-by: Yangbo Long <yangbo.long.mav@gmail.com> (cherry picked from commit 61267e3)
Command
|
According to the DDS-XTypes spec 7.5.2.4.10, the name of TypeDescriptor
should be the fully qualified name, which is the concatenation of
module names with the name of a type inside of those modules.
This change will allow an object of DynamicTypeBuilder to set a type
name that contains colon in it. Sometimes it's necessary to use a fully
qualified name in dynamic types to communicate to some existing
ros2 topic directly.
Related issue: https://gitmemory.com/issue/eProsima/Fast-RTPS-Gen/21/603785610