|
Re: CMU Camera kills robot controller if not found.
It is true that if you call the camera code to capture a packet, it waits for valid data to show up. If the camera is not running, then it waits forever. This is to handle case where you initialize the camera and immediately start reading data and the first packet hasn't come in yet.
If we were to add a time out (maybe 500ms) so that it would return all zeros if valid camera data was never received (including 0 confidence) would that work for you?
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
|