Skip to content
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

Remove 'node' namespace from rclcpp::Node #197

Merged
merged 1 commit into from
Nov 28, 2017
Merged

Conversation

dhood
Copy link
Member

@dhood dhood commented Nov 28, 2017

Based off #196 (comment):

what we want to do with the C++ API, i.e. we want rclcpp::Node rather than rclcpp::node::Node.


The style I chose is to match

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@dhood dhood added the in review Waiting for review (Kanban column) label Nov 28, 2017
@dhood dhood self-assigned this Nov 28, 2017
@dhood dhood changed the title Remove node namespace from rclcpp::Node Remove 'node' namespace from rclcpp::Node Nov 28, 2017
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -24,7 +24,7 @@ class OneOffTimerNode : public rclcpp::Node
{
public:
OneOffTimerNode()
: rclcpp::Node("one_off_timer"), count(0)
: Node("one_off_timer"), count(0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine (correct) as a shortcut, but the existing code is also fine and a bit more explicit. I don't think you need to change this for this pr, but I wouldn't necessarily say we need to go out and do a similar change everywhere. Both are correct, and I think it's fine to leave it up to the author to decide which to use in the situation.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, no worries, I'll go easy on these ones 😄 thanks

@dhood dhood merged commit fbf1fad into master Nov 28, 2017
@dhood dhood deleted the node_inherit_no_ns branch November 28, 2017 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants