38 #include "std_msgs/Float32.h" 59 double whole_time = (now - oldest).toSec();
60 double average_time = whole_time / (
buffer_.size() - 1);
61 std_msgs::Float32 output;
62 output.data = 1.0 / average_time;
void publish(const boost::shared_ptr< M > &message) const
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
PLUGINLIB_EXPORT_CLASS(jsk_topic_tools::Snapshot, nodelet::Nodelet)
jsk_topic_tools::HzMeasure HzMeasure
ros::NodeHandle & getPrivateNodeHandle() const
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
bool getParam(const std::string &key, std::string &s) const
#define NODELET_DEBUG(...)