41 first_(true), rate_(0.0), stamp_old_(0)
44 std::string topic = std::string(
"image_raw");
61 double temp_rate = (double)1e9 / (
double)(stamp -
stamp_old_).toNSec();
70 ROS_INFO(
"%d %dx%d at %0.2fHz", msg->header.seq, msg->width, msg->height,
rate_);
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
void imageRecv(const sensor_msgs::Image::ConstPtr &rosImg)
bool getParam(const std::string &key, std::string &s) const
FramerateNode(ros::NodeHandle node, ros::NodeHandle private_nh)