How to count depth images from kinect
I'm using a Kinect with depth_viewer. I'm able to view depth images, but I'd like to be able to view and store a fixed number of them (say, 100). If I put a counter in my main program, it does not increment. If I put the same counter in the subscriber callback function to openni_camera, it does not increment (I'm guessing it gets reset on every received message).
I would think this is easy... but I'm not sure how to approach it. Any help would be appreciated.
Thanks, Paul