Go to the documentation of this file.
38 #ifndef REALTIME_TOOLS__REALTIME_PUBLISHER_H_
39 #define REALTIME_TOOLS__REALTIME_PUBLISHER_H_
45 #include <condition_variable>
85 std::this_thread::sleep_for(std::chrono::microseconds(100));
107 updated_cond_.notify_one();
163 std::this_thread::sleep_for(std::chrono::microseconds(200));
175 updated_cond_.notify_one();
196 std::unique_lock<std::mutex> cond_lock(
msg_mutex_, std::defer_lock_t());
208 updated_cond_.wait(cond_lock);
211 std::this_thread::sleep_for(std::chrono::microseconds(500));
238 std::condition_variable updated_cond_;
void publish(const boost::shared_ptr< M > &message) const
Publisher advertise(AdvertiseOptions &ops)
realtime_tools
Author(s): Stuart Glaser
autogenerated on Mon Jan 8 2024 03:20:12