Escalate more namespaces e.g. rclcpp::Service#410
Conversation
| using rclcpp::publisher::PublisherBase; | ||
| using rclcpp::subscription::Subscription; | ||
| using rclcpp::subscription::SubscriptionBase; | ||
| using rclcpp::client::Client; |
There was a problem hiding this comment.
Nit: looks like these were listed alphabetically originally
There was a problem hiding this comment.
not really (e.g. subscription before rate), so I chose to continue "grouping" them
|
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