Hello, guys.
I have used ROS Kinetic on ubuntu 16.04.
I make a two node. The one is publisher node to publish image topic.
Another is subscriber node to subscribe publisher's topic.
The transmission period of the publisher node is 30 fps approximately.
As you can see in the code below, When I remove the remark of line include the `cv::wait(30)` function, Subscriber does not work at regular intervals. Performance dropped to 1 fps.
I can not find a clue.
Can you tell me what keywords I can find information about?
...(On Subscriber Node)...
while(ros::ok()) {
ros::spinOnce();
image_sub_ = it_.subscribe("/video/image/ch0", 1, &imageCb); // 30 fps by publisher!
// chKey = cv::waitKey(30);
}
...
↧