63 std::unique_lock<std::mutex> guard(
mutex_, std::try_to_lock);
64 if (guard.owns_lock())
103 std::lock_guard<std::mutex> guard(
mutex_);
105 std::unique_lock<std::mutex> guard(
mutex_, std::try_to_lock);
106 while (!guard.owns_lock()) {
107 std::this_thread::sleep_for(std::chrono::microseconds(500));
117 ROS_WARN_THROTTLE(1.0,
"Time estimator has trouble transferring data between non-RT and RT");