We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbf2c4c commit 4a2579fCopy full SHA for 4a2579f
1 file changed
rclcpp/src/rclcpp/time_source.cpp
@@ -192,6 +192,7 @@ void TimeSource::set_clock(
192
enable_ros_time(clock);
193
}
194
195
+ std::lock_guard<std::mutex> clock_guard(clock->get_clock_mutex());
196
auto ret = rcl_set_ros_time_override(clock->get_clock_handle(), rclcpp::Time(*msg).nanoseconds());
197
if (ret != RCL_RET_OK) {
198
rclcpp::exceptions::throw_from_rcl_error(
0 commit comments