-
Notifications
You must be signed in to change notification settings - Fork 124
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
Relocate to_yaml() under message namespace. #609
Conversation
This enables argument dependent lookups. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@@ -84,14 +87,14 @@ inline void to_yaml( | |||
@[ if isinstance(member.type, BasicType)]@ | |||
out << "@(member.name): "; | |||
@[ if member.type.typename in ('octet', 'char', 'wchar')]@ | |||
character_value_to_yaml(msg.@(member.name), out); | |||
rosidl_generator_traits::character_value_to_yaml(msg.@(member.name), out); |
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.
I'm not sure if we should keep character_value_to_yaml()
in rosidl_generator_traits
or if we should move it to another place
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.
So, they have to be in a common place. I don't mind where. I figured keeping them where they are was the path of least resistance, but I'm open to ideas.
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.
sounds good.
rosidl_generator_traits doesn't sound like the namespace for this helper functions, but it doesn't really matter.
Alright, going in! |
This pull request has been mentioned on ROS Discourse. There might be relevant details there: |
Closes #607. This enables argument dependent lookup.
to_yaml()
overloads under therosidl_generator_traits
namespace were kept but deprecated.CI up to
rosidl_generator_cpp
(to start with):