Device node is being polled by ROS node

asked 2019-11-15 08:41:23 -0500

Hi ,

I am new to ROS and I am trying to publish a topic for my camera.When I try to obtain frames from my camera,the process fails with EBUSY during VIDOIC_S_FMT or VIDIOC_REQBUF. While trying to debug this issue I noticed that the node is trying to poll my device node. Regardless of the type of device being used, the node tries to poll all the device node being opened in the program.

I have attached the sample code for my node.


int ft = 0;

int main (int argc, char **argv)

    ros::init (argc, argv, "test");
    ros::NodeHandle node;
    ft = open("/dev/video0",O_RDWR,0);

    return 0;

After launching the node(test_node), the log message in dmesg is

[19781.321976] The process name is test_node line 930 func vb2_fop_poll

Is this a known behaviour or is something wrong here?Can anyone kindly help me out. I am using ROS melodic.

edit retag flag offensive close merge delete