Skip to content

Commit

Permalink
[FIX] convert rclcpp to chrono
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Wodtko <thomas.wodtko@uni-ulm.de>
  • Loading branch information
wodtko committed Sep 4, 2023
1 parent 7dc8c43 commit 19974a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topic_tools/src/throttle_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ThrottleNode::ThrottleNode(const rclcpp::NodeOptions & options)
if (throttle_type_str == "messages") {
throttle_type_ = ThrottleType::MESSAGES;
msgs_per_sec_ = declare_parameter<double>("msgs_per_sec");
period_ = rclcpp::Rate(msgs_per_sec_).period();
period_ = rclcpp::Rate(msgs_per_sec_).period().to_chrono();
} else if (throttle_type_str == "bytes") {
throttle_type_ = ThrottleType::BYTES;
bytes_per_sec_ = declare_parameter<int>("bytes_per_sec");
Expand Down

0 comments on commit 19974a0

Please sign in to comment.