Open Ezward opened 2 years ago
We want to make sure cameras initialize correctly and do not return None images because that causes hard to understand errors downstream. Instead we want to initialize the camera and check that it is returning valid frames at initialization time.
Note that this was done for the other camera types that reside in parts/camera.py in https://github.com/autorope/donkeycar/pull/967. However the CvCam part is in parts/cv.py and so did not get protected in this way.
See PR https://github.com/autorope/donkeycar/pull/1111
We want to make sure cameras initialize correctly and do not return None images because that causes hard to understand errors downstream. Instead we want to initialize the camera and check that it is returning valid frames at initialization time.
Note that this was done for the other camera types that reside in parts/camera.py in https://github.com/autorope/donkeycar/pull/967. However the CvCam part is in parts/cv.py and so did not get protected in this way.