<div dir="ltr">This is a ros node for defining a region of interest on the screen with x, y, width, & height and publishing it just like a camera feed.  It could be most useful for capturing from a camera or any application that displays in Linux but has no ROS support, or recording from the screen to get all the user mouse movements and window placement for later export into a regular video.  <div>
<br></div><div>It is somewhat redundant with software that can capture from the screen into virtual webcam devices that are then trivial to publish with ros, though they would lack the ability to be controlled through ros parameters.  <a href="https://code.google.com/p/webcamstudio">https://code.google.com/p/webcamstudio</a> worked well for virtual webcams but I haven't tried it in a couple of years.  <br>
<div><br></div><div>It probably only works correctly with a X windows setup similar to what I have on Ubuntu 12.04, there is no attempt to convert the image out of XGetImage for special cases.<br><div><br></div><div><a href="https://github.com/lucasw/screengrab_ros">https://github.com/lucasw/screengrab_ros</a><br>
</div><div><br></div><div>If the screen spans multiple monitors and the roi crosses the window boundary and is partially in and out of the display area it might crash, I haven't tried that.  I'll add publishing of the max width and height next.</div>
<div><br></div><div>It's written for catkin and Hydro. </div><div><br></div><div>Any feedback and inclusion into the package list would be welcome-</div><div><br></div><div>Lucas Walter</div></div></div></div>