![]() Ĭamera_name: node name and ros graph name. A string for a path for a video file, e.g.: /home/user/Videos/myvideo.avi or a url of a video stream e.g.: rtsp:///vod/mp4:BigBuckBunny_115k.mov and. Video_stream_provider: A number for the /dev/videoX device, e.g.: 0 for /dev/video0. The rest of the parameters explained, even though they are pretty self explanatory: If you want to publish all images (don't drop any and you don't mind some possible delay from real time), set buffer_queue_size big enough for your case (1000?), set_camera_fps and fps to whatever FPS it has. So if you want the very latest image published from a camera, set buffer_queue_size to 1, set_camera_fps to the max the camera allows and fps to that same max. ![]() If you don't want to lose images set it higher.įps: The effective rate at which you want the image topic to publish, if lower than the effective fps of the camera it will throttle the publication dropping frames when needed. If you want the shortest delay/lag set it to 1. The main thread consumes from the buffer. We read as fast as possible (in another thread) from the device and store in the buffer the images. Does nothing on video streams or video files.īuffer_queue_size: Will set the size of the buffer of images read from the capturing device. Set_camera_fps: Will set the OpenCV parameter CV_CAP_PROP_FPS to that amount of fps, if the camera allows it. Note these important ones on the behaviour of the node: Video files, anything you can play, e.g.: myvideo.avi ![]() Video streamings, e.g.: rtsp:///vod/mp4:BigBuckBunny_115k.mov Video devices that appear in linux as /dev/videoX, e.g.: USB webcams appearing as /dev/video0 You can use any input that OpenCV on your system accepts, e.g.: It also supports flipping of images and fps throttling.Įxample usages in launch folder (only the argument video_stream_provider is mandatory): A package to view video streams based on the OpenCV VideoCapture module, easy way to publish on a ROS Image topic (including camera info) usb cams, ethernet cameras, video streams or video files.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |