-
Notifications
You must be signed in to change notification settings - Fork 430
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
Escalate more namespaces e.g. rclcpp::Service #410
Conversation
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 with green CI
using rclcpp::subscription::Subscription; | ||
using rclcpp::subscription::SubscriptionBase; | ||
using rclcpp::client::Client; |
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.
Nit: looks like these were listed alphabetically originally
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.
not really (e.g. subscription before rate), so I chose to continue "grouping" them
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.
works for me 👍
Maybe only somewhat related, but I remember that we actually agreed on replicating the namespaces according the folder structure in which the classes are defined. That is to say, that instead of forwarding the namespaces, we should maybe in a follow-up PR remove the namespaces. |
I dug up the conversation:
So it seems you are right @Karsten1987 that that was the conclusion, and that we should remove this namespaces. I created this PR for the use case ros2/demos#199, so that demos wouldn't use the sub namespaces. That's something that we want to promote in our demos regardless, so I will merge this to support the demos, and then when we find time we should be safe to remove the namespaces from these classes without impacting the demos. |
+1 for merging this in order to fix the calling code and then get to removing the namespaces in rclcpp if we have time to do so. |
Btw, a slightly less aggressive thing to do for the longer namespaces in http://en.cppreference.com/w/cpp/language/attributes It's super neat. |
that's a good idea because there will definitely be code that will break if we flatout remove the namespace |
* Converted reinterpret_cast to static_cast where I felt it was safe-ish Signed-off-by: Jacob Hassold <jhassold@dcscorp.com> * Fixed inconsistent type inference Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
* disable play_filters_by_topic Signed-off-by: Mabel Zhang <mabel@openrobotics.org> * Add ticket to disabled test Signed-off-by: Mabel Zhang <mabel@openrobotics.org> Co-authored-by: Tully Foote <tfoote@osrfoundation.org> Co-authored-by: Tully Foote <tfoote@osrfoundation.org>
Publishers and subscribers had been escalated but not services and clients. This was causing inconsistent usage in demos