stonier / ueye_cam

A ROS nodelet and node that wraps the driver API for UEye cameras by IDS Imaging Development Systems GMBH.
Other
1 stars 2 forks source link

Bugfix getNumSubscribers [image_common], remove workaround #16

Open stonier opened 3 years ago

stonier commented 3 years ago

Currently, in node.cpp:

  // Workaround https://github.com/ros-perception/image_common/issues/114
  // currNumSubscribers = ros_cam_pub_.getNumSubscribers();
  currNumSubscribers = std::max(
    this->count_subscribers(ros_cam_pub_.getTopic()),
    this->count_subscribers(ros_cam_pub_.getInfoTopic())
  );