We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e0a6a4 commit 29c48a4Copy full SHA for 29c48a4
rclcpp/src/rclcpp/time_source.cpp
@@ -237,7 +237,7 @@ void TimeSource::create_clock_sub()
237
clock_subscription_ = rclcpp::create_subscription<rosgraph_msgs::msg::Clock>(
238
node_topics_,
239
"/clock",
240
- rclcpp::QoS(QoSInitialization::from_rmw(rmw_qos_profile_default)),
+ rclcpp::QoS(KeepLast(1)).best_effort(),
241
std::bind(&TimeSource::clock_cb, this, std::placeholders::_1)
242
);
243
}
0 commit comments