anqixu / ueye_cam

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

Remove workaround for getNumSubscribers() when fixed #114

Open stonier opened 3 years ago

stonier commented 3 years ago

The api from image_common has a bug, but we do have a workaround for now:

  // 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())
  );