38 #ifndef REALTIME_TOOLS__REALTIME_PUBLISHER_H_ 39 #define REALTIME_TOOLS__REALTIME_PUBLISHER_H_ 44 #include <condition_variable> 83 std::this_thread::sleep_for(std::chrono::microseconds(100));
105 updated_cond_.notify_one();
146 updated_cond_.notify_one();
164 std::this_thread::sleep_for(std::chrono::microseconds(200));
206 updated_cond_.wait(
lock);
209 std::this_thread::sleep_for(std::chrono::microseconds(500));
236 std::condition_variable updated_cond_;
void publish(const boost::shared_ptr< M > &message) const
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)