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

Switch to using rate #188

Merged
merged 2 commits into from
Nov 17, 2017
Merged

Switch to using rate #188

merged 2 commits into from
Nov 17, 2017

Conversation

dhood
Copy link
Member

@dhood dhood commented Nov 16, 2017

Otherwise no example is covering it anymore

connects to ros2/demos#192

Otherwise no example is covering it anymore
@dhood dhood self-assigned this Nov 16, 2017
@dhood dhood added the in progress Actively being worked on (Kanban column) label Nov 16, 2017
@@ -30,12 +30,14 @@ int main(int argc, char * argv[])
auto publisher = node->create_publisher<std_msgs::msg::String>("topic");
auto message = std::make_shared<std_msgs::msg::String>();
auto publish_count = 0;
rclcpp::WallRate loop_rate(2s);
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 0.5Hz, but before it was 2Hz, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops: e21d2d6 puts it back to 2Hz

Copy link
Member

Choose a reason for hiding this comment

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

Would be nice if the std library had a hz UDL, which was std::chrono::seconds(1/input). 👍 for fixing it.

@dhood
Copy link
Member Author

dhood commented Nov 17, 2017

🚢 👍 🎉 🎉

@dhood dhood merged commit 3fe7057 into master Nov 17, 2017
@dhood dhood deleted the node_inherit_demos branch November 17, 2017 00:12
@dhood dhood removed the in progress Actively being worked on (Kanban column) label Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants