Skip to content

Commit

Permalink
Merge pull request #52 from rursprung/fix-subscriber-calc
Browse files Browse the repository at this point in the history
fix: calculation of ROS topic subscriber count
  • Loading branch information
boitumeloruf authored Dec 5, 2024
2 parents 0da5cdd + f43ea4a commit 4dbdf7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions camera_aravis2/src/camera_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,7 @@ void CameraDriver::handleMessageSubscriptionChange(rclcpp::MatchedInfo& iEventIn
}

//--- get the maximum number of subscribers over all streams and assign to the member variable
current_num_subscribers_ = 0;
for (uint i = 0; i < streams_.size(); ++i)
{
current_num_subscribers_ =
Expand Down

0 comments on commit 4dbdf7a

Please sign in to comment.